All of lore.kernel.org
 help / color / mirror / Atom feed
* [tiwai-sound:test/hda-reorg 29/53] sound/hda/common/hwdep.c:26:6: warning: label followed by a declaration is a C23 extension
@ 2025-07-05  6:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-05  6:32 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: llvm, oe-kbuild-all, alsa-devel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git test/hda-reorg
head:   6119728edf86cefcbf7b20e000414c85916e900d
commit: 5b965be899c8e3286f5111b7e90207afe5124b67 [29/53] ALSA: hda: Move common codec driver into sound/hda/common directory
config: riscv-randconfig-001-20250705 (https://download.01.org/0day-ci/archive/20250705/202507051454.VintnWOF-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 61529d9e36fa86782a2458e6bdeedf7f376ef4b5)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250705/202507051454.VintnWOF-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/oe-kbuild-all/202507051454.VintnWOF-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from sound/hda/common/hwdep.c:10:
   In file included from include/linux/compat.h:17:
   include/linux/fs.h:3979:15: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
    3979 |         if (unlikely(get_user(c, path)))
         |                      ^
   arch/riscv/include/asm/uaccess.h:274:3: note: expanded from macro 'get_user'
     274 |                 __get_user((x), __p) :                          \
         |                 ^
   arch/riscv/include/asm/uaccess.h:244:2: note: expanded from macro '__get_user'
     244 |         __get_user_error(__gu_val, __gu_ptr, __gu_err);         \
         |         ^
   arch/riscv/include/asm/uaccess.h:207:2: note: expanded from macro '__get_user_error'
     207 |         __get_user_nocheck(x, ptr, __gu_failed);                        \
         |         ^
   arch/riscv/include/asm/uaccess.h:196:3: note: expanded from macro '__get_user_nocheck'
     196 |                 __get_user_8((x), __gu_ptr, label);             \
         |                 ^
   arch/riscv/include/asm/uaccess.h:130:2: note: expanded from macro '__get_user_8'
     130 |         u32 __user *__ptr = (u32 __user *)(ptr);                \
         |         ^
>> sound/hda/common/hwdep.c:26:6: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
      26 |         if (get_user(verb, &arg->verb))
         |             ^
   arch/riscv/include/asm/uaccess.h:274:3: note: expanded from macro 'get_user'
     274 |                 __get_user((x), __p) :                          \
         |                 ^
   arch/riscv/include/asm/uaccess.h:244:2: note: expanded from macro '__get_user'
     244 |         __get_user_error(__gu_val, __gu_ptr, __gu_err);         \
         |         ^
   arch/riscv/include/asm/uaccess.h:207:2: note: expanded from macro '__get_user_error'
     207 |         __get_user_nocheck(x, ptr, __gu_failed);                        \
         |         ^
   arch/riscv/include/asm/uaccess.h:196:3: note: expanded from macro '__get_user_nocheck'
     196 |                 __get_user_8((x), __gu_ptr, label);             \
         |                 ^
   arch/riscv/include/asm/uaccess.h:130:2: note: expanded from macro '__get_user_8'
     130 |         u32 __user *__ptr = (u32 __user *)(ptr);                \
         |         ^
   sound/hda/common/hwdep.c:40:6: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
      40 |         if (get_user(verb, &arg->verb))
         |             ^
   arch/riscv/include/asm/uaccess.h:274:3: note: expanded from macro 'get_user'
     274 |                 __get_user((x), __p) :                          \
         |                 ^
   arch/riscv/include/asm/uaccess.h:244:2: note: expanded from macro '__get_user'
     244 |         __get_user_error(__gu_val, __gu_ptr, __gu_err);         \
         |         ^
   arch/riscv/include/asm/uaccess.h:207:2: note: expanded from macro '__get_user_error'
     207 |         __get_user_nocheck(x, ptr, __gu_failed);                        \
         |         ^
   arch/riscv/include/asm/uaccess.h:196:3: note: expanded from macro '__get_user_nocheck'
     196 |                 __get_user_8((x), __gu_ptr, label);             \
         |                 ^
   arch/riscv/include/asm/uaccess.h:130:2: note: expanded from macro '__get_user_8'
     130 |         u32 __user *__ptr = (u32 __user *)(ptr);                \
         |         ^
   3 warnings generated.


vim +26 sound/hda/common/hwdep.c

2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  17  
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  18  /*
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  19   * write/read an out-of-bound verb
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  20   */
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  21  static int verb_write_ioctl(struct hda_codec *codec,
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  22  			    struct hda_verb_ioctl __user *arg)
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  23  {
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  24  	u32 verb, res;
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  25  
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27 @26  	if (get_user(verb, &arg->verb))
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  27  		return -EFAULT;
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  28  	res = snd_hda_codec_read(codec, verb >> 24, 0,
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  29  				 (verb >> 8) & 0xffff, verb & 0xff);
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  30  	if (put_user(res, &arg->res))
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  31  		return -EFAULT;
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  32  	return 0;
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  33  }
2807314d467e7d sound/pci/hda/hda_hwdep.c Takashi Iwai 2007-07-27  34  

:::::: The code at line 26 was first introduced by commit
:::::: 2807314d467e7dd929c42050031aabbd28e78f0b [ALSA] hda-intel - Add hwdep interface

:::::: TO: Takashi Iwai <tiwai@suse.de>
:::::: CC: Jaroslav Kysela <perex@perex.cz>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-05  6:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-05  6:32 [tiwai-sound:test/hda-reorg 29/53] sound/hda/common/hwdep.c:26:6: warning: label followed by a declaration is a C23 extension 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.