lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112070826.L6twVlKM-lkp@intel.com>
Date:   Tue, 7 Dec 2021 08:10:42 +0800
From:   kernel test robot <lkp@...el.com>
To:     Hui Wang <hui.wang@...onical.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Mark Brown <broonie@...nel.org>,
        Bard Liao <bard.liao@...el.com>,
        Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>,
        Kai Vehmanen <kai.vehmanen@...ux.intel.com>
Subject: [broonie-sound:for-linus 313/320]
 sound/soc/sof/intel/hda-codec.c:132:35: error: 'CODEC_PROBE_RETRIES'
 undeclared

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-linus
head:   de2138b0ab8ac888a97868a08c29c2e37f8b71bd
commit: 046aede2f847676f93a2ea4f48b77909c51dba40 [313/320] ASoC: SOF: Intel: Retry codec probing if it fails
config: x86_64-randconfig-r026-20211202 (https://download.01.org/0day-ci/archive/20211207/202112070826.L6twVlKM-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git/commit/?id=046aede2f847676f93a2ea4f48b77909c51dba40
        git remote add broonie-sound https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
        git fetch --no-tags broonie-sound for-linus
        git checkout 046aede2f847676f93a2ea4f48b77909c51dba40
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   sound/soc/sof/intel/hda-codec.c: In function 'hda_codec_probe':
>> sound/soc/sof/intel/hda-codec.c:132:35: error: 'CODEC_PROBE_RETRIES' undeclared (first use in this function)
     132 |  } while (resp == -1 && retry++ < CODEC_PROBE_RETRIES);
         |                                   ^~~~~~~~~~~~~~~~~~~
   sound/soc/sof/intel/hda-codec.c:132:35: note: each undeclared identifier is reported only once for each function it appears in


vim +/CODEC_PROBE_RETRIES +132 sound/soc/sof/intel/hda-codec.c

   110	
   111	/* probe individual codec */
   112	static int hda_codec_probe(struct snd_sof_dev *sdev, int address,
   113				   bool hda_codec_use_common_hdmi)
   114	{
   115	#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
   116		struct hdac_hda_priv *hda_priv;
   117		struct hda_codec *codec;
   118		int type = HDA_DEV_LEGACY;
   119	#endif
   120		struct hda_bus *hbus = sof_to_hbus(sdev);
   121		struct hdac_device *hdev;
   122		u32 hda_cmd = (address << 28) | (AC_NODE_ROOT << 20) |
   123			(AC_VERB_PARAMETERS << 8) | AC_PAR_VENDOR_ID;
   124		u32 resp = -1;
   125		int ret, retry = 0;
   126	
   127		do {
   128			mutex_lock(&hbus->core.cmd_mutex);
   129			snd_hdac_bus_send_cmd(&hbus->core, hda_cmd);
   130			snd_hdac_bus_get_response(&hbus->core, address, &resp);
   131			mutex_unlock(&hbus->core.cmd_mutex);
 > 132		} while (resp == -1 && retry++ < CODEC_PROBE_RETRIES);
   133	
   134		if (resp == -1)
   135			return -EIO;
   136		dev_dbg(sdev->dev, "HDA codec #%d probed OK: response: %x\n",
   137			address, resp);
   138	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ