[linux-next:master 10011/10236] fs/ubifs/journal.c:369: warning: expecting prototype for wake_up_reservation(). Prototype was for add_or_start_queue() instead

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   8552c902efe7ef670b6961fb8885b67961aeb629
commit: 556c19f563b64dd5463b0030d19c8681f4f7446e [10011/10236] ubifs: Queue up space reservation tasks if retrying many times
config: i386-buildonly-randconfig-001-20240226 (https://download.01.org/0day-ci/archive/20240226/202402261912.yAxZePRG-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240226/202402261912.yAxZePRG-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402261912.yAxZePRG-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> fs/ubifs/journal.c:369: warning: expecting prototype for wake_up_reservation(). Prototype was for add_or_start_queue() instead


vim +369 fs/ubifs/journal.c

   360	
   361	/**
   362	 * wake_up_reservation - add current task in queue or start queuing.
   363	 * @c: UBIFS file-system description object
   364	 *
   365	 * This function starts queuing if queuing is not started, otherwise adds
   366	 * current task in queue.
   367	 */
   368	static void add_or_start_queue(struct ubifs_info *c)
 > 369	{
   370		spin_lock(&c->reserve_space_wq.lock);
   371		if (atomic_cmpxchg(&c->need_wait_space, 0, 1) == 0) {
   372			/* Starts queuing, task can go on directly. */
   373			spin_unlock(&c->reserve_space_wq.lock);
   374			return;
   375		}
   376	
   377		/*
   378		 * There are at least two tasks have retried more than 32 times
   379		 * at certain point, first task has started queuing, just queue
   380		 * the left tasks.
   381		 */
   382		__queue_and_wait(c);
   383	}
   384	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux