Re: [RFC] net: core: devlink: add port_params_ops for devlink port parameters altering
by kernel test robot
Hi Oleksandr,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on net/master]
[also build test WARNING on net-next/master ipvs/master linus/master v5.12-rc6 next-20210409]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Oleksandr-Mazur/net-core-devlink...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git 864db232dc7036aa2de19749c3d5be0143b24f8f
config: sh-allmodconfig (attached as .config)
compiler: sh4-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/0day-ci/linux/commit/7e224a25c3c6be88530f86f7f5dd9e668...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Oleksandr-Mazur/net-core-devlink-add-port_params_ops-for-devlink-port-parameters-altering/20210410-002443
git checkout 7e224a25c3c6be88530f86f7f5dd9e668d3b5620
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/netdevsim/dev.c:923:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
923 | .port_param_ops = &nsim_dev_port_param_ops,
| ^
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
vim +/const +923 drivers/net/netdevsim/dev.c
909
910 static const struct devlink_ops nsim_dev_devlink_ops = {
911 .supported_flash_update_params = DEVLINK_SUPPORT_FLASH_UPDATE_COMPONENT |
912 DEVLINK_SUPPORT_FLASH_UPDATE_OVERWRITE_MASK,
913 .reload_actions = BIT(DEVLINK_RELOAD_ACTION_DRIVER_REINIT),
914 .reload_down = nsim_dev_reload_down,
915 .reload_up = nsim_dev_reload_up,
916 .info_get = nsim_dev_info_get,
917 .flash_update = nsim_dev_flash_update,
918 .trap_init = nsim_dev_devlink_trap_init,
919 .trap_action_set = nsim_dev_devlink_trap_action_set,
920 .trap_group_set = nsim_dev_devlink_trap_group_set,
921 .trap_policer_set = nsim_dev_devlink_trap_policer_set,
922 .trap_policer_counter_get = nsim_dev_devlink_trap_policer_counter_get,
> 923 .port_param_ops = &nsim_dev_port_param_ops,
924 };
925
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[linux-stable-rc:linux-4.9.y 1825/2149] drivers/spi/spi-s3c24xx-fiq.S:52: Error: bad instruction `subsne pc,lr,#4'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.9.y
head: 1872b07a2ec0357e1349cc0081b182dd0b3e9dd7
commit: bc690c8239c3646434e19792851e825fafdb2782 [1825/2149] ARM: s3c: fix fiq for clang IAS
config: arm-randconfig-r033-20210401 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.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/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.9.y
git checkout bc690c8239c3646434e19792851e825fafdb2782
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=arm
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 >>):
drivers/spi/spi-s3c24xx-fiq.S: Assembler messages:
>> drivers/spi/spi-s3c24xx-fiq.S:52: Error: bad instruction `subsne pc,lr,#4'
drivers/spi/spi-s3c24xx-fiq.S:78: Error: bad instruction `subsne pc,lr,#4'
drivers/spi/spi-s3c24xx-fiq.S:102: Error: bad instruction `subsne pc,lr,#4'
vim +52 drivers/spi/spi-s3c24xx-fiq.S
21
22 .text
23
24 @ entry to these routines is as follows, with the register names
25 @ defined in fiq.h so that they can be shared with the C files which
26 @ setup the calling registers.
27 @
28 @ fiq_rirq The base of the IRQ registers to find S3C2410_SRCPND
29 @ fiq_rtmp Temporary register to hold tx/rx data
30 @ fiq_rspi The base of the SPI register block
31 @ fiq_rtx The tx buffer pointer
32 @ fiq_rrx The rx buffer pointer
33 @ fiq_rcount The number of bytes to move
34
35 @ each entry starts with a word entry of how long it is
36 @ and an offset to the irq acknowledgment word
37
38 ENTRY(s3c24xx_spi_fiq_rx)
39 .word fiq_rx_end - fiq_rx_start
40 .word fiq_rx_irq_ack - fiq_rx_start
41 fiq_rx_start:
42 ldr fiq_rtmp, fiq_rx_irq_ack
43 str fiq_rtmp, [ fiq_rirq, # S3C2410_SRCPND - S3C24XX_VA_IRQ ]
44
45 ldrb fiq_rtmp, [ fiq_rspi, # S3C2410_SPRDAT ]
46 strb fiq_rtmp, [ fiq_rrx ], #1
47
48 mov fiq_rtmp, #0xff
49 strb fiq_rtmp, [ fiq_rspi, # S3C2410_SPTDAT ]
50
51 subs fiq_rcount, fiq_rcount, #1
> 52 subsne pc, lr, #4 @@ return, still have work to do
53
54 @@ set IRQ controller so that next op will trigger IRQ
55 mov fiq_rtmp, #0
56 str fiq_rtmp, [ fiq_rirq, # S3C2410_INTMOD - S3C24XX_VA_IRQ ]
57 subs pc, lr, #4
58
59 fiq_rx_irq_ack:
60 .word 0
61 fiq_rx_end:
62
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
include/linux/compiler_types.h:315:38: error: call to '__compiletime_assert_536' declared with attribute error: BUILD_BUG_ON failed: offsetof(struct can_frame, len) != offsetof(struct canfd_frame, len) || offsetof(struct can_frame, data) != offsetof(struc...
by kernel test robot
Hi Oliver,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 812da4d39463a060738008a46cfc9f775e4bfcf6
commit: c7b74967799b1af52b3045d69d4c26836b2d41de can: replace can_dlc as variable/element for payload length
date: 4 months ago
config: arm-randconfig-r016-20210321 (attached as .config)
compiler: arm-linux-gnueabi-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/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c7b74967799b1af52b3045d69d4c26836b2d41de
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 <command-line>:
net/can/af_can.c: In function 'can_init':
>> include/linux/compiler_types.h:315:38: error: call to '__compiletime_assert_536' declared with attribute error: BUILD_BUG_ON failed: offsetof(struct can_frame, len) != offsetof(struct canfd_frame, len) || offsetof(struct can_frame, data) != offsetof(struct canfd_frame, data)
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:296:4: note: in definition of macro '__compiletime_assert'
296 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:315:2: note: in expansion of macro '_compiletime_assert'
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
net/can/af_can.c:891:2: note: in expansion of macro 'BUILD_BUG_ON'
891 | BUILD_BUG_ON(offsetof(struct can_frame, len) !=
| ^~~~~~~~~~~~
vim +/__compiletime_assert_536 +315 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 301
eb5c2d4b45e3d2 Will Deacon 2020-07-21 302 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 303 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 304
eb5c2d4b45e3d2 Will Deacon 2020-07-21 305 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 306 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 307 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 308 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 309 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 310 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 311 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 312 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @315 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 316
:::::: The code at line 315 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.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
1 year, 5 months
[bvanassche:scsi-status 20/25] drivers/xen/xen-scsiback.c:227:31: error: member reference base type 'int' is not a structure or union
by kernel test robot
tree: https://github.com/bvanassche/linux scsi-status
head: b6f3ee28c1d53a4e4fb9d871009e5cb465c3d824
commit: 72c80b94e0d16c6e0bdbf4153c232dc40303bae2 [20/25] Use struct scsi_status more widely
config: arm64-randconfig-r001-20210409 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/bvanassche/linux/commit/72c80b94e0d16c6e0bdbf4153c232d...
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-status
git checkout 72c80b94e0d16c6e0bdbf4153c232dc40303bae2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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 >>):
>> drivers/xen/xen-scsiback.c:227:31: error: member reference base type 'int' is not a structure or union
pending_req->cmnd[0], status_byte(errors), msg_byte(errors),
^~~~~~~~~~~~~~~~~~~
include/linux/printk.h:343:33: note: expanded from macro 'pr_err'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/scsi/scsi.h:135:38: note: expanded from macro 'status_byte'
#define status_byte(result) ((result).b.status >> 1)
~~~~~~~~^~
drivers/xen/xen-scsiback.c:227:52: error: member reference base type 'int' is not a structure or union
pending_req->cmnd[0], status_byte(errors), msg_byte(errors),
^~~~~~~~~~~~~~~~
include/linux/printk.h:343:33: note: expanded from macro 'pr_err'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/scsi/scsi.h:136:38: note: expanded from macro 'msg_byte'
#define msg_byte(result) ((result).b.msg)
~~~~~~~~^~
drivers/xen/xen-scsiback.c:228:9: error: member reference base type 'int' is not a structure or union
host_byte(errors), driver_byte(errors));
^~~~~~~~~~~~~~~~~
include/linux/printk.h:343:33: note: expanded from macro 'pr_err'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/scsi/scsi.h:137:38: note: expanded from macro 'host_byte'
#define host_byte(result) ((result).b.host)
~~~~~~~~^~
drivers/xen/xen-scsiback.c:228:28: error: member reference base type 'int' is not a structure or union
host_byte(errors), driver_byte(errors));
^~~~~~~~~~~~~~~~~~~
include/linux/printk.h:343:33: note: expanded from macro 'pr_err'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/scsi/scsi.h:138:38: note: expanded from macro 'driver_byte'
#define driver_byte(result) ((result).b.driver)
~~~~~~~~^~
drivers/xen/xen-scsiback.c:343:36: error: member reference base type 'uint32_t' (aka 'unsigned int') is not a structure or union
errors = pending_req->result.combined;
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
drivers/xen/xen-scsiback.c:1391:21: error: member reference base type 'uint32_t' (aka 'unsigned int') is not a structure or union
pending_req->result.combined = SAM_STAT_GOOD;
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
drivers/xen/xen-scsiback.c:1404:22: error: member reference base type 'uint32_t' (aka 'unsigned int') is not a structure or union
pending_req->result.combined = (DRIVER_SENSE << 24) |
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
drivers/xen/xen-scsiback.c:1407:22: error: member reference base type 'uint32_t' (aka 'unsigned int') is not a structure or union
pending_req->result.combined = se_cmd->scsi_status;
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
8 errors generated.
vim +/int +227 drivers/xen/xen-scsiback.c
d9d660f6e562a4 Juergen Gross 2014-08-28 219
d9d660f6e562a4 Juergen Gross 2014-08-28 220 static void scsiback_print_status(char *sense_buffer, int errors,
d9d660f6e562a4 Juergen Gross 2014-08-28 221 struct vscsibk_pend *pending_req)
d9d660f6e562a4 Juergen Gross 2014-08-28 222 {
d9d660f6e562a4 Juergen Gross 2014-08-28 223 struct scsiback_tpg *tpg = pending_req->v2p->tpg;
d9d660f6e562a4 Juergen Gross 2014-08-28 224
785748788bafb1 Tao Chen 2015-03-10 225 pr_err("[%s:%d] cmnd[0]=%02x -> st=%02x msg=%02x host=%02x drv=%02x\n",
d9d660f6e562a4 Juergen Gross 2014-08-28 226 tpg->tport->tport_name, pending_req->v2p->lun,
d9d660f6e562a4 Juergen Gross 2014-08-28 @227 pending_req->cmnd[0], status_byte(errors), msg_byte(errors),
d9d660f6e562a4 Juergen Gross 2014-08-28 228 host_byte(errors), driver_byte(errors));
d9d660f6e562a4 Juergen Gross 2014-08-28 229 }
d9d660f6e562a4 Juergen Gross 2014-08-28 230
:::::: The code at line 227 was first introduced by commit
:::::: d9d660f6e562a47b4065eeb7e538910b0471b988 xen-scsiback: Add Xen PV SCSI backend driver
:::::: TO: Juergen Gross <jgross(a)suse.com>
:::::: CC: Stefano Stabellini <stefano.stabellini(a)eu.citrix.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[intel-linux-intel-lts:4.19/android_r 18602/22631] drivers/usb/host/xhci-dbgcap.c:937:40: sparse: sparse: restricted __le32 degrades to integer
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 4.19/android_r
head: 072f407465e8e25a3c2c22590e1ab72ccf335151
commit: e5617084bdedf94a5f1c07b3f09b98d39adc0c8f [18602/22631] usb: xhci: dbc: Provide sysfs option to configure dbc descriptors
config: x86_64-randconfig-s032-20210409 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-279-g6d5d9b42-dirty
# https://github.com/intel/linux-intel-lts/commit/e5617084bdedf94a5f1c07b3f...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 4.19/android_r
git checkout e5617084bdedf94a5f1c07b3f09b98d39adc0c8f
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/usb/host/xhci-dbgcap.c:133:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] dev_info @@ got restricted __le32 [usertype] @@
drivers/usb/host/xhci-dbgcap.c:133:18: sparse: expected unsigned int [usertype] dev_info
drivers/usb/host/xhci-dbgcap.c:133:18: sparse: got restricted __le32 [usertype]
drivers/usb/host/xhci-dbgcap.c:136:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] dev_info @@ got restricted __le32 [usertype] @@
drivers/usb/host/xhci-dbgcap.c:136:18: sparse: expected unsigned int [usertype] dev_info
drivers/usb/host/xhci-dbgcap.c:136:18: sparse: got restricted __le32 [usertype]
drivers/usb/host/xhci-dbgcap.c:272:25: sparse: sparse: invalid assignment: &=
drivers/usb/host/xhci-dbgcap.c:272:25: sparse: left side has type unsigned int
drivers/usb/host/xhci-dbgcap.c:272:25: sparse: right side has type restricted __le32
drivers/usb/host/xhci-dbgcap.c:274:25: sparse: sparse: invalid assignment: |=
drivers/usb/host/xhci-dbgcap.c:274:25: sparse: left side has type unsigned int
drivers/usb/host/xhci-dbgcap.c:274:25: sparse: right side has type restricted __le32
drivers/usb/host/xhci-dbgcap.c:638:53: sparse: sparse: restricted __le64 degrades to integer
>> drivers/usb/host/xhci-dbgcap.c:937:40: sparse: sparse: restricted __le32 degrades to integer
>> drivers/usb/host/xhci-dbgcap.c:937:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got unsigned int @@
drivers/usb/host/xhci-dbgcap.c:937:33: sparse: expected restricted __le32 [usertype] length
drivers/usb/host/xhci-dbgcap.c:937:33: sparse: got unsigned int
drivers/usb/host/xhci-dbgcap.c:981:40: sparse: sparse: restricted __le32 degrades to integer
drivers/usb/host/xhci-dbgcap.c:981:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got unsigned int @@
drivers/usb/host/xhci-dbgcap.c:981:33: sparse: expected restricted __le32 [usertype] length
drivers/usb/host/xhci-dbgcap.c:981:33: sparse: got unsigned int
drivers/usb/host/xhci-dbgcap.c:1025:40: sparse: sparse: restricted __le32 degrades to integer
drivers/usb/host/xhci-dbgcap.c:1025:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got unsigned int @@
drivers/usb/host/xhci-dbgcap.c:1025:33: sparse: expected restricted __le32 [usertype] length
drivers/usb/host/xhci-dbgcap.c:1025:33: sparse: got unsigned int
>> drivers/usb/host/xhci-dbgcap.c:1041:39: sparse: sparse: cast to restricted __le32
drivers/usb/host/xhci-dbgcap.c:1063:20: sparse: sparse: cast to restricted __le32
>> drivers/usb/host/xhci-dbgcap.c:1064:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] dev_info @@ got restricted __le32 [usertype] @@
drivers/usb/host/xhci-dbgcap.c:1064:18: sparse: expected unsigned int [assigned] [usertype] dev_info
drivers/usb/host/xhci-dbgcap.c:1064:18: sparse: got restricted __le32 [usertype]
drivers/usb/host/xhci-dbgcap.c:1080:45: sparse: sparse: cast to restricted __le32
drivers/usb/host/xhci-dbgcap.c:1102:20: sparse: sparse: cast to restricted __le32
drivers/usb/host/xhci-dbgcap.c:1103:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] dev_info @@ got restricted __le32 [usertype] @@
drivers/usb/host/xhci-dbgcap.c:1103:18: sparse: expected unsigned int [assigned] [usertype] dev_info
drivers/usb/host/xhci-dbgcap.c:1103:18: sparse: got restricted __le32 [usertype]
drivers/usb/host/xhci-dbgcap.c:1120:39: sparse: sparse: cast to restricted __le32
drivers/usb/host/xhci-dbgcap.c:1142:20: sparse: sparse: cast to restricted __le32
drivers/usb/host/xhci-dbgcap.c:1143:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] dev_info @@ got restricted __le32 [usertype] @@
drivers/usb/host/xhci-dbgcap.c:1143:18: sparse: expected unsigned int [assigned] [usertype] dev_info
drivers/usb/host/xhci-dbgcap.c:1143:18: sparse: got restricted __le32 [usertype]
drivers/usb/host/xhci-dbgcap.c:1159:46: sparse: sparse: cast to restricted __le32
drivers/usb/host/xhci-dbgcap.c:1181:20: sparse: sparse: cast to restricted __le32
drivers/usb/host/xhci-dbgcap.c:1182:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [assigned] [usertype] dev_info @@ got restricted __le32 [usertype] @@
drivers/usb/host/xhci-dbgcap.c:1182:18: sparse: expected unsigned int [assigned] [usertype] dev_info
drivers/usb/host/xhci-dbgcap.c:1182:18: sparse: got restricted __le32 [usertype]
drivers/usb/host/xhci-dbgcap.c: In function 'xhci_dbc_populate_strings':
drivers/usb/host/xhci-dbgcap.c:50:36: warning: taking address of packed member of 'struct usb_string_descriptor' may result in an unaligned pointer value [-Waddress-of-packed-member]
50 | UTF16_LITTLE_ENDIAN, (wchar_t *)s_desc->wData,
| ^~~~~~
drivers/usb/host/xhci-dbgcap.c:61:36: warning: taking address of packed member of 'struct usb_string_descriptor' may result in an unaligned pointer value [-Waddress-of-packed-member]
61 | UTF16_LITTLE_ENDIAN, (wchar_t *)s_desc->wData,
| ^~~~~~
drivers/usb/host/xhci-dbgcap.c:73:36: warning: taking address of packed member of 'struct usb_string_descriptor' may result in an unaligned pointer value [-Waddress-of-packed-member]
73 | UTF16_LITTLE_ENDIAN, (wchar_t *)s_desc->wData,
| ^~~~~~
drivers/usb/host/xhci-dbgcap.c: At top level:
drivers/usb/host/xhci-dbgcap.c:191:6: warning: no previous prototype for 'xhci_dbc_flush_requests' [-Wmissing-prototypes]
191 | void xhci_dbc_flush_requests(struct xhci_dbc *dbc)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/host/xhci-dbgcap.c: In function 'xhci_dbc_handle_events':
drivers/usb/host/xhci-dbgcap.c:794:8: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
794 | int ret;
| ^~~
drivers/usb/host/xhci-dbgcap.c: In function 'dbc_manufacturer_show':
drivers/usb/host/xhci-dbgcap.c:911:37: warning: taking address of packed member of 'struct usb_string_descriptor' may result in an unaligned pointer value [-Waddress-of-packed-member]
911 | return utf16s_to_utf8s((wchar_t *) s_desc->wData, s_desc->bLength / 2,
| ^~~~~~
drivers/usb/host/xhci-dbgcap.c: In function 'dbc_manufacturer_store':
drivers/usb/host/xhci-dbgcap.c:931:37: warning: taking address of packed member of 'struct usb_string_descriptor' may result in an unaligned pointer value [-Waddress-of-packed-member]
931 | UTF16_LITTLE_ENDIAN, (wchar_t *)s_desc->wData,
| ^~~~~~
drivers/usb/host/xhci-dbgcap.c: In function 'dbc_product_show':
drivers/usb/host/xhci-dbgcap.c:955:37: warning: taking address of packed member of 'struct usb_string_descriptor' may result in an unaligned pointer value [-Waddress-of-packed-member]
955 | return utf16s_to_utf8s((wchar_t *) s_desc->wData, s_desc->bLength / 2,
| ^~~~~~
drivers/usb/host/xhci-dbgcap.c: In function 'dbc_product_store':
drivers/usb/host/xhci-dbgcap.c:975:37: warning: taking address of packed member of 'struct usb_string_descriptor' may result in an unaligned pointer value [-Waddress-of-packed-member]
975 | UTF16_LITTLE_ENDIAN, (wchar_t *)s_desc->wData,
| ^~~~~~
drivers/usb/host/xhci-dbgcap.c: In function 'dbc_serial_show':
drivers/usb/host/xhci-dbgcap.c:999:37: warning: taking address of packed member of 'struct usb_string_descriptor' may result in an unaligned pointer value [-Waddress-of-packed-member]
999 | return utf16s_to_utf8s((wchar_t *) s_desc->wData, s_desc->bLength / 2,
| ^~~~~~
drivers/usb/host/xhci-dbgcap.c: In function 'dbc_serial_store':
drivers/usb/host/xhci-dbgcap.c:1019:37: warning: taking address of packed member of 'struct usb_string_descriptor' may result in an unaligned pointer value [-Waddress-of-packed-member]
1019 | UTF16_LITTLE_ENDIAN, (wchar_t *)s_desc->wData,
| ^~~~~~
drivers/usb/host/xhci-dbgcap.c:18: warning: cannot understand function prototype: 'struct dbc_function *dbc_registered_func; '
vim +937 drivers/usb/host/xhci-dbgcap.c
914
915 static ssize_t dbc_manufacturer_store(struct device *dev,
916 struct device_attribute *attr,
917 const char *buf, size_t size)
918 {
919 struct xhci_dbc *dbc;
920 struct xhci_hcd *xhci;
921 struct usb_string_descriptor *s_desc;
922 int ret;
923 struct dbc_info_context *info;
924
925 xhci = hcd_to_xhci(dev_get_drvdata(dev));
926 dbc = xhci->dbc;
927 if (dbc->state != DS_DISABLED)
928 return -EBUSY;
929 s_desc = (struct usb_string_descriptor *) dbc->string->manufacturer;
930 ret = utf8s_to_utf16s(buf, strlen(buf),
931 UTF16_LITTLE_ENDIAN, (wchar_t *)s_desc->wData,
932 DBC_MAX_STRING_LENGTH);
933 if (ret < 0)
934 return ret;
935 s_desc->bLength = (strlen(buf) + 1) * 2;
936 info = (struct dbc_info_context *)dbc->ctx->bytes;
> 937 info->length = (info->length & ~(0xffu << 8))
938 | (s_desc->bLength) << 8;
939 return size;
940 }
941
942 static ssize_t dbc_product_show(struct device *dev,
943 struct device_attribute *attr,
944 char *buf)
945 {
946 struct xhci_dbc *dbc;
947 struct xhci_hcd *xhci;
948 struct usb_string_descriptor *s_desc;
949
950 xhci = hcd_to_xhci(dev_get_drvdata(dev));
951 dbc = xhci->dbc;
952 if (!dbc || !dbc->string)
953 return -ENODEV;
954 s_desc = (struct usb_string_descriptor *) dbc->string->product;
955 return utf16s_to_utf8s((wchar_t *) s_desc->wData, s_desc->bLength / 2,
956 UTF16_LITTLE_ENDIAN, buf, DBC_MAX_STRING_LENGTH);
957 }
958
959 static ssize_t dbc_product_store(struct device *dev,
960 struct device_attribute *attr,
961 const char *buf, size_t size)
962 {
963 struct xhci_dbc *dbc;
964 struct xhci_hcd *xhci;
965 struct usb_string_descriptor *s_desc;
966 int ret;
967 struct dbc_info_context *info;
968
969 xhci = hcd_to_xhci(dev_get_drvdata(dev));
970 dbc = xhci->dbc;
971 if (dbc->state != DS_DISABLED)
972 return -EBUSY;
973 s_desc = (struct usb_string_descriptor *) dbc->string->serial;
974 ret = utf8s_to_utf16s(buf, strlen(buf),
975 UTF16_LITTLE_ENDIAN, (wchar_t *)s_desc->wData,
976 DBC_MAX_STRING_LENGTH);
977 if (ret < 0)
978 return ret;
979 s_desc->bLength = (strlen(buf) + 1) * 2;
980 info = (struct dbc_info_context *)dbc->ctx->bytes;
981 info->length = (info->length & ~(0xffu << 16))
982 | (s_desc->bLength) << 16;
983 return size;
984 }
985
986 static ssize_t dbc_serial_show(struct device *dev,
987 struct device_attribute *attr,
988 char *buf)
989 {
990 struct xhci_dbc *dbc;
991 struct xhci_hcd *xhci;
992 struct usb_string_descriptor *s_desc;
993
994 xhci = hcd_to_xhci(dev_get_drvdata(dev));
995 dbc = xhci->dbc;
996 if (!dbc || !dbc->string)
997 return -ENODEV;
998 s_desc = (struct usb_string_descriptor *) dbc->string->serial;
999 return utf16s_to_utf8s((wchar_t *) s_desc->wData, s_desc->bLength / 2,
1000 UTF16_LITTLE_ENDIAN, buf, DBC_MAX_STRING_LENGTH);
1001 }
1002
1003 static ssize_t dbc_serial_store(struct device *dev,
1004 struct device_attribute *attr,
1005 const char *buf, size_t size)
1006 {
1007 struct xhci_dbc *dbc;
1008 struct xhci_hcd *xhci;
1009 struct usb_string_descriptor *s_desc;
1010 int ret;
1011 struct dbc_info_context *info;
1012
1013 xhci = hcd_to_xhci(dev_get_drvdata(dev));
1014 dbc = xhci->dbc;
1015 if (dbc->state != DS_DISABLED)
1016 return -EBUSY;
1017 s_desc = (struct usb_string_descriptor *) dbc->string->serial;
1018 ret = utf8s_to_utf16s(buf, strlen(buf),
1019 UTF16_LITTLE_ENDIAN, (wchar_t *)s_desc->wData,
1020 DBC_MAX_STRING_LENGTH);
1021 if (ret < 0)
1022 return ret;
1023 s_desc->bLength = (strlen(buf) + 1) * 2;
1024 info = (struct dbc_info_context *)dbc->ctx->bytes;
1025 info->length = (info->length & ~(0xffu << 24))
1026 | (s_desc->bLength) << 24;
1027 return size;
1028 }
1029
1030 static ssize_t dbc_protocol_show(struct device *dev,
1031 struct device_attribute *attr,
1032 char *buf)
1033 {
1034 struct xhci_dbc *dbc;
1035 struct xhci_hcd *xhci;
1036 void __iomem *ptr;
1037
1038 xhci = hcd_to_xhci(dev_get_drvdata(dev));
1039 dbc = xhci->dbc;
1040 ptr = &dbc->regs->devinfo1;
> 1041 return sprintf(buf, "%02x\n", le32_to_cpu(readl(ptr)) & 0xff);
1042 }
1043
1044 static ssize_t dbc_protocol_store(struct device *dev,
1045 struct device_attribute *attr,
1046 const char *buf, size_t size)
1047 {
1048 struct xhci_dbc *dbc;
1049 struct xhci_hcd *xhci;
1050 int value;
1051 int ret;
1052 void __iomem *ptr;
1053 u32 dev_info;
1054
1055 ret = kstrtoint(buf, 0, &value);
1056 if (ret || value < 0 || value > 0xff)
1057 return -EINVAL;
1058 xhci = hcd_to_xhci(dev_get_drvdata(dev));
1059 dbc = xhci->dbc;
1060 if (dbc->state != DS_DISABLED)
1061 return -EBUSY;
1062 ptr = &dbc->regs->devinfo1;
1063 dev_info = le32_to_cpu(readl(ptr));
> 1064 dev_info = cpu_to_le32((dev_info & ~(0xffu)) | value);
1065 writel(dev_info, ptr);
1066 return size;
1067 }
1068
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[bvanassche:scsi-status 19/25] drivers/s390/scsi/zfcp_dbf.c:646:22: error: incompatible types when assigning to type 'u32' {aka 'unsigned int'} from type 'struct scsi_status'
by kernel test robot
tree: https://github.com/bvanassche/linux scsi-status
head: b6f3ee28c1d53a4e4fb9d871009e5cb465c3d824
commit: 3f653a0515e027eea27a386bad8ea1a2e85135c3 [19/25] Introduce struct scsi_status
config: s390-allyesconfig (attached as .config)
compiler: s390-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/3f653a0515e027eea27a386bad8ea1...
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-status
git checkout 3f653a0515e027eea27a386bad8ea1a2e85135c3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 >>):
drivers/s390/scsi/zfcp_dbf.c: In function 'zfcp_dbf_scsi_common':
>> drivers/s390/scsi/zfcp_dbf.c:646:22: error: incompatible types when assigning to type 'u32' {aka 'unsigned int'} from type 'struct scsi_status'
646 | rec->scsi_result = sc->result;
| ^~
--
drivers/s390/scsi/zfcp_fc.c: In function 'zfcp_fc_ct_els_job_handler':
>> drivers/s390/scsi/zfcp_fc.c:954:12: error: request for member 'combined' in something not a structure or union
954 | jr->result.combined = zfcp_ct_els->status ? -EIO : 0;
| ^
drivers/s390/scsi/zfcp_fc.c:955:30: error: request for member 'combined' in something not a structure or union
955 | bsg_job_done(job, jr->result.combined, jr->reply_payload_rcv_len);
| ^
vim +646 drivers/s390/scsi/zfcp_dbf.c
8a36e4532ea104 Maxim Shchetynin 2005-09-13 620
250a1352b95e1d Swen Schillig 2010-12-02 621 /**
8221211863750b Steffen Maier 2018-05-17 622 * zfcp_dbf_scsi_common() - Common trace event helper for scsi.
8221211863750b Steffen Maier 2018-05-17 623 * @tag: Identifier for event.
8221211863750b Steffen Maier 2018-05-17 624 * @level: trace level of event.
8221211863750b Steffen Maier 2018-05-17 625 * @sdev: Pointer to SCSI device as context for this event.
8221211863750b Steffen Maier 2018-05-17 626 * @sc: Pointer to SCSI command, or NULL with task management function (TMF).
8221211863750b Steffen Maier 2018-05-17 627 * @fsf: Pointer to FSF request, or NULL.
250a1352b95e1d Swen Schillig 2010-12-02 628 */
8221211863750b Steffen Maier 2018-05-17 629 void zfcp_dbf_scsi_common(char *tag, int level, struct scsi_device *sdev,
8221211863750b Steffen Maier 2018-05-17 630 struct scsi_cmnd *sc, struct zfcp_fsf_req *fsf)
8a36e4532ea104 Maxim Shchetynin 2005-09-13 631 {
250a1352b95e1d Swen Schillig 2010-12-02 632 struct zfcp_adapter *adapter =
8221211863750b Steffen Maier 2018-05-17 633 (struct zfcp_adapter *) sdev->host->hostdata[0];
250a1352b95e1d Swen Schillig 2010-12-02 634 struct zfcp_dbf *dbf = adapter->dbf;
250a1352b95e1d Swen Schillig 2010-12-02 635 struct zfcp_dbf_scsi *rec = &dbf->scsi_buf;
4318e08c84e491 Christof Schmitt 2009-11-24 636 struct fcp_resp_with_ext *fcp_rsp;
250a1352b95e1d Swen Schillig 2010-12-02 637 struct fcp_resp_rsp_info *fcp_rsp_info;
250a1352b95e1d Swen Schillig 2010-12-02 638 unsigned long flags;
8a36e4532ea104 Maxim Shchetynin 2005-09-13 639
5771710bd5edfa Swen Schillig 2009-08-18 640 spin_lock_irqsave(&dbf->scsi_lock, flags);
6bc473dd324237 Martin Peschke 2008-03-31 641 memset(rec, 0, sizeof(*rec));
8a36e4532ea104 Maxim Shchetynin 2005-09-13 642
250a1352b95e1d Swen Schillig 2010-12-02 643 memcpy(rec->tag, tag, ZFCP_DBF_TAG_LEN);
250a1352b95e1d Swen Schillig 2010-12-02 644 rec->id = ZFCP_DBF_SCSI_CMND;
8221211863750b Steffen Maier 2018-05-17 645 if (sc) {
250a1352b95e1d Swen Schillig 2010-12-02 @646 rec->scsi_result = sc->result;
250a1352b95e1d Swen Schillig 2010-12-02 647 rec->scsi_retries = sc->retries;
250a1352b95e1d Swen Schillig 2010-12-02 648 rec->scsi_allowed = sc->allowed;
250a1352b95e1d Swen Schillig 2010-12-02 649 rec->scsi_id = sc->device->id;
9cb78c16f5dade Hannes Reinecke 2014-06-25 650 rec->scsi_lun = (u32)sc->device->lun;
5d4a3d0a2ff237 Steffen Maier 2017-07-28 651 rec->scsi_lun_64_hi = (u32)(sc->device->lun >> 32);
250a1352b95e1d Swen Schillig 2010-12-02 652 rec->host_scribble = (unsigned long)sc->host_scribble;
250a1352b95e1d Swen Schillig 2010-12-02 653
250a1352b95e1d Swen Schillig 2010-12-02 654 memcpy(rec->scsi_opcode, sc->cmnd,
8221211863750b Steffen Maier 2018-05-17 655 min_t(int, sc->cmd_len, ZFCP_DBF_SCSI_OPCODE));
8221211863750b Steffen Maier 2018-05-17 656 } else {
8221211863750b Steffen Maier 2018-05-17 657 rec->scsi_result = ~0;
8221211863750b Steffen Maier 2018-05-17 658 rec->scsi_retries = ~0;
8221211863750b Steffen Maier 2018-05-17 659 rec->scsi_allowed = ~0;
8221211863750b Steffen Maier 2018-05-17 660 rec->scsi_id = sdev->id;
8221211863750b Steffen Maier 2018-05-17 661 rec->scsi_lun = (u32)sdev->lun;
8221211863750b Steffen Maier 2018-05-17 662 rec->scsi_lun_64_hi = (u32)(sdev->lun >> 32);
8221211863750b Steffen Maier 2018-05-17 663 rec->host_scribble = ~0;
8221211863750b Steffen Maier 2018-05-17 664
8221211863750b Steffen Maier 2018-05-17 665 memset(rec->scsi_opcode, 0xff, ZFCP_DBF_SCSI_OPCODE);
8221211863750b Steffen Maier 2018-05-17 666 }
250a1352b95e1d Swen Schillig 2010-12-02 667
250a1352b95e1d Swen Schillig 2010-12-02 668 if (fsf) {
250a1352b95e1d Swen Schillig 2010-12-02 669 rec->fsf_req_id = fsf->req_id;
12c3e5754c8022 Steffen Maier 2017-07-28 670 rec->pl_len = FCP_RESP_WITH_EXT;
df00d7b8d5533a Steffen Maier 2017-07-28 671 fcp_rsp = &(fsf->qtcb->bottom.io.fcp_rsp.iu);
12c3e5754c8022 Steffen Maier 2017-07-28 672 /* mandatory parts of FCP_RSP IU in this SCSI record */
250a1352b95e1d Swen Schillig 2010-12-02 673 memcpy(&rec->fcp_rsp, fcp_rsp, FCP_RESP_WITH_EXT);
250a1352b95e1d Swen Schillig 2010-12-02 674 if (fcp_rsp->resp.fr_flags & FCP_RSP_LEN_VAL) {
250a1352b95e1d Swen Schillig 2010-12-02 675 fcp_rsp_info = (struct fcp_resp_rsp_info *) &fcp_rsp[1];
250a1352b95e1d Swen Schillig 2010-12-02 676 rec->fcp_rsp_info = fcp_rsp_info->rsp_code;
12c3e5754c8022 Steffen Maier 2017-07-28 677 rec->pl_len += be32_to_cpu(fcp_rsp->ext.fr_rsp_len);
8a36e4532ea104 Maxim Shchetynin 2005-09-13 678 }
250a1352b95e1d Swen Schillig 2010-12-02 679 if (fcp_rsp->resp.fr_flags & FCP_SNS_LEN_VAL) {
12c3e5754c8022 Steffen Maier 2017-07-28 680 rec->pl_len += be32_to_cpu(fcp_rsp->ext.fr_sns_len);
8a36e4532ea104 Maxim Shchetynin 2005-09-13 681 }
12c3e5754c8022 Steffen Maier 2017-07-28 682 /* complete FCP_RSP IU in associated PAYload record
12c3e5754c8022 Steffen Maier 2017-07-28 683 * but only if there are optional parts
12c3e5754c8022 Steffen Maier 2017-07-28 684 */
12c3e5754c8022 Steffen Maier 2017-07-28 685 if (fcp_rsp->resp.fr_flags != 0)
12c3e5754c8022 Steffen Maier 2017-07-28 686 zfcp_dbf_pl_write(
12c3e5754c8022 Steffen Maier 2017-07-28 687 dbf, fcp_rsp,
12c3e5754c8022 Steffen Maier 2017-07-28 688 /* at least one full PAY record
12c3e5754c8022 Steffen Maier 2017-07-28 689 * but not beyond hardware response field
12c3e5754c8022 Steffen Maier 2017-07-28 690 */
12c3e5754c8022 Steffen Maier 2017-07-28 691 min_t(u16, max_t(u16, rec->pl_len,
12c3e5754c8022 Steffen Maier 2017-07-28 692 ZFCP_DBF_PAY_MAX_REC),
12c3e5754c8022 Steffen Maier 2017-07-28 693 FSF_FCP_RSP_SIZE),
12c3e5754c8022 Steffen Maier 2017-07-28 694 "fcp_riu", fsf->req_id);
8a36e4532ea104 Maxim Shchetynin 2005-09-13 695 }
8a36e4532ea104 Maxim Shchetynin 2005-09-13 696
35f040df97fa0e Steffen Maier 2016-08-10 697 debug_event(dbf->scsi, level, rec, sizeof(*rec));
250a1352b95e1d Swen Schillig 2010-12-02 698 spin_unlock_irqrestore(&dbf->scsi_lock, flags);
8a36e4532ea104 Maxim Shchetynin 2005-09-13 699 }
8a36e4532ea104 Maxim Shchetynin 2005-09-13 700
:::::: The code at line 646 was first introduced by commit
:::::: 250a1352b95e1db3216e5c5d4f4365bea5122f4a [SCSI] zfcp: Redesign of the debug tracing for SCSI records.
:::::: TO: Swen Schillig <swen(a)vnet.ibm.com>
:::::: CC: James Bottomley <James.Bottomley(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH 07/15] wireless: align HE capabilities A-MPDU Length Exponent Extension
by kernel test robot
Hi Luca,
I love your patch! Yet something to improve:
[auto build test ERROR on mac80211-next/master]
[also build test ERROR on mac80211/master wireless-drivers-next/master wireless-drivers/master v5.12-rc6 next-20210409]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Luca-Coelho/cfg80211-mac80211-pa...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git master
config: x86_64-randconfig-a006-20210409 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/14d0d9bb385498f53ad9d73ebac33c6ef...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Luca-Coelho/cfg80211-mac80211-patches-from-our-internal-tree-2021-04-09/20210409-181210
git checkout 14d0d9bb385498f53ad9d73ebac33c6ef919be7c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
>> drivers/net/wireless/ath/ath11k/mac.c:1270:4: error: use of undeclared identifier 'IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_SHIFT'
IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_SHIFT;
^
drivers/net/wireless/ath/ath11k/mac.c:3810:6: error: use of undeclared identifier 'IEEE80211_HE_MAC_CAP5_SUBCHAN_SELECVITE_TRANSMISSION'
m = IEEE80211_HE_MAC_CAP5_SUBCHAN_SELECVITE_TRANSMISSION |
^
drivers/net/wireless/ath/ath11k/mac.c:3820:6: error: use of undeclared identifier 'IEEE80211_HE_PHY_CAP3_RX_HE_MU_PPDU_FROM_NON_AP_STA'
m = IEEE80211_HE_PHY_CAP3_RX_HE_MU_PPDU_FROM_NON_AP_STA |
^
drivers/net/wireless/ath/ath11k/mac.c:3832:6: error: use of undeclared identifier 'IEEE80211_HE_PHY_CAP6_TRIG_MU_BEAMFORMER_FB'
IEEE80211_HE_PHY_CAP6_TRIG_MU_BEAMFORMER_FB |
^
drivers/net/wireless/ath/ath11k/mac.c:3837:6: error: use of undeclared identifier 'IEEE80211_HE_PHY_CAP7_SRP_BASED_SR'
m = IEEE80211_HE_PHY_CAP7_SRP_BASED_SR |
^
drivers/net/wireless/ath/ath11k/mac.c:3838:6: error: use of undeclared identifier 'IEEE80211_HE_PHY_CAP7_POWER_BOOST_FACTOR_AR'
IEEE80211_HE_PHY_CAP7_POWER_BOOST_FACTOR_AR |
^
6 errors generated.
vim +/IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_SHIFT +1270 drivers/net/wireless/ath/ath11k/mac.c
d5c65159f28953 Kalle Valo 2019-11-23 1233
d5c65159f28953 Kalle Valo 2019-11-23 1234 static void ath11k_peer_assoc_h_he(struct ath11k *ar,
d5c65159f28953 Kalle Valo 2019-11-23 1235 struct ieee80211_vif *vif,
d5c65159f28953 Kalle Valo 2019-11-23 1236 struct ieee80211_sta *sta,
d5c65159f28953 Kalle Valo 2019-11-23 1237 struct peer_assoc_params *arg)
d5c65159f28953 Kalle Valo 2019-11-23 1238 {
9f056ed8ee01ad John Crispin 2019-11-25 1239 const struct ieee80211_sta_he_cap *he_cap = &sta->he_cap;
af6d39db1b046a Tamizh Chelvam 2020-09-08 1240 u8 ampdu_factor;
9f056ed8ee01ad John Crispin 2019-11-25 1241 u16 v;
9f056ed8ee01ad John Crispin 2019-11-25 1242
9f056ed8ee01ad John Crispin 2019-11-25 1243 if (!he_cap->has_he)
9f056ed8ee01ad John Crispin 2019-11-25 1244 return;
9f056ed8ee01ad John Crispin 2019-11-25 1245
9f056ed8ee01ad John Crispin 2019-11-25 1246 arg->he_flag = true;
9f056ed8ee01ad John Crispin 2019-11-25 1247
9f056ed8ee01ad John Crispin 2019-11-25 1248 memcpy(&arg->peer_he_cap_macinfo, he_cap->he_cap_elem.mac_cap_info,
9f056ed8ee01ad John Crispin 2019-11-25 1249 sizeof(arg->peer_he_cap_macinfo));
9f056ed8ee01ad John Crispin 2019-11-25 1250 memcpy(&arg->peer_he_cap_phyinfo, he_cap->he_cap_elem.phy_cap_info,
9f056ed8ee01ad John Crispin 2019-11-25 1251 sizeof(arg->peer_he_cap_phyinfo));
60689de46c7f6a Rajkumar Manoharan 2020-04-24 1252 arg->peer_he_ops = vif->bss_conf.he_oper.params;
9f056ed8ee01ad John Crispin 2019-11-25 1253
9f056ed8ee01ad John Crispin 2019-11-25 1254 /* the top most byte is used to indicate BSS color info */
9f056ed8ee01ad John Crispin 2019-11-25 1255 arg->peer_he_ops &= 0xffffff;
9f056ed8ee01ad John Crispin 2019-11-25 1256
af6d39db1b046a Tamizh Chelvam 2020-09-08 1257 /* As per section 26.6.1 11ax Draft5.0, if the Max AMPDU Exponent Extension
af6d39db1b046a Tamizh Chelvam 2020-09-08 1258 * in HE cap is zero, use the arg->peer_max_mpdu as calculated while parsing
af6d39db1b046a Tamizh Chelvam 2020-09-08 1259 * VHT caps(if VHT caps is present) or HT caps (if VHT caps is not present).
af6d39db1b046a Tamizh Chelvam 2020-09-08 1260 *
af6d39db1b046a Tamizh Chelvam 2020-09-08 1261 * For non-zero value of Max AMPDU Extponent Extension in HE MAC caps,
af6d39db1b046a Tamizh Chelvam 2020-09-08 1262 * if a HE STA sends VHT cap and HE cap IE in assoc request then, use
af6d39db1b046a Tamizh Chelvam 2020-09-08 1263 * MAX_AMPDU_LEN_FACTOR as 20 to calculate max_ampdu length.
af6d39db1b046a Tamizh Chelvam 2020-09-08 1264 * If a HE STA that does not send VHT cap, but HE and HT cap in assoc
af6d39db1b046a Tamizh Chelvam 2020-09-08 1265 * request, then use MAX_AMPDU_LEN_FACTOR as 16 to calculate max_ampdu
af6d39db1b046a Tamizh Chelvam 2020-09-08 1266 * length.
af6d39db1b046a Tamizh Chelvam 2020-09-08 1267 */
af6d39db1b046a Tamizh Chelvam 2020-09-08 1268 ampdu_factor = (he_cap->he_cap_elem.mac_cap_info[3] &
af6d39db1b046a Tamizh Chelvam 2020-09-08 1269 IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_MASK) >>
af6d39db1b046a Tamizh Chelvam 2020-09-08 @1270 IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_SHIFT;
af6d39db1b046a Tamizh Chelvam 2020-09-08 1271
af6d39db1b046a Tamizh Chelvam 2020-09-08 1272 if (ampdu_factor) {
af6d39db1b046a Tamizh Chelvam 2020-09-08 1273 if (sta->vht_cap.vht_supported)
af6d39db1b046a Tamizh Chelvam 2020-09-08 1274 arg->peer_max_mpdu = (1 << (IEEE80211_HE_VHT_MAX_AMPDU_FACTOR +
af6d39db1b046a Tamizh Chelvam 2020-09-08 1275 ampdu_factor)) - 1;
af6d39db1b046a Tamizh Chelvam 2020-09-08 1276 else if (sta->ht_cap.ht_supported)
af6d39db1b046a Tamizh Chelvam 2020-09-08 1277 arg->peer_max_mpdu = (1 << (IEEE80211_HE_HT_MAX_AMPDU_FACTOR +
af6d39db1b046a Tamizh Chelvam 2020-09-08 1278 ampdu_factor)) - 1;
af6d39db1b046a Tamizh Chelvam 2020-09-08 1279 }
af6d39db1b046a Tamizh Chelvam 2020-09-08 1280
9f056ed8ee01ad John Crispin 2019-11-25 1281 if (he_cap->he_cap_elem.phy_cap_info[6] &
9f056ed8ee01ad John Crispin 2019-11-25 1282 IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT) {
9f056ed8ee01ad John Crispin 2019-11-25 1283 int bit = 7;
9f056ed8ee01ad John Crispin 2019-11-25 1284 int nss, ru;
9f056ed8ee01ad John Crispin 2019-11-25 1285
9f056ed8ee01ad John Crispin 2019-11-25 1286 arg->peer_ppet.numss_m1 = he_cap->ppe_thres[0] &
9f056ed8ee01ad John Crispin 2019-11-25 1287 IEEE80211_PPE_THRES_NSS_MASK;
9f056ed8ee01ad John Crispin 2019-11-25 1288 arg->peer_ppet.ru_bit_mask =
9f056ed8ee01ad John Crispin 2019-11-25 1289 (he_cap->ppe_thres[0] &
9f056ed8ee01ad John Crispin 2019-11-25 1290 IEEE80211_PPE_THRES_RU_INDEX_BITMASK_MASK) >>
9f056ed8ee01ad John Crispin 2019-11-25 1291 IEEE80211_PPE_THRES_RU_INDEX_BITMASK_POS;
9f056ed8ee01ad John Crispin 2019-11-25 1292
9f056ed8ee01ad John Crispin 2019-11-25 1293 for (nss = 0; nss <= arg->peer_ppet.numss_m1; nss++) {
9f056ed8ee01ad John Crispin 2019-11-25 1294 for (ru = 0; ru < 4; ru++) {
9f056ed8ee01ad John Crispin 2019-11-25 1295 u32 val = 0;
9f056ed8ee01ad John Crispin 2019-11-25 1296 int i;
9f056ed8ee01ad John Crispin 2019-11-25 1297
9f056ed8ee01ad John Crispin 2019-11-25 1298 if ((arg->peer_ppet.ru_bit_mask & BIT(ru)) == 0)
9f056ed8ee01ad John Crispin 2019-11-25 1299 continue;
9f056ed8ee01ad John Crispin 2019-11-25 1300 for (i = 0; i < 6; i++) {
9f056ed8ee01ad John Crispin 2019-11-25 1301 val >>= 1;
9f056ed8ee01ad John Crispin 2019-11-25 1302 val |= ((he_cap->ppe_thres[bit / 8] >>
9f056ed8ee01ad John Crispin 2019-11-25 1303 (bit % 8)) & 0x1) << 5;
9f056ed8ee01ad John Crispin 2019-11-25 1304 bit++;
9f056ed8ee01ad John Crispin 2019-11-25 1305 }
9f056ed8ee01ad John Crispin 2019-11-25 1306 arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |=
9f056ed8ee01ad John Crispin 2019-11-25 1307 val << (ru * 6);
9f056ed8ee01ad John Crispin 2019-11-25 1308 }
9f056ed8ee01ad John Crispin 2019-11-25 1309 }
9f056ed8ee01ad John Crispin 2019-11-25 1310 }
9f056ed8ee01ad John Crispin 2019-11-25 1311
6d293d447670da John Crispin 2019-11-25 1312 if (he_cap->he_cap_elem.mac_cap_info[0] & IEEE80211_HE_MAC_CAP0_TWT_RES)
6d293d447670da John Crispin 2019-11-25 1313 arg->twt_responder = true;
6d293d447670da John Crispin 2019-11-25 1314 if (he_cap->he_cap_elem.mac_cap_info[0] & IEEE80211_HE_MAC_CAP0_TWT_REQ)
6d293d447670da John Crispin 2019-11-25 1315 arg->twt_requester = true;
6d293d447670da John Crispin 2019-11-25 1316
9f056ed8ee01ad John Crispin 2019-11-25 1317 switch (sta->bandwidth) {
9f056ed8ee01ad John Crispin 2019-11-25 1318 case IEEE80211_STA_RX_BW_160:
9f056ed8ee01ad John Crispin 2019-11-25 1319 if (he_cap->he_cap_elem.phy_cap_info[0] &
9f056ed8ee01ad John Crispin 2019-11-25 1320 IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_80PLUS80_MHZ_IN_5G) {
9f056ed8ee01ad John Crispin 2019-11-25 1321 v = le16_to_cpu(he_cap->he_mcs_nss_supp.rx_mcs_80p80);
9f056ed8ee01ad John Crispin 2019-11-25 1322 arg->peer_he_rx_mcs_set[WMI_HECAP_TXRX_MCS_NSS_IDX_80_80] = v;
9f056ed8ee01ad John Crispin 2019-11-25 1323
9f056ed8ee01ad John Crispin 2019-11-25 1324 v = le16_to_cpu(he_cap->he_mcs_nss_supp.tx_mcs_80p80);
9f056ed8ee01ad John Crispin 2019-11-25 1325 arg->peer_he_tx_mcs_set[WMI_HECAP_TXRX_MCS_NSS_IDX_80_80] = v;
9f056ed8ee01ad John Crispin 2019-11-25 1326
9f056ed8ee01ad John Crispin 2019-11-25 1327 arg->peer_he_mcs_count++;
9f056ed8ee01ad John Crispin 2019-11-25 1328 }
9f056ed8ee01ad John Crispin 2019-11-25 1329 v = le16_to_cpu(he_cap->he_mcs_nss_supp.rx_mcs_160);
9f056ed8ee01ad John Crispin 2019-11-25 1330 arg->peer_he_rx_mcs_set[WMI_HECAP_TXRX_MCS_NSS_IDX_160] = v;
9f056ed8ee01ad John Crispin 2019-11-25 1331
9f056ed8ee01ad John Crispin 2019-11-25 1332 v = le16_to_cpu(he_cap->he_mcs_nss_supp.tx_mcs_160);
9f056ed8ee01ad John Crispin 2019-11-25 1333 arg->peer_he_tx_mcs_set[WMI_HECAP_TXRX_MCS_NSS_IDX_160] = v;
9f056ed8ee01ad John Crispin 2019-11-25 1334
9f056ed8ee01ad John Crispin 2019-11-25 1335 arg->peer_he_mcs_count++;
0b294aebb6a00b Gustavo A. R. Silva 2020-07-27 1336 fallthrough;
9f056ed8ee01ad John Crispin 2019-11-25 1337
9f056ed8ee01ad John Crispin 2019-11-25 1338 default:
9f056ed8ee01ad John Crispin 2019-11-25 1339 v = le16_to_cpu(he_cap->he_mcs_nss_supp.rx_mcs_80);
9f056ed8ee01ad John Crispin 2019-11-25 1340 arg->peer_he_rx_mcs_set[WMI_HECAP_TXRX_MCS_NSS_IDX_80] = v;
9f056ed8ee01ad John Crispin 2019-11-25 1341
9f056ed8ee01ad John Crispin 2019-11-25 1342 v = le16_to_cpu(he_cap->he_mcs_nss_supp.tx_mcs_80);
9f056ed8ee01ad John Crispin 2019-11-25 1343 arg->peer_he_tx_mcs_set[WMI_HECAP_TXRX_MCS_NSS_IDX_80] = v;
9f056ed8ee01ad John Crispin 2019-11-25 1344
9f056ed8ee01ad John Crispin 2019-11-25 1345 arg->peer_he_mcs_count++;
9f056ed8ee01ad John Crispin 2019-11-25 1346 break;
9f056ed8ee01ad John Crispin 2019-11-25 1347 }
d5c65159f28953 Kalle Valo 2019-11-23 1348 }
d5c65159f28953 Kalle Valo 2019-11-23 1349
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[bvanassche:scsi-status 19/25] drivers/xen/xen-scsiback.c:343:36: error: member reference base type 'uint32_t' (aka 'unsigned int') is not a structure or union
by kernel test robot
tree: https://github.com/bvanassche/linux scsi-status
head: b6f3ee28c1d53a4e4fb9d871009e5cb465c3d824
commit: 3f653a0515e027eea27a386bad8ea1a2e85135c3 [19/25] Introduce struct scsi_status
config: arm64-randconfig-r001-20210409 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/bvanassche/linux/commit/3f653a0515e027eea27a386bad8ea1...
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-status
git checkout 3f653a0515e027eea27a386bad8ea1a2e85135c3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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 >>):
>> drivers/xen/xen-scsiback.c:343:36: error: member reference base type 'uint32_t' (aka 'unsigned int') is not a structure or union
errors = pending_req->result.combined;
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
drivers/xen/xen-scsiback.c:1391:21: error: member reference base type 'uint32_t' (aka 'unsigned int') is not a structure or union
pending_req->result.combined = SAM_STAT_GOOD;
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
drivers/xen/xen-scsiback.c:1404:22: error: member reference base type 'uint32_t' (aka 'unsigned int') is not a structure or union
pending_req->result.combined = (DRIVER_SENSE << 24) |
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
drivers/xen/xen-scsiback.c:1407:22: error: member reference base type 'uint32_t' (aka 'unsigned int') is not a structure or union
pending_req->result.combined = se_cmd->scsi_status;
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
4 errors generated.
--
>> drivers/staging/rts5208/rtsx.c:137:15: error: assigning to 'struct scsi_status' from incompatible type 'int'
srb->result = DID_NO_CONNECT << 16;
^ ~~~~~~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx.c:380:22: error: assigning to 'struct scsi_status' from incompatible type 'int'
chip->srb->result = DID_ABORT << 16;
^ ~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx.c:391:22: error: assigning to 'struct scsi_status' from incompatible type 'int'
chip->srb->result = DID_ERROR << 16;
^ ~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx.c:401:22: error: assigning to 'struct scsi_status' from incompatible type 'int'
chip->srb->result = DID_BAD_TARGET << 16;
^ ~~~~~~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx.c:408:22: error: assigning to 'struct scsi_status' from incompatible type 'int'
chip->srb->result = DID_BAD_TARGET << 16;
^ ~~~~~~~~~~~~~~~~~~~~
>> drivers/staging/rts5208/rtsx.c:425:30: error: invalid operands to binary expression ('struct scsi_status' and 'int')
else if (chip->srb->result != DID_ABORT << 16) {
~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx.c:636:21: error: assigning to 'struct scsi_status' from incompatible type 'int'
chip->srb->result = DID_NO_CONNECT << 16;
^ ~~~~~~~~~~~~~~~~~~~~
7 errors generated.
--
>> drivers/staging/rts5208/rtsx_transport.c:163:15: error: assigning to 'struct scsi_status' from incompatible type 'int'
srb->result = DID_ABORT << 16;
^ ~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx_transport.c:170:15: error: assigning to 'struct scsi_status' from incompatible type 'int'
srb->result = DID_ERROR << 16;
^ ~~~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx_transport.c:174:14: error: assigning to 'struct scsi_status' from incompatible type 'int'
srb->result = SAM_STAT_GOOD;
^ ~~~~~~~~~~~~~
drivers/staging/rts5208/rtsx_transport.c:183:15: error: assigning to 'struct scsi_status' from incompatible type 'int'
srb->result = SAM_STAT_CHECK_CONDITION;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
vim +343 drivers/xen/xen-scsiback.c
333
334 static void scsiback_cmd_done(struct vscsibk_pend *pending_req)
335 {
336 struct vscsibk_info *info = pending_req->info;
337 unsigned char *sense_buffer;
338 unsigned int resid;
339 int errors;
340
341 sense_buffer = pending_req->sense_buffer;
342 resid = pending_req->se_cmd.residual_count;
> 343 errors = pending_req->result.combined;
344
345 if (errors && log_print_stat)
346 scsiback_print_status(sense_buffer, errors, pending_req);
347
348 scsiback_fast_flush_area(pending_req);
349 scsiback_do_resp_with_sense(sense_buffer, errors, resid, pending_req);
350 scsiback_put(info);
351 /*
352 * Drop the extra KREF_ACK reference taken by target_submit_cmd_map_sgls()
353 * ahead of scsiback_check_stop_free() -> transport_generic_free_cmd()
354 * final se_cmd->cmd_kref put.
355 */
356 target_put_sess_cmd(&pending_req->se_cmd);
357 }
358
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[bvanassche:scsi-status 19/25] include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_380' declared with attribute error: BUILD_BUG_ON failed: ((struct scsi_status){.b = {.status = 4, .msg = 3, .host = 2, .driver = 1}}.combined != 0x01020304)
by kernel test robot
tree: https://github.com/bvanassche/linux scsi-status
head: b6f3ee28c1d53a4e4fb9d871009e5cb465c3d824
commit: 3f653a0515e027eea27a386bad8ea1a2e85135c3 [19/25] Introduce struct scsi_status
config: arm-randconfig-r006-20210409 (attached as .config)
compiler: arm-linux-gnueabi-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/3f653a0515e027eea27a386bad8ea1...
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-status
git checkout 3f653a0515e027eea27a386bad8ea1a2e85135c3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 <command-line>:
drivers/scsi/scsi.c: In function 'init_scsi':
>> include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_380' declared with attribute error: BUILD_BUG_ON failed: ((struct scsi_status){.b = {.status = 4, .msg = 3, .host = 2, .driver = 1}}.combined != 0x01020304)
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:301:4: note: in definition of macro '__compiletime_assert'
301 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:320:2: note: in expansion of macro '_compiletime_assert'
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/scsi.c:771:2: note: in expansion of macro 'BUILD_BUG_ON'
771 | BUILD_BUG_ON(((struct scsi_status){.b = {.status = 4, .msg = 3,
| ^~~~~~~~~~~~
vim +/__compiletime_assert_380 +320 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 306
eb5c2d4b45e3d2 Will Deacon 2020-07-21 307 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 308 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 309
eb5c2d4b45e3d2 Will Deacon 2020-07-21 310 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 311 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 312 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 315 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 317 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 318 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 319 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @320 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 321
:::::: The code at line 320 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.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
1 year, 5 months