All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2024-02-26 11:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-26 11:37 UTC (permalink / raw)
  To: Zhihao Cheng
  Cc: llvm, oe-kbuild-all, Linux Memory Management List,
	Richard Weinberger, Zhang Yi

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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402261912.yAxZePRG-lkp@intel.com/

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-26 11:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-26 11:37 [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 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.