Re: [PATCH v1] ASoC: codecs: wcd937x: Add wcd937x codec driver

From: kernel test robot
Date: Tue Dec 05 2023 - 16:57:06 EST


Hi Prasad,

kernel test robot noticed the following build warnings:

[auto build test WARNING on broonie-sound/for-next]
[also build test WARNING on linus/master v6.7-rc4 next-20231205]
[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#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Prasad-Kumpatla/ASoC-codecs-wcd937x-Add-wcd937x-codec-driver/20231205-203631
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
patch link: https://lore.kernel.org/r/20231205123400.6353-1-quic_pkumpatl%40quicinc.com
patch subject: [PATCH v1] ASoC: codecs: wcd937x: Add wcd937x codec driver
config: i386-buildonly-randconfig-005-20231206 (https://download.01.org/0day-ci/archive/20231206/202312060522.gxYr8k2D-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231206/202312060522.gxYr8k2D-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312060522.gxYr8k2D-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

sound/soc/codecs/wcd937x.c:1024:6: warning: variable 'pre_off_event' set but not used [-Wunused-but-set-variable]
int pre_off_event = 0, post_off_event = 0;
^
sound/soc/codecs/wcd937x.c:1024:25: warning: variable 'post_off_event' set but not used [-Wunused-but-set-variable]
int pre_off_event = 0, post_off_event = 0;
^
sound/soc/codecs/wcd937x.c:1025:6: warning: variable 'post_on_event' set but not used [-Wunused-but-set-variable]
int post_on_event = 0, post_dapm_off = 0;
^
sound/soc/codecs/wcd937x.c:1025:25: warning: variable 'post_dapm_off' set but not used [-Wunused-but-set-variable]
int post_on_event = 0, post_dapm_off = 0;
^
sound/soc/codecs/wcd937x.c:1027:6: warning: variable 'post_dapm_on' set but not used [-Wunused-but-set-variable]
int post_dapm_on = 0;
^
>> sound/soc/codecs/wcd937x.c:2909:34: warning: unused variable 'wcd937x_of_match' [-Wunused-const-variable]
static const struct of_device_id wcd937x_of_match[] = {
^
6 warnings generated.


vim +/wcd937x_of_match +2909 sound/soc/codecs/wcd937x.c

2908
> 2909 static const struct of_device_id wcd937x_of_match[] = {
2910 { .compatible = "qcom,wcd9370-codec" },
2911 { }
2912 };
2913

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki