Re: [PATCH 13/20] lightnvm: move block provisioning to targets

From: kbuild test robot
Date: Fri Nov 18 2016 - 13:21:13 EST


Hi Javier,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.9-rc5]
[cannot apply to next-20161117]
[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/Javier-Gonz-lez/lightnvm-simplify-media-manager/20161119-005946
config: i386-allmodconfig (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=i386

All errors (new ones prefixed by >>):

In file included from include/linux/kernel.h:11:0,
from include/linux/list.h:8,
from include/linux/pci.h:25,
from drivers/nvme/host/nvme.h:18,
from drivers/nvme/host/lightnvm.c:23:
drivers/nvme/host/lightnvm.c: In function 'nvme_nvm_register':
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:87:23: note: in definition of macro 'ilog2'
__builtin_constant_p(n) ? ( \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:88:4: note: in definition of macro 'ilog2'
(n) < 1 ? ____ilog2_NaN() : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:89:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 63) ? 63 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:90:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 62) ? 62 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:91:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 61) ? 61 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:92:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 60) ? 60 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:93:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 59) ? 59 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:94:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 58) ? 58 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:95:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 57) ? 57 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:96:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 56) ? 56 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:97:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 55) ? 55 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:98:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 54) ? 54 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:99:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 53) ? 53 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:100:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 52) ? 52 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:101:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 51) ? 51 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:102:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 50) ? 50 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:103:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 49) ? 49 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:104:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 48) ? 48 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:105:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 47) ? 47 : \
^
>> drivers/nvme/host/lightnvm.c:623:27: error: 'struct nvm_dev' has no member named 'sec_size'
ns->lba_shift = ilog2(dev->sec_size);
^
include/linux/log2.h:106:4: note: in definition of macro 'ilog2'
(n) & (1ULL << 46) ? 46 : \
^

vim +623 drivers/nvme/host/lightnvm.c

40267efd Simon A. F. Lund 2016-09-16 617 dev->parent_dev = ns->ctrl->device;
40267efd Simon A. F. Lund 2016-09-16 618 dev->private_data = ns;
b0b4e09c Matias Bjørling 2016-09-16 619 ns->ndev = dev;
b0b4e09c Matias Bjørling 2016-09-16 620
b0b4e09c Matias Bjørling 2016-09-16 621 ret = nvm_register(dev);
b0b4e09c Matias Bjørling 2016-09-16 622
409ae5a7 Matias Bjørling 2016-11-10 @623 ns->lba_shift = ilog2(dev->sec_size);
b0b4e09c Matias Bjørling 2016-09-16 624
40267efd Simon A. F. Lund 2016-09-16 625 if (sysfs_create_group(&dev->dev.kobj, attrs))
40267efd Simon A. F. Lund 2016-09-16 626 pr_warn("%s: failed to create sysfs group for identification\n",

:::::: The code at line 623 was first introduced by commit
:::::: 409ae5a76e0505c8ffe1424f9c00dbf2ec7b5eea lightnvm: invalid offset calculation for lba_shift

:::::: TO: Matias Bjørling <m@xxxxxxxxxxx>
:::::: CC: Jens Axboe <axboe@xxxxxx>

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

Attachment: .config.gz
Description: application/gzip