[staging:staging-next 468/515] drivers/staging/lustre/lnet/selftest/module.c:125:47: error: 'struct cfs_cpt_table' has no member named 'ctb_parts'
kbuild test robot
fengguang.wu at intel.com
Tue Jan 16 00:09:29 UTC 2018
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next
head: 0f45b23aedf91ae66890d13320c5147c15013a0c
commit: 6106c0f82481e686b337ee0c403821fb5c3c17ef [468/515] staging: lustre: lnet: convert selftest to use workqueues
config: x86_64-randconfig-u0-01160700 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
git checkout 6106c0f82481e686b337ee0c403821fb5c3c17ef
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/staging/lustre/lnet/selftest/module.c: In function 'lnet_selftest_init':
>> drivers/staging/lustre/lnet/selftest/module.c:125:47: error: 'struct cfs_cpt_table' has no member named 'ctb_parts'
cpumask_copy(attrs.cpumask, lnet_cpt_table()->ctb_parts[i].cpt_cpumask);
^
vim +125 drivers/staging/lustre/lnet/selftest/module.c
87
88 static int
89 lnet_selftest_init(void)
90 {
91 int nscheds;
92 int rc;
93 int i;
94
95 lst_serial_wq = alloc_ordered_workqueue("lst_s", 0);
96 if (!lst_serial_wq) {
97 CERROR("Failed to create serial WI scheduler for LST\n");
98 return rc;
99 }
100 lst_init_step = LST_INIT_WI_SERIAL;
101
102 nscheds = cfs_cpt_number(lnet_cpt_table());
103 lst_test_wq = kvmalloc_array(nscheds, sizeof(lst_test_wq[0]),
104 GFP_KERNEL | __GFP_ZERO);
105 if (!lst_test_wq)
106 goto error;
107
108 lst_init_step = LST_INIT_WI_TEST;
109 for (i = 0; i < nscheds; i++) {
110 int nthrs = cfs_cpt_weight(lnet_cpt_table(), i);
111 struct workqueue_attrs attrs;
112
113 /* reserve at least one CPU for LND */
114 nthrs = max(nthrs - 1, 1);
115 lst_test_wq[i] = alloc_workqueue("lst_t", WQ_UNBOUND, nthrs);
116 if (!lst_test_wq[i]) {
117 CWARN("Failed to create CPU partition affinity WI scheduler %d for LST\n",
118 i);
119 goto error;
120 }
121 attrs.nice = 0;
122 #ifdef CONFIG_CPUMASK_OFFSTACK
123 attrs.cpumask = lnet_cpt_table()->ctb_parts[i].cpt_cpumask;
124 #else
> 125 cpumask_copy(attrs.cpumask, lnet_cpt_table()->ctb_parts[i].cpt_cpumask);
126 #endif
127 attrs.no_numa = false;
128 apply_workqueue_attrs(lst_test_wq[i], &attrs);
129 }
130
131 rc = srpc_startup();
132 if (rc) {
133 CERROR("LST can't startup rpc\n");
134 goto error;
135 }
136 lst_init_step = LST_INIT_RPC;
137
138 rc = sfw_startup();
139 if (rc) {
140 CERROR("LST can't startup framework\n");
141 goto error;
142 }
143 lst_init_step = LST_INIT_FW;
144
145 rc = lstcon_console_init();
146 if (rc) {
147 CERROR("LST can't startup console\n");
148 goto error;
149 }
150 lst_init_step = LST_INIT_CONSOLE;
151 return 0;
152 error:
153 lnet_selftest_exit();
154 return rc;
155 }
156
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 34563 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20180116/dc6235b6/attachment-0001.bin>
More information about the devel
mailing list