Re: [PATCH] Correct boost volume

From: kernel test robot
Date: Fri Jun 06 2025 - 16:29:35 EST


Hi feng.liu,

kernel test robot noticed the following build warnings:

[auto build test WARNING on tiwai-sound/for-next]
[also build test WARNING on tiwai-sound/for-linus linus/master v6.15 next-20250606]
[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/feng-liu/Correct-boost-volume/20250606-201348
base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
patch link: https://lore.kernel.org/r/20250606113349.129746-1-feng.liu%40senarytech.com
patch subject: [PATCH] Correct boost volume
config: i386-buildonly-randconfig-002-20250607 (https://download.01.org/0day-ci/archive/20250607/202506070421.thMBn9rY-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250607/202506070421.thMBn9rY-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/202506070421.thMBn9rY-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

sound/pci/hda/patch_conexant.c: In function 'cxt_get_defaut_capture_gain_boost':
>> sound/pci/hda/patch_conexant.c:1223:1: warning: no return statement in function returning non-void [-Wreturn-type]
1223 | }
| ^


vim +1223 sound/pci/hda/patch_conexant.c

1204
1205 static int cxt_get_defaut_capture_gain_boost(struct hda_codec *codec)
1206 {
1207 struct conexant_spec *spec = codec->spec;
1208 int i;
1209 unsigned int boost;
1210
1211 for (i = 0; i < HDA_MAX_NUM_INPUTS; i++) {
1212 if (spec->gen.imux_pins[i] == 0)
1213 continue;
1214
1215 boost = snd_hda_codec_read(codec, spec->gen.imux_pins[i],
1216 0, AC_VERB_GET_AMP_GAIN_MUTE, 0);
1217 spec->init_imux_boost_val[spec->gen.imux_pins[i]] = boost;
1218 codec_info(codec, "%s, node_id = %x, mic_boost =%x", __func__,
1219 spec->gen.imux_pins[i], boost);
1220 }
1221
1222 spec->gen.cap_sync_hook = cxt_cap_sync_hook;
> 1223 }
1224

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