All of lore.kernel.org
 help / color / mirror / Atom feed
* [bvanassche:scsi-for-next 31/36] include/scsi/scsi.h:136:38: error: request for member 'b' in something not a structure or union
@ 2021-04-12  7:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-12  7:38 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2748 bytes --]

tree:   https://github.com/bvanassche/linux scsi-for-next
head:   82fed99944bad457ee009b37605e043e617280fd
commit: ead328d8360e918f3c8b83454fb19fec6f2f122b [31/36] Use struct scsi_status more widely
config: parisc-randconfig-r035-20210412 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/bvanassche/linux/commit/ead328d8360e918f3c8b83454fb19fec6f2f122b
        git remote add bvanassche https://github.com/bvanassche/linux
        git fetch --no-tags bvanassche scsi-for-next
        git checkout ead328d8360e918f3c8b83454fb19fec6f2f122b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from drivers/scsi/53c700.c:124:
   drivers/scsi/53c700.c: In function 'process_script_interrupt':
>> include/scsi/scsi.h:136:38: error: request for member 'b' in something not a structure or union
     136 | #define status_byte(result) ((result).b.status >> 1)
         |                                      ^
   drivers/scsi/53c700.c:984:6: note: in expansion of macro 'status_byte'
     984 |   if(status_byte(hostdata->status[0]) == CHECK_CONDITION ||
         |      ^~~~~~~~~~~
>> include/scsi/scsi.h:136:38: error: request for member 'b' in something not a structure or union
     136 | #define status_byte(result) ((result).b.status >> 1)
         |                                      ^
   drivers/scsi/53c700.c:985:6: note: in expansion of macro 'status_byte'
     985 |      status_byte(hostdata->status[0]) == COMMAND_TERMINATED) {
         |      ^~~~~~~~~~~


vim +/b +136 include/scsi/scsi.h

   125	
   126	/*
   127	 *  Use these to separate status msg and our bytes
   128	 *
   129	 *  These are set by:
   130	 *
   131	 *      status byte = set from target device
   132	 *      msg_byte    = return status from host adapter itself.
   133	 *      host_byte   = set by low-level driver to indicate status.
   134	 *      driver_byte = set by mid-level.
   135	 */
 > 136	#define status_byte(result) ((result).b.status >> 1)
   137	#define msg_byte(result)    ((result).b.msg)
   138	#define host_byte(result)   ((result).b.host)
   139	#define driver_byte(result) ((result).b.driver)
   140	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 22474 bytes --]

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

only message in thread, other threads:[~2021-04-12  7:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12  7:38 [bvanassche:scsi-for-next 31/36] include/scsi/scsi.h:136:38: error: request for member 'b' in something not a structure or union 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.