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 6BD02ECAAD3 for ; Mon, 19 Sep 2022 17:36:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EF65D6B0071; Mon, 19 Sep 2022 13:36:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EA4D96B0072; Mon, 19 Sep 2022 13:36:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D45BE940007; Mon, 19 Sep 2022 13:36:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id C71FA6B0071 for ; Mon, 19 Sep 2022 13:36:52 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 99CD0804B2 for ; Mon, 19 Sep 2022 17:36:52 +0000 (UTC) X-FDA: 79929540264.11.DCC522C Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by imf06.hostedemail.com (Postfix) with ESMTP id E17A818001B for ; Mon, 19 Sep 2022 17:36:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663609012; x=1695145012; h=date:from:to:cc:subject:message-id:mime-version; bh=Ry6G+FN/EQuqIDz5BmJqaBeh09097d4lJ1RuGkaJd3c=; b=WjJ1d+F4NQz7QuEKJOPsCoMqWGLa06gU1Q84hLkZcpDliiiV4WZ2ddgP rUxi1/mQ1IeXtonnIiVtVVXy/+5tGaHrLHdmLuFDbd7l8sjb1xCMK7dhV 7RyNxnBwndra1jvls3OOpl3Ga5nF1WxHDgqYegPy3yeR1WNN3SvFMzJ8D w2vNM/s4dB58d6fewA8Jt1CzXMx7ZtHTm+GYfoCGqb0Hx9ud2lTU6EHFm KWqCJR5l3Wx9lkNqdRnZQgg/oyWePisT6WN81c9fORHzdMk2Eogn0OtiU Erp6zmdCpIHcMAS9GgCQao4LzSow7/zKODGIV0O5hq3ZhEBUE09W+9SUG g==; X-IronPort-AV: E=McAfee;i="6500,9779,10475"; a="298195180" X-IronPort-AV: E=Sophos;i="5.93,328,1654585200"; d="scan'208";a="298195180" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2022 10:36:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,328,1654585200"; d="scan'208";a="687065765" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 19 Sep 2022 10:36:49 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1oaKhM-00028g-2U; Mon, 19 Sep 2022 17:36:48 +0000 Date: Tue, 20 Sep 2022 01:36:18 +0800 From: kernel test robot To: Gaosheng Cui Cc: kbuild-all@lists.01.org, Linux Memory Management List , Mark Brown Subject: [linux-next:master 6202/7934] sound/soc/intel/skylake/skl.c:735:30: error: 'skl' undeclared Message-ID: <202209200142.oTTHCQyD-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=WjJ1d+F4; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 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=1663609012; a=rsa-sha256; cv=none; b=G4CpnhSX/nkg11NsZ20JLiGdL74iG3rfGSWBgZ/8hQvO/J8u/nmoJSd1wXNpgiVViWvUpi dmxBu7r3EOb8wX7KVnyFn1QYiVUk5v2yGqIlRid6mdB4y20e0D2oyzLzMVG1kEdrUU86C0 zN4/vX2JCvNoZa7B8AKbqe9pMiYI1EA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663609012; 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=MZq2d9xWIpxpQcAByMYxYsOThQAdJHbR/ZOvf/rsarU=; b=JE/+8az74x8LKLLatGnz52VUypUUDs9+JslcpaTG9nLDrlp3fH2p29/kOxdTmo3ZDJRShA RLyk3S25E2KoV1MpXeeBpqlztOUioj4oD/M5ZkjyX/1DoQl8X491jFST2vaK2OLs3JVOd0 Lydtgh/uIG/GM89By9Zh06lQTpOob54= X-Rspam-User: X-Rspamd-Queue-Id: E17A818001B Authentication-Results: imf06.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=WjJ1d+F4; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: wtagfne65atr65ny7ywcf6ih3j5jcm66 X-Rspamd-Server: rspam04 X-HE-Tag: 1663609011-497992 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: 4c9ca5b1597e3222177ba2a94658f78fa5ef4f58 commit: 515626a33a194c4caaf2879dbf9e00e882582af0 [6202/7934] ASoC: Intel: fix unused-variable warning in probe_codec config: loongarch-randconfig-r035-20220919 (https://download.01.org/0day-ci/archive/20220920/202209200142.oTTHCQyD-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=515626a33a194c4caaf2879dbf9e00e882582af0 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 515626a33a194c4caaf2879dbf9e00e882582af0 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash sound/soc/intel/skylake/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot Note: the linux-next/master HEAD 4c9ca5b1597e3222177ba2a94658f78fa5ef4f58 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): sound/soc/intel/skylake/skl.c: In function 'probe_codec': >> sound/soc/intel/skylake/skl.c:735:30: error: 'skl' undeclared (first use in this function) 735 | hdev = devm_kzalloc(&skl->pci->dev, sizeof(*hdev), GFP_KERNEL); | ^~~ sound/soc/intel/skylake/skl.c:735:30: note: each undeclared identifier is reported only once for each function it appears in vim +/skl +735 sound/soc/intel/skylake/skl.c 8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18 691 d8c2dab8381d583 Jeeja KP 2015-07-09 692 /* d8c2dab8381d583 Jeeja KP 2015-07-09 693 * Probe the given codec address d8c2dab8381d583 Jeeja KP 2015-07-09 694 */ 76f56fae1cf9040 Rakesh Ughreja 2018-06-01 695 static int probe_codec(struct hdac_bus *bus, int addr) d8c2dab8381d583 Jeeja KP 2015-07-09 696 { d8c2dab8381d583 Jeeja KP 2015-07-09 697 unsigned int cmd = (addr << 28) | (AC_NODE_ROOT << 20) | d8c2dab8381d583 Jeeja KP 2015-07-09 698 (AC_VERB_PARAMETERS << 8) | AC_PAR_VENDOR_ID; e6a33532affd14c Dan Carpenter 2017-04-20 699 unsigned int res = -1; 8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18 700 #if IS_ENABLED(CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC) 515626a33a194c4 Gaosheng Cui 2022-08-22 701 struct skl_dev *skl = bus_to_skl(bus); 6bae5ea94989264 Rakesh Ughreja 2018-08-22 702 struct hdac_hda_priv *hda_codec; 6bae5ea94989264 Rakesh Ughreja 2018-08-22 703 int err; 8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18 704 #endif 8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18 705 struct hdac_device *hdev; d8c2dab8381d583 Jeeja KP 2015-07-09 706 d8c2dab8381d583 Jeeja KP 2015-07-09 707 mutex_lock(&bus->cmd_mutex); d8c2dab8381d583 Jeeja KP 2015-07-09 708 snd_hdac_bus_send_cmd(bus, cmd); d8c2dab8381d583 Jeeja KP 2015-07-09 709 snd_hdac_bus_get_response(bus, addr, &res); d8c2dab8381d583 Jeeja KP 2015-07-09 710 mutex_unlock(&bus->cmd_mutex); d8c2dab8381d583 Jeeja KP 2015-07-09 711 if (res == -1) d8c2dab8381d583 Jeeja KP 2015-07-09 712 return -EIO; 00deadb5d86a3c1 Rakesh Ughreja 2018-08-22 713 dev_dbg(bus->dev, "codec #%d probed OK: %x\n", addr, res); d8c2dab8381d583 Jeeja KP 2015-07-09 714 8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18 715 #if IS_ENABLED(CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC) 6bae5ea94989264 Rakesh Ughreja 2018-08-22 716 hda_codec = devm_kzalloc(&skl->pci->dev, sizeof(*hda_codec), 6bae5ea94989264 Rakesh Ughreja 2018-08-22 717 GFP_KERNEL); 6bae5ea94989264 Rakesh Ughreja 2018-08-22 718 if (!hda_codec) 6298542fa33b6ba Rakesh Ughreja 2018-06-01 719 return -ENOMEM; 6298542fa33b6ba Rakesh Ughreja 2018-06-01 720 6bae5ea94989264 Rakesh Ughreja 2018-08-22 721 hda_codec->codec.bus = skl_to_hbus(skl); 6bae5ea94989264 Rakesh Ughreja 2018-08-22 722 hdev = &hda_codec->codec.core; 6bae5ea94989264 Rakesh Ughreja 2018-08-22 723 163cd1059a85d22 Kai Vehmanen 2020-09-21 724 err = snd_hdac_ext_bus_device_init(bus, addr, hdev, HDA_DEV_ASOC); 6bae5ea94989264 Rakesh Ughreja 2018-08-22 725 if (err < 0) 6bae5ea94989264 Rakesh Ughreja 2018-08-22 726 return err; 6bae5ea94989264 Rakesh Ughreja 2018-08-22 727 6bae5ea94989264 Rakesh Ughreja 2018-08-22 728 /* use legacy bus only for HDA codecs, idisp uses ext bus */ 6bae5ea94989264 Rakesh Ughreja 2018-08-22 729 if ((res & 0xFFFF0000) != IDISP_INTEL_VENDOR_ID) { 6bae5ea94989264 Rakesh Ughreja 2018-08-22 730 hdev->type = HDA_DEV_LEGACY; 6bae5ea94989264 Rakesh Ughreja 2018-08-22 731 load_codec_module(&hda_codec->codec); 6bae5ea94989264 Rakesh Ughreja 2018-08-22 732 } 6bae5ea94989264 Rakesh Ughreja 2018-08-22 733 return 0; 8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18 734 #else 8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18 @735 hdev = devm_kzalloc(&skl->pci->dev, sizeof(*hdev), GFP_KERNEL); 8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18 736 if (!hdev) 8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18 737 return -ENOMEM; 8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18 738 163cd1059a85d22 Kai Vehmanen 2020-09-21 739 return snd_hdac_ext_bus_device_init(bus, addr, hdev, HDA_DEV_ASOC); 8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18 740 #endif /* CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC */ d8c2dab8381d583 Jeeja KP 2015-07-09 741 } d8c2dab8381d583 Jeeja KP 2015-07-09 742 :::::: The code at line 735 was first introduced by commit :::::: 8c4e7c2ee8096b5ca8214418f287b3878d578cc0 ASoC: Intel: Skylake: fix Kconfigs, make HDaudio codec optional :::::: TO: Pierre-Louis Bossart :::::: CC: Mark Brown -- 0-DAY CI Kernel Test Service https://01.org/lkp