From: kernel test robot <lkp@intel.com>
To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, broonie@kernel.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
lgirdwood@gmail.com, linux-kernel@vger.kernel.org,
robh+dt@kernel.org,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: Re: [PATCH v2 3/7] ASoC: codec: lpass-rx-macro: add dapm widgets and route
Date: Tue, 9 Feb 2021 14:34:01 +0800 [thread overview]
Message-ID: <202102091415.gcIqYaN4-lkp@intel.com> (raw)
In-Reply-To: <20210208141719.23305-4-srinivas.kandagatla@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 4340 bytes --]
Hi Srinivas,
I love your patch! Perhaps something to improve:
[auto build test WARNING on asoc/for-next]
[also build test WARNING on v5.11-rc6 next-20210125]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Srinivas-Kandagatla/ASoC-codecs-add-support-for-LPASS-Codec-TX-and-RX-macros/20210209-084643
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: arm64-randconfig-r013-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/bac854a0c3da12f3b44c7b2f3e89843adb6e585e
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Srinivas-Kandagatla/ASoC-codecs-add-support-for-LPASS-Codec-TX-and-RX-macros/20210209-084643
git checkout bac854a0c3da12f3b44c7b2f3e89843adb6e585e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> sound/soc/codecs/lpass-rx-macro.c:2439:2: warning: variable 'hph_lut_bypass_reg' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default:
^~~~~~~
sound/soc/codecs/lpass-rx-macro.c:2443:6: note: uninitialized use occurs here
if (hph_lut_bypass_reg && SND_SOC_DAPM_EVENT_ON(event)) {
^~~~~~~~~~~~~~~~~~
sound/soc/codecs/lpass-rx-macro.c:2427:24: note: initialize the variable 'hph_lut_bypass_reg' to silence this warning
u16 hph_lut_bypass_reg;
^
= 0
1 warning generated.
vim +/hph_lut_bypass_reg +2439 sound/soc/codecs/lpass-rx-macro.c
2422
2423 static void rx_macro_hphdelay_lutbypass(struct snd_soc_component *component,
2424 struct rx_macro *rx,
2425 u16 interp_idx, int event)
2426 {
2427 u16 hph_lut_bypass_reg;
2428 u16 hph_comp_ctrl7;
2429
2430 switch (interp_idx) {
2431 case INTERP_HPHL:
2432 hph_lut_bypass_reg = CDC_RX_TOP_HPHL_COMP_LUT;
2433 hph_comp_ctrl7 = CDC_RX_COMPANDER0_CTL7;
2434 break;
2435 case INTERP_HPHR:
2436 hph_lut_bypass_reg = CDC_RX_TOP_HPHR_COMP_LUT;
2437 hph_comp_ctrl7 = CDC_RX_COMPANDER1_CTL7;
2438 break;
> 2439 default:
2440 break;
2441 }
2442
2443 if (hph_lut_bypass_reg && SND_SOC_DAPM_EVENT_ON(event)) {
2444 if (interp_idx == INTERP_HPHL) {
2445 if (rx->is_ear_mode_on)
2446 snd_soc_component_write_field(component,
2447 CDC_RX_RX0_RX_PATH_CFG1,
2448 CDC_RX_RX0_HPH_L_EAR_SEL_MASK, 0x1);
2449 else
2450 snd_soc_component_write_field(component,
2451 hph_lut_bypass_reg,
2452 CDC_RX_TOP_HPH_LUT_BYPASS_MASK, 1);
2453 } else {
2454 snd_soc_component_write_field(component, hph_lut_bypass_reg,
2455 CDC_RX_TOP_HPH_LUT_BYPASS_MASK, 1);
2456 }
2457 if (rx->hph_pwr_mode)
2458 snd_soc_component_write_field(component, hph_comp_ctrl7,
2459 CDC_RX_COMPANDER1_HPH_LOW_PWR_MODE_MASK, 0x0);
2460 }
2461
2462 if (hph_lut_bypass_reg && SND_SOC_DAPM_EVENT_OFF(event)) {
2463 snd_soc_component_write_field(component,
2464 CDC_RX_RX0_RX_PATH_CFG1,
2465 CDC_RX_RX0_HPH_L_EAR_SEL_MASK, 0x0);
2466 snd_soc_component_update_bits(component, hph_lut_bypass_reg,
2467 CDC_RX_TOP_HPH_LUT_BYPASS_MASK, 0);
2468 snd_soc_component_write_field(component, hph_comp_ctrl7,
2469 CDC_RX_COMPANDER1_HPH_LOW_PWR_MODE_MASK, 0x1);
2470 }
2471 }
2472
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36671 bytes --]
next prev parent reply other threads:[~2021-02-09 6:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-08 14:17 [PATCH v2 0/7] ASoC: codecs: add support for LPASS Codec TX and RX macros Srinivas Kandagatla
2021-02-08 14:17 ` [PATCH v2 1/7] ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec Srinivas Kandagatla
2021-02-08 14:17 ` [PATCH v2 2/7] ASoC: codec: lpass-rx-macro: add support for lpass rx macro Srinivas Kandagatla
2021-02-08 16:08 ` Mark Brown
2021-02-08 16:17 ` Srinivas Kandagatla
2021-02-08 14:17 ` [PATCH v2 3/7] ASoC: codec: lpass-rx-macro: add dapm widgets and route Srinivas Kandagatla
2021-02-09 6:34 ` kernel test robot [this message]
2021-02-08 14:17 ` [PATCH v2 4/7] ASoC: codec: lpass-rx-macro: add iir widgets Srinivas Kandagatla
2021-02-08 14:17 ` [PATCH v2 5/7] ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec Srinivas Kandagatla
2021-02-08 14:17 ` [PATCH v2 6/7] ASoC: codec: lpass-tx-macro: add support for lpass tx macro Srinivas Kandagatla
2021-02-10 6:36 ` kernel test robot
2021-02-08 14:17 ` [PATCH v2 7/7] ASoC: codec: lpass-tx-macro: add dapm widgets and route Srinivas Kandagatla
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=202102091415.gcIqYaN4-lkp@intel.com \
--to=lkp@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=clang-built-linux@googlegroups.com \
--cc=devicetree@vger.kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=srinivas.kandagatla@linaro.org \
/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;
as well as URLs for NNTP newsgroup(s).