Skip to contentSkip to conversation

include/scsi/scsi_sense.h:34:9: warning: 'ASC' redefined

PATCH kernel test robot 1 participant 1 message Sep 18

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e657a464aba873f5eaf3ca821b6e4016674492d6
commit: 72c54bd0cbb2e0c35f4acd056e91c596469edc5f [6723/8072] scsi: core: Define all additional sense codes and their qualifiers
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20260918/[email protected]/config)
compiler: sparc64-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260918/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

In file included from include/scsi/scsi_proto.h:15,
from include/scsi/scsi_common.h:11, from include/linux/cdrom.h:17, from drivers/block/floppy.c:252:

>> include/scsi/scsi_sense.h:34:9: warning: 'ASC' redefined
      34 | #define ASC(name, code)                                 \
         |         ^~~
   In file included from arch/sparc/include/asm/floppy_64.h:284,
                    from arch/sparc/include/asm/floppy.h:5,
                    from drivers/block/floppy.c:246:
   arch/sparc/include/asm/ns87303.h:23:9: note: this is the location of the previous definition
      23 | #define ASC     0x09
         |         ^~~

vim +/ASC +34 include/scsi/scsi_sense.h

    32	
    33	#define ASC_DEF(name)	ASC_##name
  > 34	#define ASC(name, code)					\
    35		ASC_DEF(name)	= (code),			\
    36		name		= ((code) << 8) | 0x00
    37	

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