From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id EEC07ECAAD3 for ; Mon, 5 Sep 2022 14:33:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 54D3D801E1; Mon, 5 Sep 2022 10:33:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4FD9B8D0076; Mon, 5 Sep 2022 10:33:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3C501801E1; Mon, 5 Sep 2022 10:33:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 2D51D8D0076 for ; Mon, 5 Sep 2022 10:33:33 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D5E2AC0D54 for ; Mon, 5 Sep 2022 14:33:32 +0000 (UTC) X-FDA: 79878275064.16.7FD6D07 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf19.hostedemail.com (Postfix) with ESMTP id A7FF21A005C for ; Mon, 5 Sep 2022 14:33:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662388411; x=1693924411; h=date:from:to:cc:subject:message-id:mime-version; bh=H0vuJ+wQ1JtI7ZpNkTw7hKl0GZCo/fv1LBeViUHzX6Q=; b=WjRCwxIoLHXIuQLa/Wp42cspV/uFPute629o8oypxRa1H9UzQQMz0wXL Lz60vjQ7UXqYDyJHE5Np6t1+Ffyyflq4/v/OYbgS3Y6Ai9Z2fcW3dhB3F dUTqY5sxbPvEGfpCIMeqID9oMEaNV3RQ5Jl44/0VeJaTPzdhV4WH1IFiB irbVAEqsn5cxKBK+L3jRHCAH/mOxj2wykOxH7fXkY0Ovy30JCcl8M1SQL qQJ0ZPFwVh+m5wNWCEu5Te6UcGTxdgP8r6GzuGEEjgXQz7DfRpPoLfIgP pv3XtgAUfngB2J25TKitYNqyk1RWegBgoSzReP03PZUxT+R7q+63d9qJA w==; X-IronPort-AV: E=McAfee;i="6500,9779,10461"; a="297188527" X-IronPort-AV: E=Sophos;i="5.93,291,1654585200"; d="scan'208";a="297188527" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2022 07:33:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,291,1654585200"; d="scan'208";a="682084181" Received: from lkp-server02.sh.intel.com (HELO 95dfd251caa2) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 05 Sep 2022 07:33:28 -0700 Received: from kbuild by 95dfd251caa2 with local (Exim 4.96) (envelope-from ) id 1oVDAG-0004Ev-0R; Mon, 05 Sep 2022 14:33:28 +0000 Date: Mon, 5 Sep 2022 22:33:09 +0800 From: kernel test robot To: Sameer Pujar Cc: kbuild-all@lists.01.org, Linux Memory Management List , Mark Brown Subject: [linux-next:master 673/4736] sound/soc/generic/simple-card-utils.c:28:33: sparse: sparse: incorrect type in initializer (different base types) Message-ID: <202209052235.BBo4f6mK-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=WjRCwxIo; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662388412; a=rsa-sha256; cv=none; b=q33QKoDJ1k+umyTqTXnUkp5rUZI2auhzBUWgitFLbUoIYfjIM5CCzTPh65fMC//ZuzbM/D Ze+QKMYIj3G83Q5P1qSrUt8pbTBk5yMGWZynI+ZFWMtQiTWRv5U46WyoxrSnELTtN/oeke 34+9Pnn05Ag4tTOrATv8bQDTwSD0d/U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662388412; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=NCSpzT/q1E6LDC54imCnVmugy1Mu/CUfCFFceX82LXE=; b=8ALj5kqSH/1CZBXApOMYSQTrEEnsPRtoH+WjnJjA0P86SVyaiDwF517N2vIbNY+ErdCQks UX9H/UUnKcvKh8fbghsLsC2fHf5hLhAk5iJWYhGzaEvYitaCXVjYgyNEQ3wU3QVkNX1PnS 7KZG772bCqCOgQejxwbjXs/69BGasSI= Authentication-Results: imf19.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=WjRCwxIo; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam06 X-Stat-Signature: kamik19bjw36jytpreuq9ygocwc35dz1 X-Rspam-User: X-Rspamd-Queue-Id: A7FF21A005C X-HE-Tag: 1662388411-598795 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e47eb90a0a9ae20b82635b9b99a8d0979b757ad8 commit: 047a05366f4bb2e32eabbd3c8990d1d91ab87c89 [673/4736] ASoC: simple-card-utils: Fixup DAI sample format config: mips-randconfig-s031-20220905 (https://download.01.org/0day-ci/archive/20220905/202209052235.BBo4f6mK-lkp@intel.com/config) compiler: mips-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=047a05366f4bb2e32eabbd3c8990d1d91ab87c89 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 047a05366f4bb2e32eabbd3c8990d1d91ab87c89 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash mm/ sound/soc/generic/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> sound/soc/generic/simple-card-utils.c:28:33: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] val @@ got restricted snd_pcm_format_t [usertype] @@ sound/soc/generic/simple-card-utils.c:28:33: sparse: expected unsigned int [usertype] val sound/soc/generic/simple-card-utils.c:28:33: sparse: got restricted snd_pcm_format_t [usertype] sound/soc/generic/simple-card-utils.c:29:33: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] val @@ got restricted snd_pcm_format_t [usertype] @@ sound/soc/generic/simple-card-utils.c:29:33: sparse: expected unsigned int [usertype] val sound/soc/generic/simple-card-utils.c:29:33: sparse: got restricted snd_pcm_format_t [usertype] sound/soc/generic/simple-card-utils.c:30:33: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] val @@ got restricted snd_pcm_format_t [usertype] @@ sound/soc/generic/simple-card-utils.c:30:33: sparse: expected unsigned int [usertype] val sound/soc/generic/simple-card-utils.c:30:33: sparse: got restricted snd_pcm_format_t [usertype] sound/soc/generic/simple-card-utils.c:31:33: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] val @@ got restricted snd_pcm_format_t [usertype] @@ sound/soc/generic/simple-card-utils.c:31:33: sparse: expected unsigned int [usertype] val sound/soc/generic/simple-card-utils.c:31:33: sparse: got restricted snd_pcm_format_t [usertype] sound/soc/generic/simple-card-utils.c:32:33: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] val @@ got restricted snd_pcm_format_t [usertype] @@ sound/soc/generic/simple-card-utils.c:32:33: sparse: expected unsigned int [usertype] val sound/soc/generic/simple-card-utils.c:32:33: sparse: got restricted snd_pcm_format_t [usertype] vim +28 sound/soc/generic/simple-card-utils.c 17 18 static void asoc_simple_fixup_sample_fmt(struct asoc_simple_data *data, 19 struct snd_pcm_hw_params *params) 20 { 21 int i; 22 struct snd_mask *mask = hw_param_mask(params, 23 SNDRV_PCM_HW_PARAM_FORMAT); 24 struct { 25 char *fmt; 26 u32 val; 27 } of_sample_fmt_table[] = { > 28 { "s8", SNDRV_PCM_FORMAT_S8}, 29 { "s16_le", SNDRV_PCM_FORMAT_S16_LE}, 30 { "s24_le", SNDRV_PCM_FORMAT_S24_LE}, 31 { "s24_3le", SNDRV_PCM_FORMAT_S24_3LE}, 32 { "s32_le", SNDRV_PCM_FORMAT_S32_LE}, 33 }; 34 35 for (i = 0; i < ARRAY_SIZE(of_sample_fmt_table); i++) { 36 if (!strcmp(data->convert_sample_format, 37 of_sample_fmt_table[i].fmt)) { 38 snd_mask_none(mask); 39 snd_mask_set(mask, of_sample_fmt_table[i].val); 40 break; 41 } 42 } 43 } 44 -- 0-DAY CI Kernel Test Service https://01.org/lkp