All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] ALSA: hda: Separate codec read status from response
@ 2026-12-03 17:04 Sreeraj S Kurup
  2026-12-03 17:05 ` [PATCH 1/3] ALSA: hda: core: Fix command creation error handling Sreeraj S Kurup
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Sreeraj S Kurup @ 2026-12-03 17:04 UTC (permalink / raw)
  To: perex, tiwai, lgirdwood, broonie
  Cc: linux-sound, linux-kernel, Sreeraj S Kurup

Hi,

This series improves error handling in the HDA codec command and read
APIs.

Currently, snd_hdac_make_cmd() returns an unsigned int and uses -1 to
indicate an invalid command. Since -1 is converted to 0xffffffff,
which can also represent a valid encoded HDA command, callers cannot
reliably distinguish an error from a valid command.

This series changes snd_hdac_make_cmd() to return an integer status
and provide the encoded command through an output parameter. It also
updates snd_hdac_codec_read() to return an integer status and provide
the codec response through an output parameter.

The affected callers in the HDA core and ASoC HDMI codec driver are
updated to use the new API and handle errors appropriately.

Patch overview:

1. ALSA: hda: core: Fix command creation error handling
2. ALSA: hda: hdmi_chmap: Update HDMI channel map codec read callers
3. ASoC: codecs: hdac_hdmi: Update codec read API callers

Patches 2 and 3 depend on the API changes introduced in patch 1.

Please let me know if any changes are needed.

Thanks,
Sreeraj

Sreeraj S Kurup (3):
  ALSA: hda: core: Fix command creation error handling
  ALSA: hda: hdmi_chmap: Update HDMI channel map codec read callers
  ASoC: codecs: hdac_hdmi: Update codec read API callers

 include/sound/hdaudio.h      |  2 +-
 sound/hda/core/device.c      | 69 ++++++++++++++++++++++++----------
 sound/hda/core/hdmi_chmap.c  | 30 ++++++++++++---
 sound/soc/codecs/hdac_hdmi.c | 72 +++++++++++++++++++++++-------------
 4 files changed, 123 insertions(+), 50 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [PATCH 1/3] ALSA: hda: core: Fix command creation error handling
@ 2026-12-04  6:22 kernel test robot
  0 siblings, 0 replies; 18+ messages in thread
From: kernel test robot @ 2026-12-04  6:22 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "same reports for this branch"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261203170741.3873-2-sreekuttan2156239@gmail.com>
References: <20261203170741.3873-2-sreekuttan2156239@gmail.com>
TO: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
TO: perex@perex.cz
TO: tiwai@suse.de
TO: lgirdwood@gmail.com
TO: broonie@kernel.org
CC: linux-sound@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: Sreeraj S Kurup <sreekuttan2156239@gmail.com>

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-2-sreekuttan2156239%40gmail.com
patch subject: [PATCH 1/3] ALSA: hda: core: Fix command creation error handling
:::::: branch date: 13 hours ago
:::::: commit date: 13 hours ago
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20261204/20261204141252.0oLIqhYH-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204141252.0oLIqhYH-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/r/20261204141252.0oLIqhYH-lkp@intel.com/

All errors (new ones prefixed by >>):

   sound/hda/core/device.c: In function 'snd_hdac_check_power_state':
>> sound/hda/core/device.c:1150:30: error: too few arguments to function 'codec_read'; expected 6, have 5
    1150 |         unsigned int state = codec_read(hdac, nid, 0,
         |                              ^~~~~~~~~~
   sound/hda/core/device.c:1063:12: note: declared here
    1063 | static int codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |            ^~~~~~~~~~
--
   In file included from sound/soc/codecs/hdac_hda.c:19:
   include/sound/hda_codec.h: In function 'snd_hda_codec_read':
>> include/sound/hda_codec.h:333:16: error: too few arguments to function 'snd_hdac_codec_read'; expected 6, have 5
     333 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   In file included from include/sound/hdaudio_ext.h:5,
                    from sound/soc/codecs/hdac_hda.c:17:
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   include/sound/hda_codec.h: In function 'snd_hda_codec_write_sync':
   include/sound/hda_codec.h:351:16: error: too few arguments to function 'snd_hdac_codec_read'; expected 6, have 5
     351 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~


vim +/codec_read +1150 sound/hda/core/device.c

1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1136  
78dd5e21b075053 sound/hda/hdac_device.c Takashi Iwai        2015-10-28  1137  /**
78dd5e21b075053 sound/hda/hdac_device.c Takashi Iwai        2015-10-28  1138   * snd_hdac_check_power_state - check whether the actual power state matches
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1139   * with the target state
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1140   *
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1141   * @hdac: the HDAC device
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1142   * @nid: NID to send the command
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1143   * @target_state: target state to check for
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1144   *
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1145   * Return true if state matches, false if not
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1146   */
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1147  bool snd_hdac_check_power_state(struct hdac_device *hdac,
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1148  		hda_nid_t nid, unsigned int target_state)
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1149  {
1b5e6167c27e1d3 sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08 @1150  	unsigned int state = codec_read(hdac, nid, 0,

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

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [PATCH 1/3] ALSA: hda: core: Fix command creation error handling
@ 2026-12-05  9:54 kernel test robot
  0 siblings, 0 replies; 18+ messages in thread
From: kernel test robot @ 2026-12-05  9:54 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "same reports for this branch"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261203170741.3873-2-sreekuttan2156239@gmail.com>
References: <20261203170741.3873-2-sreekuttan2156239@gmail.com>
TO: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
TO: perex@perex.cz
TO: tiwai@suse.de
TO: lgirdwood@gmail.com
TO: broonie@kernel.org
CC: linux-sound@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: Sreeraj S Kurup <sreekuttan2156239@gmail.com>

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-2-sreekuttan2156239%40gmail.com
patch subject: [PATCH 1/3] ALSA: hda: core: Fix command creation error handling
:::::: branch date: 15 hours ago
:::::: commit date: 15 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20261204/20261204164357.VeP1ejrV-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204164357.VeP1ejrV-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/r/20261204164357.VeP1ejrV-lkp@intel.com/

All errors (new ones prefixed by >>):

>> sound/hda/core/device.c:1151:31: error: too few arguments to function call, expected 6, have 5
    1150 |         unsigned int state = codec_read(hdac, nid, 0,
         |                              ~~~~~~~~~~
    1151 |                                 AC_VERB_GET_POWER_STATE, 0);
         |                                                           ^
   sound/hda/core/device.c:1063:12: note: 'codec_read' declared here
    1063 | static int codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |            ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1064 |                         int flags, unsigned int verb, unsigned int parm,
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1065 |                         unsigned int *res)
         |                         ~~~~~~~~~~~~~~~~~
   1 error generated.
--
   In file included from sound/hda/common/bind.c:14:
>> include/sound/hda_codec.h:333:65: error: too few arguments to function call, expected 6, have 5
     333 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ~~~~~~~~~~~~~~~~~~~                                     ^
   include/sound/hdaudio.h:157:5: note: 'snd_hdac_codec_read' declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     158 |                         int flags, unsigned int verb, unsigned int parm, unsigned int *res);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from sound/hda/common/bind.c:14:
   include/sound/hda_codec.h:351:65: error: too few arguments to function call, expected 6, have 5
     351 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ~~~~~~~~~~~~~~~~~~~                                     ^
   include/sound/hdaudio.h:157:5: note: 'snd_hdac_codec_read' declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     158 |                         int flags, unsigned int verb, unsigned int parm, unsigned int *res);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +1151 sound/hda/core/device.c

1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1136  
78dd5e21b07505 sound/hda/hdac_device.c Takashi Iwai        2015-10-28  1137  /**
78dd5e21b07505 sound/hda/hdac_device.c Takashi Iwai        2015-10-28  1138   * snd_hdac_check_power_state - check whether the actual power state matches
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1139   * with the target state
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1140   *
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1141   * @hdac: the HDAC device
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1142   * @nid: NID to send the command
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1143   * @target_state: target state to check for
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1144   *
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1145   * Return true if state matches, false if not
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1146   */
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1147  bool snd_hdac_check_power_state(struct hdac_device *hdac,
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1148  		hda_nid_t nid, unsigned int target_state)
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1149  {
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08  1150  	unsigned int state = codec_read(hdac, nid, 0,
1b5e6167c27e1d sound/hda/hdac_device.c Subhransu S. Prusty 2015-10-08 @1151  				AC_VERB_GET_POWER_STATE, 0);

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

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [PATCH 1/3] ALSA: hda: core: Fix command creation error handling
@ 2026-12-05  9:54 kernel test robot
  0 siblings, 0 replies; 18+ messages in thread
From: kernel test robot @ 2026-12-05  9:54 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "too many reports for this commit"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261203170741.3873-2-sreekuttan2156239@gmail.com>
References: <20261203170741.3873-2-sreekuttan2156239@gmail.com>
TO: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
TO: perex@perex.cz
TO: tiwai@suse.de
TO: lgirdwood@gmail.com
TO: broonie@kernel.org
CC: linux-sound@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: Sreeraj S Kurup <sreekuttan2156239@gmail.com>

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-2-sreekuttan2156239%40gmail.com
patch subject: [PATCH 1/3] ALSA: hda: core: Fix command creation error handling
:::::: branch date: 16 hours ago
:::::: commit date: 16 hours ago
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20261204/20261204170500.Y8gIKebj-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204170500.Y8gIKebj-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/r/20261204170500.Y8gIKebj-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from sound/hda/controllers/intel.c:56:
   include/sound/hda_codec.h: In function 'snd_hda_codec_read':
>> include/sound/hda_codec.h:333:16: error: too few arguments to function 'snd_hdac_codec_read'
     333 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   In file included from sound/hda/controllers/intel.c:49:
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   include/sound/hda_codec.h: In function 'snd_hda_codec_write_sync':
   include/sound/hda_codec.h:351:16: error: too few arguments to function 'snd_hdac_codec_read'
     351 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/div64.h:27,
                    from arch/x86/include/asm/div64.h:100,
                    from include/linux/math.h:6,
                    from include/linux/delay.h:12,
                    from sound/hda/controllers/intel.c:23:
   sound/hda/controllers/intel.c: At top level:
>> include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
     200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                                                  ^
   include/linux/compiler.h:205:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     205 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   include/linux/moduleparam.h:544:20: note: in expansion of macro 'ARRAY_SIZE'
     544 |         = { .max = ARRAY_SIZE(array), .num = nump,                      \
         |                    ^~~~~~~~~~
   include/linux/moduleparam.h:528:9: note: in expansion of macro 'module_param_array_named'
     528 |         module_param_array_named(name, name, type, nump, perm)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   sound/hda/controllers/intel.c:127:1: note: in expansion of macro 'module_param_array'
     127 | module_param_array(index, int, NULL, 0444);
         | ^~~~~~~~~~~~~~~~~~
   sound/hda/controllers/intel.c:106:12: warning: 'index' defined but not used [-Wunused-variable]
     106 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
         |            ^~~~~
--
   sound/hda/core/device.c: In function 'snd_hdac_check_power_state':
>> sound/hda/core/device.c:1150:30: error: too few arguments to function 'codec_read'
    1150 |         unsigned int state = codec_read(hdac, nid, 0,
         |                              ^~~~~~~~~~
   sound/hda/core/device.c:1063:12: note: declared here
    1063 | static int codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |            ^~~~~~~~~~
--
   In file included from intel.c:56:
   include/sound/hda_codec.h: In function 'snd_hda_codec_read':
>> include/sound/hda_codec.h:333:16: error: too few arguments to function 'snd_hdac_codec_read'
     333 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   In file included from intel.c:49:
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   include/sound/hda_codec.h: In function 'snd_hda_codec_write_sync':
   include/sound/hda_codec.h:351:16: error: too few arguments to function 'snd_hdac_codec_read'
     351 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/div64.h:27,
                    from arch/x86/include/asm/div64.h:100,
                    from include/linux/math.h:6,
                    from include/linux/delay.h:12,
                    from intel.c:23:
   intel.c: At top level:
>> include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
     200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                                                  ^
   include/linux/compiler.h:205:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     205 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   include/linux/moduleparam.h:544:20: note: in expansion of macro 'ARRAY_SIZE'
     544 |         = { .max = ARRAY_SIZE(array), .num = nump,                      \
         |                    ^~~~~~~~~~
   include/linux/moduleparam.h:528:9: note: in expansion of macro 'module_param_array_named'
     528 |         module_param_array_named(name, name, type, nump, perm)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   intel.c:127:1: note: in expansion of macro 'module_param_array'
     127 | module_param_array(index, int, NULL, 0444);
         | ^~~~~~~~~~~~~~~~~~
   intel.c:106:12: warning: 'index' defined but not used [-Wunused-variable]
     106 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
         |            ^~~~~


vim +/snd_hdac_codec_read +333 include/sound/hda_codec.h

^1da177e4c3f415 sound/pci/hda/hda_codec.h Linus Torvalds 2005-04-16  324  
^1da177e4c3f415 sound/pci/hda/hda_codec.h Linus Torvalds 2005-04-16  325  /*
^1da177e4c3f415 sound/pci/hda/hda_codec.h Linus Torvalds 2005-04-16  326   * low level functions
^1da177e4c3f415 sound/pci/hda/hda_codec.h Linus Torvalds 2005-04-16  327   */
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  328  static inline unsigned int
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  329  snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid,
e7ecc27e520a9c9 sound/pci/hda/hda_codec.h Takashi Iwai   2013-06-06  330  				int flags,
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  331  				unsigned int verb, unsigned int parm)
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  332  {
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08 @333  	return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  334  }
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  335  

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

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [PATCH 1/3] ALSA: hda: core: Fix command creation error handling
@ 2026-12-05  9:54 kernel test robot
  0 siblings, 0 replies; 18+ messages in thread
From: kernel test robot @ 2026-12-05  9:54 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "too many reports for this commit"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261203170741.3873-2-sreekuttan2156239@gmail.com>
References: <20261203170741.3873-2-sreekuttan2156239@gmail.com>
TO: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
TO: perex@perex.cz
TO: tiwai@suse.de
TO: lgirdwood@gmail.com
TO: broonie@kernel.org
CC: linux-sound@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: Sreeraj S Kurup <sreekuttan2156239@gmail.com>

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-2-sreekuttan2156239%40gmail.com
patch subject: [PATCH 1/3] ALSA: hda: core: Fix command creation error handling
:::::: branch date: 16 hours ago
:::::: commit date: 16 hours ago
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20261204/20261204171717.9nQhhFPr-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204171717.9nQhhFPr-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/r/20261204171717.9nQhhFPr-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from sound/hda/common/bind.c:14:
   include/sound/hda_codec.h: In function 'snd_hda_codec_read':
>> include/sound/hda_codec.h:333:16: error: too few arguments to function 'snd_hdac_codec_read'
     333 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   In file included from include/sound/hda_codec.h:17:
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   include/sound/hda_codec.h: In function 'snd_hda_codec_write_sync':
   include/sound/hda_codec.h:351:16: error: too few arguments to function 'snd_hdac_codec_read'
     351 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
--
   In file included from sound/hda/common/codec.c:17:
   include/sound/hda_codec.h: In function 'snd_hda_codec_read':
>> include/sound/hda_codec.h:333:16: error: too few arguments to function 'snd_hdac_codec_read'
     333 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   In file included from include/sound/hda_codec.h:17:
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   include/sound/hda_codec.h: In function 'snd_hda_codec_write_sync':
   include/sound/hda_codec.h:351:16: error: too few arguments to function 'snd_hdac_codec_read'
     351 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   include/sound/hda_codec.h: In function 'snd_hda_codec_read':
>> include/sound/hda_codec.h:334:1: warning: control reaches end of non-void function [-Wreturn-type]
     334 | }
         | ^
   include/sound/hda_codec.h: In function 'snd_hda_codec_write_sync':
   include/sound/hda_codec.h:352:1: warning: control reaches end of non-void function [-Wreturn-type]
     352 | }
         | ^
--
   In file included from sound/hda/common/jack.c:14:
   include/sound/hda_codec.h: In function 'snd_hda_codec_read':
>> include/sound/hda_codec.h:333:16: error: too few arguments to function 'snd_hdac_codec_read'
     333 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   In file included from include/sound/hda_codec.h:17:
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   include/sound/hda_codec.h: In function 'snd_hda_codec_write_sync':
   include/sound/hda_codec.h:351:16: error: too few arguments to function 'snd_hdac_codec_read'
     351 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   include/sound/hda_codec.h: In function 'snd_hda_codec_read':
>> include/sound/hda_codec.h:334:1: warning: control reaches end of non-void function [-Wreturn-type]
     334 | }
         | ^
--
   In file included from sound/hda/controllers/intel.c:56:
   include/sound/hda_codec.h: In function 'snd_hda_codec_read':
>> include/sound/hda_codec.h:333:16: error: too few arguments to function 'snd_hdac_codec_read'
     333 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   In file included from sound/hda/controllers/intel.c:49:
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   include/sound/hda_codec.h: In function 'snd_hda_codec_write_sync':
   include/sound/hda_codec.h:351:16: error: too few arguments to function 'snd_hdac_codec_read'
     351 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/div64.h:27,
                    from arch/x86/include/asm/div64.h:100,
                    from include/linux/math.h:6,
                    from include/linux/delay.h:12,
                    from sound/hda/controllers/intel.c:23:
   sound/hda/controllers/intel.c: At top level:
>> include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
     200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                                                  ^
   include/linux/compiler.h:205:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     205 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   include/linux/moduleparam.h:544:20: note: in expansion of macro 'ARRAY_SIZE'
     544 |         = { .max = ARRAY_SIZE(array), .num = nump,                      \
         |                    ^~~~~~~~~~
   include/linux/moduleparam.h:528:9: note: in expansion of macro 'module_param_array_named'
     528 |         module_param_array_named(name, name, type, nump, perm)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   sound/hda/controllers/intel.c:127:1: note: in expansion of macro 'module_param_array'
     127 | module_param_array(index, int, NULL, 0444);
         | ^~~~~~~~~~~~~~~~~~
   sound/hda/controllers/intel.c:106:12: warning: 'index' defined but not used [-Wunused-variable]
     106 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
         |            ^~~~~
--
   sound/hda/core/device.c: In function 'snd_hdac_check_power_state':
>> sound/hda/core/device.c:1150:30: error: too few arguments to function 'codec_read'
    1150 |         unsigned int state = codec_read(hdac, nid, 0,
         |                              ^~~~~~~~~~
   sound/hda/core/device.c:1063:12: note: declared here
    1063 | static int codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |            ^~~~~~~~~~
--
   In file included from intel.c:56:
   include/sound/hda_codec.h: In function 'snd_hda_codec_read':
>> include/sound/hda_codec.h:333:16: error: too few arguments to function 'snd_hdac_codec_read'
     333 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   In file included from intel.c:49:
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   include/sound/hda_codec.h: In function 'snd_hda_codec_write_sync':
   include/sound/hda_codec.h:351:16: error: too few arguments to function 'snd_hdac_codec_read'
     351 |         return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
         |                ^~~~~~~~~~~~~~~~~~~
   include/sound/hdaudio.h:157:5: note: declared here
     157 | int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
         |     ^~~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/div64.h:27,
                    from arch/x86/include/asm/div64.h:100,
                    from include/linux/math.h:6,
                    from include/linux/delay.h:12,
                    from intel.c:23:
   intel.c: At top level:
>> include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
     200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                                                  ^
   include/linux/compiler.h:205:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     205 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   include/linux/moduleparam.h:544:20: note: in expansion of macro 'ARRAY_SIZE'
     544 |         = { .max = ARRAY_SIZE(array), .num = nump,                      \
         |                    ^~~~~~~~~~
   include/linux/moduleparam.h:528:9: note: in expansion of macro 'module_param_array_named'
     528 |         module_param_array_named(name, name, type, nump, perm)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   intel.c:127:1: note: in expansion of macro 'module_param_array'
     127 | module_param_array(index, int, NULL, 0444);
         | ^~~~~~~~~~~~~~~~~~
   intel.c:106:12: warning: 'index' defined but not used [-Wunused-variable]
     106 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
         |            ^~~~~


vim +/snd_hdac_codec_read +333 include/sound/hda_codec.h

^1da177e4c3f415 sound/pci/hda/hda_codec.h Linus Torvalds 2005-04-16  324  
^1da177e4c3f415 sound/pci/hda/hda_codec.h Linus Torvalds 2005-04-16  325  /*
^1da177e4c3f415 sound/pci/hda/hda_codec.h Linus Torvalds 2005-04-16  326   * low level functions
^1da177e4c3f415 sound/pci/hda/hda_codec.h Linus Torvalds 2005-04-16  327   */
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  328  static inline unsigned int
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  329  snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid,
e7ecc27e520a9c9 sound/pci/hda/hda_codec.h Takashi Iwai   2013-06-06  330  				int flags,
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  331  				unsigned int verb, unsigned int parm)
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  332  {
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08 @333  	return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08 @334  }
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  335  
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  336  static inline int
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  337  snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags,
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  338  			unsigned int verb, unsigned int parm)
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  339  {
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  340  	return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm);
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  341  }
70b4891cc889d35 sound/pci/hda/hda_codec.h Vinod Koul     2015-10-08  342  
b0762dd2fcab5b8 include/sound/hda_codec.h Takashi Iwai   2026-04-09  343  /* sync after write */
b0762dd2fcab5b8 include/sound/hda_codec.h Takashi Iwai   2026-04-09  344  static inline int
b0762dd2fcab5b8 include/sound/hda_codec.h Takashi Iwai   2026-04-09  345  snd_hda_codec_write_sync(struct hda_codec *codec, hda_nid_t nid, int flags,
b0762dd2fcab5b8 include/sound/hda_codec.h Takashi Iwai   2026-04-09  346  			 unsigned int verb, unsigned int parm)
b0762dd2fcab5b8 include/sound/hda_codec.h Takashi Iwai   2026-04-09  347  {
b0762dd2fcab5b8 include/sound/hda_codec.h Takashi Iwai   2026-04-09  348  	/* use snd_hda_codec_read() for writing;
b0762dd2fcab5b8 include/sound/hda_codec.h Takashi Iwai   2026-04-09  349  	 * the returned value is usually discarded
b0762dd2fcab5b8 include/sound/hda_codec.h Takashi Iwai   2026-04-09  350  	 */
b0762dd2fcab5b8 include/sound/hda_codec.h Takashi Iwai   2026-04-09 @351  	return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
b0762dd2fcab5b8 include/sound/hda_codec.h Takashi Iwai   2026-04-09  352  }
b0762dd2fcab5b8 include/sound/hda_codec.h Takashi Iwai   2026-04-09  353  

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2026-12-05  9:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 17:04 [PATCH 0/3] ALSA: hda: Separate codec read status from response Sreeraj S Kurup
2026-12-03 17:05 ` [PATCH 1/3] ALSA: hda: core: Fix command creation error handling Sreeraj S Kurup
2026-12-03 18:12   ` sashiko-bot
2026-12-03 17:05 ` [PATCH 2/3] ALSA: hda: hdmi_chmap: Update HDMI channel map codec read callers Sreeraj S Kurup
2026-12-03 18:22   ` sashiko-bot
2026-12-04  4:32   ` kernel test robot
2026-12-04  4:54   ` kernel test robot
2026-12-04  4:54   ` kernel test robot
2026-12-03 17:05 ` [PATCH 3/3] ASoC: codecs: hdac_hdmi: Update codec read API callers Sreeraj S Kurup
2026-12-03 18:46   ` sashiko-bot
2026-12-03 17:33 ` [PATCH 0/3] ALSA: hda: Separate codec read status from response Takashi Iwai
2026-12-03 18:10   ` Sreeraj S Kurup
2026-12-03 18:31   ` Sreeraj S Kurup
2026-12-04  8:25     ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2026-12-04  6:22 [PATCH 1/3] ALSA: hda: core: Fix command creation error handling kernel test robot
2026-12-05  9:54 kernel test robot
2026-12-05  9:54 kernel test robot
2026-12-05  9:54 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.