[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108060146.cylQ8eZp-lkp@intel.com>
Date: Fri, 6 Aug 2021 01:15:53 +0800
From: kernel test robot <lkp@...el.com>
To: Hannes Reinecke <hare@...e.de>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [hare-scsi-devel:auth.v2 14/15]
drivers/nvme/host/fault_inject.c:53:11: error: 'struct nvme_fault_inject'
has no member named 'auth_step'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git auth.v2
head: a9934e3c1c89f0bdcf74245205d986814767ecc1
commit: 85ee269b287e80a58fe7a2d679249a05723a9dbd [14/15] nvme-auth: fault injection for authentication steps
config: openrisc-randconfig-r024-20210805 (attached as .config)
compiler: or1k-linux-gcc (GCC) 10.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/commit/?id=85ee269b287e80a58fe7a2d679249a05723a9dbd
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 auth.v2
git checkout 85ee269b287e80a58fe7a2d679249a05723a9dbd
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
drivers/nvme/host/fault_inject.c: In function 'nvme_fault_inject_init':
>> drivers/nvme/host/fault_inject.c:53:11: error: 'struct nvme_fault_inject' has no member named 'auth_step'
53 | fault_inj->auth_step = fail_auth_step;
| ^~
>> drivers/nvme/host/fault_inject.c:53:25: error: 'fail_auth_step' undeclared (first use in this function)
53 | fault_inj->auth_step = fail_auth_step;
| ^~~~~~~~~~~~~~
drivers/nvme/host/fault_inject.c:53:25: note: each undeclared identifier is reported only once for each function it appears in
vim +53 drivers/nvme/host/fault_inject.c
23
24 void nvme_fault_inject_init(struct nvme_fault_inject *fault_inj,
25 const char *dev_name)
26 {
27 struct dentry *dir, *parent;
28 struct fault_attr *attr = &fault_inj->attr;
29
30 /* set default fault injection attribute */
31 if (fail_request)
32 setup_fault_attr(&fail_default_attr, fail_request);
33
34 /* create debugfs directory and attribute */
35 parent = debugfs_create_dir(dev_name, NULL);
36 if (!parent) {
37 pr_warn("%s: failed to create debugfs directory\n", dev_name);
38 return;
39 }
40
41 *attr = fail_default_attr;
42 dir = fault_create_debugfs_attr("fault_inject", parent, attr);
43 if (IS_ERR(dir)) {
44 pr_warn("%s: failed to create debugfs attr\n", dev_name);
45 debugfs_remove_recursive(parent);
46 return;
47 }
48 fault_inj->parent = parent;
49
50 /* create debugfs for status code and dont_retry */
51 fault_inj->status = NVME_SC_INVALID_OPCODE;
52 fault_inj->dont_retry = true;
> 53 fault_inj->auth_step = fail_auth_step;
54 debugfs_create_x16("status", 0600, dir, &fault_inj->status);
55 debugfs_create_bool("dont_retry", 0600, dir, &fault_inj->dont_retry);
56 #ifdef CONFIG_NVME_AUTH
57 debugfs_create_x8("auth_step", 0600, dir, &fault_inj->auth_step);
58 #endif
59 }
60
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (34290 bytes)
Powered by blists - more mailing lists