[staging:staging-testing 346/364] drivers/staging//lustre/lnet/libcfs/workitem.c:322:20: error: implicit declaration of function 'cfs_time_seconds'; did you mean 'cfs_time_shift'?

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head:   1dbf40a0663ec52c0f718d5805b134933cc60372
commit: c64cea1d7df653e2f3f111f81b68f507adb61cc4 [346/364] staging: lustre: discard cfs_time_seconds()
config: ia64-allmodconfig (attached as .config)
compiler: ia64-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 c64cea1d7df653e2f3f111f81b68f507adb61cc4
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   drivers/staging//lustre/lnet/libcfs/workitem.c: In function 'cfs_wi_sched_destroy':
>> drivers/staging//lustre/lnet/libcfs/workitem.c:322:20: error: implicit declaration of function 'cfs_time_seconds'; did you mean 'cfs_time_shift'? [-Werror=implicit-function-declaration]
      schedule_timeout(cfs_time_seconds(1) / 20);
                       ^~~~~~~~~~~~~~~~
                       cfs_time_shift
   cc1: some warnings being treated as errors

vim +322 drivers/staging//lustre/lnet/libcfs/workitem.c

d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  289  
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  290  void
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  291  cfs_wi_sched_destroy(struct cfs_wi_sched *sched)
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  292  {
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  293  	int i;
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  294  
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  295  	LASSERT(cfs_wi_data.wi_init);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  296  	LASSERT(!cfs_wi_data.wi_stopping);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  297  
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  298  	spin_lock(&cfs_wi_data.wi_glock);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  299  	if (sched->ws_stopping) {
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  300  		CDEBUG(D_INFO, "%s is in progress of stopping\n",
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  301  		       sched->ws_name);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  302  		spin_unlock(&cfs_wi_data.wi_glock);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  303  		return;
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  304  	}
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  305  
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  306  	LASSERT(!list_empty(&sched->ws_list));
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  307  	sched->ws_stopping = 1;
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  308  
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  309  	spin_unlock(&cfs_wi_data.wi_glock);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  310  
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  311  	i = 2;
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  312  	wake_up_all(&sched->ws_waitq);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  313  
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  314  	spin_lock(&cfs_wi_data.wi_glock);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  315  	while (sched->ws_nthreads > 0) {
57b573d14 drivers/staging/lustre/lustre/libcfs/workitem.c Aya Mahfouz   2015-10-29  316  		CDEBUG(is_power_of_2(++i) ? D_WARNING : D_NET,
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  317  		       "waiting for %d threads of WI sched[%s] to terminate\n",
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  318  		       sched->ws_nthreads, sched->ws_name);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  319  
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  320  		spin_unlock(&cfs_wi_data.wi_glock);
d3caf4d58 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2014-03-18  321  		set_current_state(TASK_UNINTERRUPTIBLE);
d3caf4d58 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2014-03-18 @322  		schedule_timeout(cfs_time_seconds(1) / 20);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  323  		spin_lock(&cfs_wi_data.wi_glock);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  324  	}
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  325  
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  326  	list_del(&sched->ws_list);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  327  
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  328  	spin_unlock(&cfs_wi_data.wi_glock);
6fc68ea5f drivers/staging/lustre/lnet/libcfs/workitem.c   James Simmons 2016-11-17  329  	LASSERT(!sched->ws_nscheduled);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  330  
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  331  	LIBCFS_FREE(sched, sizeof(*sched));
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  332  }
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  333  EXPORT_SYMBOL(cfs_wi_sched_destroy);
d7e09d039 drivers/staging/lustre/lustre/libcfs/workitem.c Peng Tao      2013-05-02  334  

:::::: The code at line 322 was first introduced by commit
:::::: d3caf4d58bff2ea2826b99fefc0445bb8acd0356 staging/lustre/libcfs: remove cfs_pause

:::::: TO: Peng Tao <bergwolf@xxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
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