[staging:staging-next 560/569] drivers/staging//erofs/utils.c:189:12: error: implicit declaration of function 'erofs_shrink_workstation'; did you mean 'erofs_shrink_scan'?

[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-next
head:   6d4abf1c0e265d8e99c155b91c1cf44e37793e53
commit: e7e9a307be9d75ecc3bf20b362af88140dfb4304 [560/569] staging: erofs: introduce workstation for decompression
config: x86_64-randconfig-ws0-07290820 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout e7e9a307be9d75ecc3bf20b362af88140dfb4304
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/staging//erofs/utils.c: In function 'erofs_shrink_scan':
>> drivers/staging//erofs/utils.c:189:12: error: implicit declaration of function 'erofs_shrink_workstation'; did you mean 'erofs_shrink_scan'? [-Werror=implicit-function-declaration]
      freed += erofs_shrink_workstation(sbi, nr, false);
               ^~~~~~~~~~~~~~~~~~~~~~~~
               erofs_shrink_scan
   cc1: some warnings being treated as errors

vim +189 drivers/staging//erofs/utils.c

   140	
   141	unsigned long erofs_shrink_scan(struct shrinker *shrink,
   142					struct shrink_control *sc)
   143	{
   144		struct erofs_sb_info *sbi;
   145		struct list_head *p;
   146	
   147		unsigned long nr = sc->nr_to_scan;
   148		unsigned int run_no;
   149		unsigned long freed = 0;
   150	
   151		spin_lock(&erofs_sb_list_lock);
   152		do
   153			run_no = ++shrinker_run_no;
   154		while (run_no == 0);
   155	
   156		/* Iterate over all mounted superblocks and try to shrink them */
   157		p = erofs_sb_list.next;
   158		while (p != &erofs_sb_list) {
   159			sbi = list_entry(p, struct erofs_sb_info, list);
   160	
   161			/*
   162			 * We move the ones we do to the end of the list, so we stop
   163			 * when we see one we have already done.
   164			 */
   165			if (sbi->shrinker_run_no == run_no)
   166				break;
   167	
   168			if (!mutex_trylock(&sbi->umount_mutex)) {
   169				p = p->next;
   170				continue;
   171			}
   172	
   173			spin_unlock(&erofs_sb_list_lock);
   174			sbi->shrinker_run_no = run_no;
   175	
   176			/* add scan handlers here */
   177	
   178			spin_lock(&erofs_sb_list_lock);
   179			/* Get the next list element before we move this one */
   180			p = p->next;
   181	
   182			/*
   183			 * Move this one to the end of the list to provide some
   184			 * fairness.
   185			 */
   186			list_move_tail(&sbi->list, &erofs_sb_list);
   187			mutex_unlock(&sbi->umount_mutex);
   188	
 > 189			freed += erofs_shrink_workstation(sbi, nr, false);
   190			if (freed >= nr)
   191				break;
   192		}
   193		spin_unlock(&erofs_sb_list_lock);
   194		return freed;
   195	}
   196	

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