linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hui Wang <hui.wang@canonical.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Mark Brown <broonie@kernel.org>, Bard Liao <bard.liao@intel.com>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
	Kai Vehmanen <kai.vehmanen@linux.intel.com>
Subject: [linux-next:master 3956/5128] sound/soc/sof/intel/hda-codec.c:132:35: error: use of undeclared identifier 'CODEC_PROBE_RETRIES'
Date: Fri, 3 Dec 2021 19:25:26 +0800	[thread overview]
Message-ID: <202112031943.Twg19fWT-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   7afeac307a9561e3a93682c1e7eb22f918aa1187
commit: 046aede2f847676f93a2ea4f48b77909c51dba40 [3956/5128] ASoC: SOF: Intel: Retry codec probing if it fails
config: i386-randconfig-r033-20211202 (https://download.01.org/0day-ci/archive/20211203/202112031943.Twg19fWT-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b553297ef3ee4dc2119d5429adf3072e90fac38)
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=046aede2f847676f93a2ea4f48b77909c51dba40
        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 046aede2f847676f93a2ea4f48b77909c51dba40
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

>> sound/soc/sof/intel/hda-codec.c:132:35: error: use of undeclared identifier 'CODEC_PROBE_RETRIES'
           } while (resp == -1 && retry++ < CODEC_PROBE_RETRIES);
                                            ^
   1 error generated.


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


             reply	other threads:[~2021-12-03 11:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-03 11:25 kernel test robot [this message]
2021-12-03 14:00 ` Pierre-Louis Bossart
2021-12-03 14:07   ` Kai Vehmanen
2021-12-03 14:48     ` Pierre-Louis Bossart
2021-12-03 15:01     ` Hui Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202112031943.Twg19fWT-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bard.liao@intel.com \
    --cc=broonie@kernel.org \
    --cc=hui.wang@canonical.com \
    --cc=kai.vehmanen@linux.intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    --cc=pierre-louis.bossart@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox