Re: [PATCH 2/3] ALSA: hda: hdmi_chmap: Update HDMI channel map codec read callers

From: kernel test robot

Date: Thu Dec 03 2026 - 23:54:46 EST


Hi Sreeraj,

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 broonie-sound/for-next linus/master v7.4-rc5 next-20261203]
[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/Sreeraj-S-Kurup/ALSA-hda-core-Fix-command-creation-error-handling/20261203-170500
base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
patch link: https://lore.kernel.org/r/20261203170741.3873-3-sreekuttan2156239%40gmail.com
patch subject: [PATCH 2/3] ALSA: hda: hdmi_chmap: Update HDMI channel map codec read callers
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20261204/20261204124504.62MCVj5F-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204124504.62MCVj5F-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/20261204124504.62MCVj5F-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from ./arch/alpha/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:11,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/module.h:22,
from sound/hda/core/hdmi_chmap.c:6:
sound/hda/core/hdmi_chmap.c: In function 'hdmi_set_channel_count':
include/asm-generic/current.h:8:45: error: expected ')' before '->' token
8 | #define get_current() (current_thread_info()->task)
| ^~
include/asm-generic/current.h:9:17: note: in expansion of macro 'get_current'
9 | #define current get_current()
| ^~~~~~~~~~~
sound/hda/core/hdmi_chmap.c:221:13: note: in expansion of macro 'current'
221 | int current;
| ^~~~~~~
sound/hda/core/hdmi_chmap.c:223:17: error: assignment to 'struct task_struct *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
223 | current = hdmi_get_channel_count(codec, cvt_nid);
| ^
>> sound/hda/core/hdmi_chmap.c:224:21: warning: ordered comparison of pointer with integer zero [-Wextra]
224 | if (current < 0)
| ^
>> sound/hda/core/hdmi_chmap.c:227:17: warning: comparison between pointer and integer
227 | if (chs != current)
| ^~


vim +224 sound/hda/core/hdmi_chmap.c

217
218 static void hdmi_set_channel_count(struct hdac_device *codec,
219 hda_nid_t cvt_nid, int chs)
220 {
221 int current;
222
223 current = hdmi_get_channel_count(codec, cvt_nid);
> 224 if (current < 0)
225 return;
226
> 227 if (chs != current)
228 snd_hdac_codec_write(codec, cvt_nid, 0,
229 AC_VERB_SET_CVT_CHAN_COUNT, chs - 1);
230 }
231

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