tree:
https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git virtio-vfc.v6
head: 7e3ab9aac391a4fb2aef468332128900bdef8df6
commit: 65a1d16588d3c3cb7b09f0f162c571be3533afc4 [3/5] virtio-scsi: Add FC transport
class
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://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel
https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel virtio-vfc.v6
git checkout 65a1d16588d3c3cb7b09f0f162c571be3533afc4
# 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 include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/scsi/virtio_scsi.c:15:
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));
| ^~~~~~~~~~~~~~~
drivers/scsi/virtio_scsi.c: In function 'virtscsi_complete_cmd':
drivers/scsi/virtio_scsi.c:178:3: error: 'tgt' undeclared (first use in this
function)
178 | tgt = rport->dd_data;
| ^~~
drivers/scsi/virtio_scsi.c:178:3: note: each undeclared identifier is reported only
once for each function it appears in
drivers/scsi/virtio_scsi.c: At top level:
drivers/scsi/virtio_scsi.c:848:2: error: expected declaration specifiers or
'...' before 'rport'
848 | rport = starget_to_rport(starget);
| ^~~~~
drivers/scsi/virtio_scsi.c:849:2: error: expected declaration specifiers or
'...' before 'if'
849 | if (rport) {
| ^~
In file included from ./arch/m68k/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:246,
from include/linux/kernel.h:10,
from include/linux/list.h:9,
from include/linux/module.h:12,
from drivers/scsi/virtio_scsi.c:15:
> include/asm-generic/rwonce.h:59:1: error: expected declaration
specifiers or '...' before 'do'
59 | do { \
| ^~
arch/m68k/include/asm/atomic.h:20:26: note: in expansion of macro 'WRITE_ONCE'
20 | #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
| ^~~~~~~~~~
drivers/scsi/virtio_scsi.c:875:2: note: in expansion of macro 'atomic_set'
875 | atomic_set(&tgt->reqs, 0);
| ^~~~~~~~~~
drivers/scsi/virtio_scsi.c:876:2: error: expected declaration specifiers or
'...' before 'tgt'
876 | tgt->req_vq = &vscsi->req_vqs[0];
| ^~~
drivers/scsi/virtio_scsi.c:877:2: error: expected declaration specifiers or
'...' before 'tgt'
877 | tgt->vscsi = vscsi;
| ^~~
drivers/scsi/virtio_scsi.c:878:2: error: expected declaration specifiers or
'...' before 'return'
878 | return 0;
| ^~~~~~
drivers/scsi/virtio_scsi.c:879:1: error: expected declaration specifiers or
'...' before '}' token
879 | }
| ^
drivers/scsi/virtio_scsi.c:879:1: error: expected ';', ',' or
')' before '}' token
drivers/scsi/virtio_scsi.c: In function 'virtscsi_rescan_work':
drivers/scsi/virtio_scsi.c:951:8: error: implicit declaration of function
'virtscsi_kick_cmd'; did you mean 'virtscsi_kick_vq'?
[-Werror=implicit-function-declaration]
951 | ret = virtscsi_kick_cmd(&vscsi->ctrl_vq, cmd,
sizeof(cmd->req.rescan),
| ^~~~~~~~~~~~~~~~~
| virtscsi_kick_vq
drivers/scsi/virtio_scsi.c: At top level:
drivers/scsi/virtio_scsi.c:1119:5: warning: no previous prototype for
'virtscsi_scan_finished' [-Wmissing-prototypes]
1119 | int virtscsi_scan_finished(struct Scsi_Host *sh, unsigned long time)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/virtio_scsi.c:881:13: warning: 'virtscsi_target_destroy' defined
but not used [-Wunused-function]
881 | static void virtscsi_target_destroy(struct scsi_target *starget)
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +59 include/asm-generic/rwonce.h
e506ea451254ab Will Deacon 2019-10-15 57
e506ea451254ab Will Deacon 2019-10-15 58 #define WRITE_ONCE(x, val) \
e506ea451254ab Will Deacon 2019-10-15 @59 do { \
e506ea451254ab Will Deacon 2019-10-15 60 compiletime_assert_rwonce_type(x); \
e506ea451254ab Will Deacon 2019-10-15 61 __WRITE_ONCE(x, val); \
e506ea451254ab Will Deacon 2019-10-15 62 } while (0)
e506ea451254ab Will Deacon 2019-10-15 63
:::::: The code at line 59 was first introduced by commit
:::::: e506ea451254ab17e0bf918ca36232fec2a9b10c compiler.h: Split {READ,WRITE}_ONCE
definitions out into rwonce.h
:::::: TO: Will Deacon <will(a)kernel.org>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org