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 86B22ECAAD5 for ; Mon, 5 Sep 2022 11:00:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DFE43801D6; Mon, 5 Sep 2022 07:00:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DAD3E8D0050; Mon, 5 Sep 2022 07:00:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C7549801D6; Mon, 5 Sep 2022 07:00:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id B97758D0050 for ; Mon, 5 Sep 2022 07:00:16 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 959BA80D1B for ; Mon, 5 Sep 2022 11:00:16 +0000 (UTC) X-FDA: 79877737632.22.6C68BF8 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf04.hostedemail.com (Postfix) with ESMTP id EE5A74006A for ; Mon, 5 Sep 2022 11:00:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662375615; x=1693911615; h=date:from:to:cc:subject:message-id:mime-version; bh=hskZ62QeB7UY318mzbaHJhFGCHtMT0gblfN5yImxOS4=; b=BYWf2e5x28B59nt/ZfAFtnewudxDFiFOJ8eRdhHxSFJKV80n8q3iR7TO D5Sppn+gf3M0z8hIxrE0112ekNe0xQkjZpSAqjFDGcm3SdCbKGG/17hU2 Xb8gXK1YRj3xGYwczBoA+qa5GirjoTxacv7J/BJdsiRlad6LGMnOQKw5Q lf7d4gx3CMhTDJ+gOBu7YkSiRjyVJVd9c0sjwaWgGZQIse8UdRTxcIa33 xjfLuVDoR+kwiKwsl+Bew1ba6xja98VW4vuAa2mb1o20qbWWmkURDD30M j3mzgmV52j3KYCwAtURF1W57t3I3og1Ekqxc6KbC1pfpkWw1tbYzRAVKg w==; X-IronPort-AV: E=McAfee;i="6500,9779,10460"; a="276758356" X-IronPort-AV: E=Sophos;i="5.93,291,1654585200"; d="scan'208";a="276758356" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2022 04:00:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,291,1654585200"; d="scan'208";a="646858215" Received: from lkp-server02.sh.intel.com (HELO 95dfd251caa2) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 05 Sep 2022 04:00:11 -0700 Received: from kbuild by 95dfd251caa2 with local (Exim 4.96) (envelope-from ) id 1oV9pr-00044L-0M; Mon, 05 Sep 2022 11:00:11 +0000 Date: Mon, 5 Sep 2022 18:59:29 +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: <202209051827.hPPbN7yX-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=BYWf2e5x; spf=pass (imf04.hostedemail.com: domain of lkp@intel.com designates 192.55.52.151 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=1662375616; a=rsa-sha256; cv=none; b=kCPD/NfKVHzK0NH3iVV4fHhxzZJ3HnlF81IjQFc9DMuXPaScpAeHdJjDU73AlcfIjZD+lc Eq8fBtlvtLx5mTSQ7oMS1tVz/JsewDaLuIe0GFiAkIjq+mQF1Hx33N5uy9clA+bi9vno56 lTetLHgdKMFRsPTJG/IsZLFIlA0FfEI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662375616; 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=IcVihmKtaKhsXTLbqcgI3zgg4eXvuDwzTGasi55OuQE=; b=0LV/RvVEIG5HASHMD2qFd7KQ15MVp0/9j/x9h0c+B3mfbetHD0ZDKKg4J4WSquN31mz/NA VYQkBOsEyIN+r0xtW/IWENz6cO3V04+RfPuvgQPkTNoFAIKU08g+7mubuvfOao07gbqOBB xZQ9REKuSsyNM6nl7SMxTeI1tAawUjM= Authentication-Results: imf04.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=BYWf2e5x; spf=pass (imf04.hostedemail.com: domain of lkp@intel.com designates 192.55.52.151 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Stat-Signature: ytj1gqdrssm6topibi5hgzc5k9u8d57f X-Rspamd-Queue-Id: EE5A74006A X-Rspamd-Server: rspam05 X-HE-Tag: 1662375614-560266 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, 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/202209051827.hPPbN7yX-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