From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gnuweeb.org (Postfix) with ESMTPS id E4EE27F71C for ; Tue, 5 Jul 2022 23:13:05 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=dk5dFSVK; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657062785; x=1688598785; h=date:from:to:cc:subject:message-id:mime-version; bh=ONUzRAeEvM//0wIzEJNyjBMEp5VuDPoDaLlsfhpATSU=; b=dk5dFSVKspPUd1hfDx6X4gNhY/XHkgmqK/zG1drx1rTUbMd5xNcAmn2W RGYVDE2R9WtbDoDCcXIM7HMfp/7nZz+iDTwx3VxaQBDmCAPbCSkFEfeMk l8XQ7w6xlYd9Hd7yN/XJ2/+dMtGqCSdsavLpRheb2qj01CHNlbMK6WP9g 8rU2SLoncZK65t6yyVqmJ/P1PHv4HyiYVvCw4nfQuDL98VqufgXixGtQL vyjM7mTVUAsgCtY4evfVKr9o69zl/bBexMvPoBqcXqwGeN65U88wI5tL+ QYV7G6RWPThCVEk5peG4rhYt8lE6IcVCaSn/ZAFdwGyEtV3YwQ4EWr/j1 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10399"; a="266590547" X-IronPort-AV: E=Sophos;i="5.92,248,1650956400"; d="scan'208";a="266590547" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2022 16:13:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,248,1650956400"; d="scan'208";a="660728808" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 05 Jul 2022 16:13:01 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o8rj2-000JhS-Lv; Tue, 05 Jul 2022 23:13:00 +0000 Date: Wed, 6 Jul 2022 07:12:15 +0800 From: kernel test robot To: Lukas Bulwahn Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Mark Brown , Amadeusz =?utf-8?B?U8WCYXdpxYRza2k=?= Subject: [ammarfaizi2-block:broonie/sound/for-next 324/326] sound/soc/intel/avs/boards/i2s_test.c:130:60: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' Message-ID: <202207060734.OWDl2z9f-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block broonie/sound/for-next head: 4fbea41e3404788d05a013841431abd07d307255 commit: f4ba35b79bd0104f00e8e21e400b980bfaa2f17e [324/326] ASoC: Intel: avs: correct config reference for I2S test board config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220706/202207060734.OWDl2z9f-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://github.com/ammarfaizi2/linux-block/commit/f4ba35b79bd0104f00e8e21e400b980bfaa2f17e git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block broonie/sound/for-next git checkout f4ba35b79bd0104f00e8e21e400b980bfaa2f17e # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash sound/soc/intel/avs/boards/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): sound/soc/intel/avs/boards/i2s_test.c: In function 'avs_i2s_test_probe': >> sound/soc/intel/avs/boards/i2s_test.c:130:60: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat=] 130 | card->name = devm_kasprintf(dev, GFP_KERNEL, "ssp%ld-loopback", ssp_port); | ~~^ ~~~~~~~~ | | | | long int int | %d vim +130 sound/soc/intel/avs/boards/i2s_test.c e39acc4cfd9250 Cezary Rojewski 2022-05-11 109 e39acc4cfd9250 Cezary Rojewski 2022-05-11 110 static int avs_i2s_test_probe(struct platform_device *pdev) e39acc4cfd9250 Cezary Rojewski 2022-05-11 111 { e39acc4cfd9250 Cezary Rojewski 2022-05-11 112 struct snd_soc_dapm_widget *widgets; e39acc4cfd9250 Cezary Rojewski 2022-05-11 113 struct snd_soc_dapm_route *routes; e39acc4cfd9250 Cezary Rojewski 2022-05-11 114 struct snd_soc_dai_link *dai_link; e39acc4cfd9250 Cezary Rojewski 2022-05-11 115 struct snd_soc_acpi_mach *mach; e39acc4cfd9250 Cezary Rojewski 2022-05-11 116 struct snd_soc_card *card; e39acc4cfd9250 Cezary Rojewski 2022-05-11 117 struct device *dev = &pdev->dev; e39acc4cfd9250 Cezary Rojewski 2022-05-11 118 const char *pname; e39acc4cfd9250 Cezary Rojewski 2022-05-11 119 int num_routes, num_widgets; e39acc4cfd9250 Cezary Rojewski 2022-05-11 120 int ssp_port, ret; e39acc4cfd9250 Cezary Rojewski 2022-05-11 121 e39acc4cfd9250 Cezary Rojewski 2022-05-11 122 mach = dev_get_platdata(dev); e39acc4cfd9250 Cezary Rojewski 2022-05-11 123 pname = mach->mach_params.platform; e39acc4cfd9250 Cezary Rojewski 2022-05-11 124 ssp_port = __ffs(mach->mach_params.i2s_link_mask); e39acc4cfd9250 Cezary Rojewski 2022-05-11 125 e39acc4cfd9250 Cezary Rojewski 2022-05-11 126 card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); e39acc4cfd9250 Cezary Rojewski 2022-05-11 127 if (!card) e39acc4cfd9250 Cezary Rojewski 2022-05-11 128 return -ENOMEM; e39acc4cfd9250 Cezary Rojewski 2022-05-11 129 e39acc4cfd9250 Cezary Rojewski 2022-05-11 @130 card->name = devm_kasprintf(dev, GFP_KERNEL, "ssp%ld-loopback", ssp_port); e39acc4cfd9250 Cezary Rojewski 2022-05-11 131 if (!card->name) e39acc4cfd9250 Cezary Rojewski 2022-05-11 132 return -ENOMEM; e39acc4cfd9250 Cezary Rojewski 2022-05-11 133 e39acc4cfd9250 Cezary Rojewski 2022-05-11 134 ret = avs_create_dai_link(dev, pname, ssp_port, &dai_link); e39acc4cfd9250 Cezary Rojewski 2022-05-11 135 if (ret) { e39acc4cfd9250 Cezary Rojewski 2022-05-11 136 dev_err(dev, "Failed to create dai link: %d\n", ret); e39acc4cfd9250 Cezary Rojewski 2022-05-11 137 return ret; e39acc4cfd9250 Cezary Rojewski 2022-05-11 138 } e39acc4cfd9250 Cezary Rojewski 2022-05-11 139 e39acc4cfd9250 Cezary Rojewski 2022-05-11 140 ret = avs_create_dapm_routes(dev, ssp_port, &routes, &num_routes); e39acc4cfd9250 Cezary Rojewski 2022-05-11 141 if (ret) { e39acc4cfd9250 Cezary Rojewski 2022-05-11 142 dev_err(dev, "Failed to create dapm routes: %d\n", ret); e39acc4cfd9250 Cezary Rojewski 2022-05-11 143 return ret; e39acc4cfd9250 Cezary Rojewski 2022-05-11 144 } e39acc4cfd9250 Cezary Rojewski 2022-05-11 145 e39acc4cfd9250 Cezary Rojewski 2022-05-11 146 ret = avs_create_dapm_widgets(dev, ssp_port, &widgets, &num_widgets); e39acc4cfd9250 Cezary Rojewski 2022-05-11 147 if (ret) { e39acc4cfd9250 Cezary Rojewski 2022-05-11 148 dev_err(dev, "Failed to create dapm widgets: %d\n", ret); e39acc4cfd9250 Cezary Rojewski 2022-05-11 149 return ret; e39acc4cfd9250 Cezary Rojewski 2022-05-11 150 } e39acc4cfd9250 Cezary Rojewski 2022-05-11 151 e39acc4cfd9250 Cezary Rojewski 2022-05-11 152 card->dev = dev; e39acc4cfd9250 Cezary Rojewski 2022-05-11 153 card->owner = THIS_MODULE; e39acc4cfd9250 Cezary Rojewski 2022-05-11 154 card->dai_link = dai_link; e39acc4cfd9250 Cezary Rojewski 2022-05-11 155 card->num_links = 1; e39acc4cfd9250 Cezary Rojewski 2022-05-11 156 card->dapm_routes = routes; e39acc4cfd9250 Cezary Rojewski 2022-05-11 157 card->num_dapm_routes = num_routes; e39acc4cfd9250 Cezary Rojewski 2022-05-11 158 card->dapm_widgets = widgets; e39acc4cfd9250 Cezary Rojewski 2022-05-11 159 card->num_dapm_widgets = num_widgets; e39acc4cfd9250 Cezary Rojewski 2022-05-11 160 card->fully_routed = true; e39acc4cfd9250 Cezary Rojewski 2022-05-11 161 e39acc4cfd9250 Cezary Rojewski 2022-05-11 162 ret = snd_soc_fixup_dai_links_platform_name(card, pname); e39acc4cfd9250 Cezary Rojewski 2022-05-11 163 if (ret) e39acc4cfd9250 Cezary Rojewski 2022-05-11 164 return ret; e39acc4cfd9250 Cezary Rojewski 2022-05-11 165 e39acc4cfd9250 Cezary Rojewski 2022-05-11 166 return devm_snd_soc_register_card(dev, card); e39acc4cfd9250 Cezary Rojewski 2022-05-11 167 } e39acc4cfd9250 Cezary Rojewski 2022-05-11 168 :::::: The code at line 130 was first introduced by commit :::::: e39acc4cfd9250e7b8ec01897570f3009659c3d6 ASoC: Intel: avs: Add I2S-test machine board :::::: TO: Cezary Rojewski :::::: CC: Mark Brown -- 0-DAY CI Kernel Test Service https://01.org/lkp