Hi Hannes,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.14 next-20210910]
[cannot apply to cryptodev/master crypto/master linux-nvme/for-next]
[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/Hannes-Reinecke/nvme-In-band-aut...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
bf9f243f23e6623f310ba03fbb14e10ec3a61290
config: powerpc-randconfig-s032-20210911 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
#
https://github.com/0day-ci/linux/commit/c117a1b0b131e4dfcd82ae5934b265924...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Hannes-Reinecke/nvme-In-band-authentication-support/20210910-144627
git checkout c117a1b0b131e4dfcd82ae5934b2659248acb372
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=powerpc
SHELL=/bin/bash drivers/nvme/target/
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/nvme/target/fabrics-cmd-auth.c:20:30: sparse: sparse:
invalid assignment: |=
> drivers/nvme/target/fabrics-cmd-auth.c:20:30: sparse: left side has type
restricted __le32
> drivers/nvme/target/fabrics-cmd-auth.c:20:30: sparse: right side has type int
> drivers/nvme/target/fabrics-cmd-auth.c:359:20: sparse: sparse: incorrect type in
assignment (different base types) @@ expected restricted __le16 [usertype] t_id @@
got restricted __le32 [usertype] @@
drivers/nvme/target/fabrics-cmd-auth.c:359:20: sparse: expected restricted __le16
[usertype] t_id
drivers/nvme/target/fabrics-cmd-auth.c:359:20: sparse: got restricted __le32
[usertype]
vim +20 drivers/nvme/target/fabrics-cmd-auth.c
14
15 void nvmet_init_auth(struct nvmet_ctrl *ctrl, struct nvmet_req *req)
16 {
17 /* Initialize in-band authentication */
18 req->sq->authenticated = false;
19 req->sq->dhchap_step = NVME_AUTH_DHCHAP_MESSAGE_NEGOTIATE;
20 req->cqe->result.u32 |= 0x2 << 16;
21 }
22
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org