[staging:staging-next 468/569] drivers/staging/lustre/lnet/selftest/module.c:125:47: error: 'struct cfs_cpt_table' has no member named 'ctb_parts'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi NeilBrown,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next
head:   9fb8b101a7529a7d882df16448f20c1879535f0b
commit: 6106c0f82481e686b337ee0c403821fb5c3c17ef [468/569] staging: lustre: lnet: convert selftest to use workqueues
config: i386-randconfig-sb0-01230733 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 6106c0f82481e686b337ee0c403821fb5c3c17ef
        # save the attached .config to linux build tree
        make ARCH=i386 

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux