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:32:40 EST


Hi Sreeraj,

kernel test robot noticed the following build errors:

[auto build test ERROR on tiwai-sound/for-next]
[also build test ERROR 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: powerpc64-randconfig-1000-20261204 (https://download.01.org/0day-ci/archive/20261204/20261204122112.w6qucz7q-lkp@xxxxxxxxx/config)
compiler: powerpc64-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204122112.w6qucz7q-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/20261204122112.w6qucz7q-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

sound/hda/core/hdmi_chmap.c: In function 'hdmi_set_channel_count':
sound/hda/core/hdmi_chmap.c:221:9: error: function declaration isn't a prototype [-Werror=strict-prototypes]
221 | int current;
| ^~~
In file included from include/linux/sched.h:12,
from arch/powerpc/include/asm/elf.h:8,
from include/linux/elf.h:6,
from include/linux/module.h:20,
from sound/hda/core/hdmi_chmap.c:6:
>> arch/powerpc/include/asm/current.h:26:17: error: conflicting types for 'get_current'; have 'int()'
26 | #define current get_current()
| ^~~~~~~~~~~
sound/hda/core/hdmi_chmap.c:221:13: note: in expansion of macro 'current'
221 | int current;
| ^~~~~~~
arch/powerpc/include/asm/current.h:15:35: note: previous definition of 'get_current' with type 'struct task_struct *(void)'
15 | static inline struct task_struct *get_current(void)
| ^~~~~~~~~~~
sound/hda/core/hdmi_chmap.c:223:17: error: lvalue required as left operand of assignment
223 | current = hdmi_get_channel_count(codec, cvt_nid);
| ^
cc1: some warnings being treated as errors
--
hdmi_chmap.c: In function 'hdmi_set_channel_count':
hdmi_chmap.c:221:9: error: function declaration isn't a prototype [-Werror=strict-prototypes]
221 | int current;
| ^~~
In file included from include/linux/sched.h:12,
from arch/powerpc/include/asm/elf.h:8,
from include/linux/elf.h:6,
from include/linux/module.h:20,
from hdmi_chmap.c:6:
>> arch/powerpc/include/asm/current.h:26:17: error: conflicting types for 'get_current'; have 'int()'
26 | #define current get_current()
| ^~~~~~~~~~~
hdmi_chmap.c:221:13: note: in expansion of macro 'current'
221 | int current;
| ^~~~~~~
arch/powerpc/include/asm/current.h:15:35: note: previous definition of 'get_current' with type 'struct task_struct *(void)'
15 | static inline struct task_struct *get_current(void)
| ^~~~~~~~~~~
hdmi_chmap.c:223:17: error: lvalue required as left operand of assignment
223 | current = hdmi_get_channel_count(codec, cvt_nid);
| ^
cc1: some warnings being treated as errors


vim +26 arch/powerpc/include/asm/current.h

584224e4095d8a include/asm-powerpc/current.h David Gibson 2005-11-09 14
5fe8e8b88e68e5 include/asm-powerpc/current.h Hugh Dickins 2006-10-31 15 static inline struct task_struct *get_current(void)
5fe8e8b88e68e5 include/asm-powerpc/current.h Hugh Dickins 2006-10-31 16 {
5fe8e8b88e68e5 include/asm-powerpc/current.h Hugh Dickins 2006-10-31 17 struct task_struct *task;
5fe8e8b88e68e5 include/asm-powerpc/current.h Hugh Dickins 2006-10-31 18
e354d7dc81d0e8 arch/powerpc/include/asm/current.h Nicholas Piggin 2019-06-13 19 /* get_current can be cached by the compiler, so no volatile */
e354d7dc81d0e8 arch/powerpc/include/asm/current.h Nicholas Piggin 2019-06-13 20 asm ("ld %0,%1(13)"
5fe8e8b88e68e5 include/asm-powerpc/current.h Hugh Dickins 2006-10-31 21 : "=r" (task)
5fe8e8b88e68e5 include/asm-powerpc/current.h Hugh Dickins 2006-10-31 22 : "i" (offsetof(struct paca_struct, __current)));
5fe8e8b88e68e5 include/asm-powerpc/current.h Hugh Dickins 2006-10-31 23
5fe8e8b88e68e5 include/asm-powerpc/current.h Hugh Dickins 2006-10-31 24 return task;
5fe8e8b88e68e5 include/asm-powerpc/current.h Hugh Dickins 2006-10-31 25 }
5fe8e8b88e68e5 include/asm-powerpc/current.h Hugh Dickins 2006-10-31 @26 #define current get_current()
584224e4095d8a include/asm-powerpc/current.h David Gibson 2005-11-09 27

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