Re: [PATCH v2 3/8] nvmet: implement namespace identify descriptor list

From: kbuild test robot
Date: Thu Jun 01 2017 - 19:08:55 EST


Hi Johannes,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.12-rc3 next-20170601]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Johannes-Thumshirn/nvme-introduce-NVMe-Namespace-Identification-Descriptor-structures/20170601-224249
config: x86_64-randconfig-u0-06020557 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

Note: the linux-review/Johannes-Thumshirn/nvme-introduce-NVMe-Namespace-Identification-Descriptor-structures/20170601-224249 HEAD eed0e29a990ae9332379fbaf71b249bb482b3c6b builds fine.
It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/module.h:9,
from drivers/nvme/target/admin-cmd.c:15:
drivers/nvme/target/admin-cmd.c: In function 'nvmet_execute_identify_desclist':
>> drivers/nvme/target/admin-cmd.c:383:20: error: 'struct nvmet_ns' has no member named 'uuid'; did you mean 'nsid'?
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^
include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> drivers/nvme/target/admin-cmd.c:383:2: note: in expansion of macro 'if'
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^~
drivers/nvme/target/admin-cmd.c:383:40: error: 'struct nvmet_ns' has no member named 'uuid'; did you mean 'nsid'?
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^
include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> drivers/nvme/target/admin-cmd.c:383:2: note: in expansion of macro 'if'
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^~
>> drivers/nvme/target/admin-cmd.c:383:20: error: 'struct nvmet_ns' has no member named 'uuid'; did you mean 'nsid'?
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^
include/linux/compiler.h:160:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> drivers/nvme/target/admin-cmd.c:383:2: note: in expansion of macro 'if'
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^~
drivers/nvme/target/admin-cmd.c:383:40: error: 'struct nvmet_ns' has no member named 'uuid'; did you mean 'nsid'?
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^
include/linux/compiler.h:160:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> drivers/nvme/target/admin-cmd.c:383:2: note: in expansion of macro 'if'
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^~
>> drivers/nvme/target/admin-cmd.c:383:20: error: 'struct nvmet_ns' has no member named 'uuid'; did you mean 'nsid'?
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^
include/linux/compiler.h:171:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
>> drivers/nvme/target/admin-cmd.c:383:2: note: in expansion of macro 'if'
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^~
drivers/nvme/target/admin-cmd.c:383:40: error: 'struct nvmet_ns' has no member named 'uuid'; did you mean 'nsid'?
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^
include/linux/compiler.h:171:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
>> drivers/nvme/target/admin-cmd.c:383:2: note: in expansion of macro 'if'
if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
^~
drivers/nvme/target/admin-cmd.c:392:43: error: 'struct nvmet_ns' has no member named 'uuid'; did you mean 'nsid'?
status = nvmet_copy_to_sgl(req, off, &ns->uuid,
^~
drivers/nvme/target/admin-cmd.c:393:18: error: 'struct nvmet_ns' has no member named 'uuid'; did you mean 'nsid'?
sizeof(ns->uuid));
^~
drivers/nvme/target/admin-cmd.c:396:19: error: 'struct nvmet_ns' has no member named 'uuid'; did you mean 'nsid'?
off += sizeof(ns->uuid);
^~

vim +383 drivers/nvme/target/admin-cmd.c

377 ns = nvmet_find_namespace(req->sq->ctrl, req->cmd->identify.nsid);
378 if (!ns) {
379 status = NVME_SC_INVALID_NS | NVME_SC_DNR;
380 goto out;
381 }
382
> 383 if (memchr_inv(&ns->uuid, 0, sizeof(ns->uuid))) {
384 memset(&hdr, 0, sizeof(hdr));
385 hdr.nidt = NVME_NIDT_UUID;
386 hdr.nidl = NVME_NIDT_UUID_LEN;

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip