tree:
https://github.com/bvanassche/linux scsi-status
head: e3e8aaedcd689d1a2ae20024ed467d127bbe060a
commit: e3e8aaedcd689d1a2ae20024ed467d127bbe060a [15/15] Use struct scsi_status more
widely
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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/e3e8aaedcd689d1a2ae20024ed467d...
git remote add bvanassche
https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-status
git checkout e3e8aaedcd689d1a2ae20024ed467d127bbe060a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:10,
from drivers/scsi/53c700.c:105:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with
null pointer [-Wextra]
174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET
&& (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro
'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from drivers/scsi/53c700.c:124:
drivers/scsi/53c700.c: In function 'process_script_interrupt':
> include/scsi/scsi.h:135:38: error: request for member 'b'
in something not a structure or union
135 | #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:135:38: error: request for member 'b'
in something not a structure or union
135 | #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 +135 include/scsi/scsi.h
124
125 /*
126 * Use these to separate status msg and our bytes
127 *
128 * These are set by:
129 *
130 * status byte = set from target device
131 * msg_byte = return status from host adapter itself.
132 * host_byte = set by low-level driver to indicate status.
133 * driver_byte = set by mid-level.
134 */
135 #define status_byte(result) ((result).b.status >> 1)
136 #define msg_byte(result) ((result).b.msg)
137 #define host_byte(result) ((result).b.host)
138 #define driver_byte(result) ((result).b.driver)
139
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org