tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing head: 0f45b23aedf91ae66890d13320c5147c15013a0c commit: 6106c0f82481e686b337ee0c403821fb5c3c17ef [468/515] staging: lustre: lnet: convert selftest to use workqueues config: mn10300-allmodconfig (attached as .config) compiler: am33_2.0-linux-gcc (GCC) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 6106c0f82481e686b337ee0c403821fb5c3c17ef # save the attached .config to linux build tree make.cross ARCH=mn10300 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:49: error: 'struct cfs_cpt_table' has no member named 'ctb_parts'; did you mean 'ctb_nparts'? cpumask_copy(attrs.cpumask, lnet_cpt_table()->ctb_parts[i].cpt_cpumask); ^~~~~~~~~ ctb_nparts 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
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel