[linux-next:master 3180/4021] fs/ocfs2/stack_user.c:747:11: error: call to undeclared function 'lock_is_unlock'; ISO C99 and later do not support implicit function declarations

[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:   23e11d0318521e8693459b0e4d23aec614b3b68b
commit: a336b91b2340eb6fe29f4a5898dd103b55c92091 [3180/4021] ocfs2: convert to using new filelock helpers
config: riscv-randconfig-001-20240205 (https://download.01.org/0day-ci/archive/20240206/202402060540.iVHnOa7m-lkp@xxxxxxxxx/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 7dd790db8b77c4a833c06632e903dc4f13877a64)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240206/202402060540.iVHnOa7m-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/202402060540.iVHnOa7m-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> fs/ocfs2/stack_user.c:747:11: error: call to undeclared function 'lock_is_unlock'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     747 |         else if (lock_is_unlock(fl))
         |                  ^
   fs/ocfs2/stack_user.c:747:11: note: did you mean 'lock_pin_lock'?
   include/linux/lockdep.h:254:26: note: 'lock_pin_lock' declared here
     254 | extern struct pin_cookie lock_pin_lock(struct lockdep_map *lock);
         |                          ^
   1 error generated.


vim +/lock_is_unlock +747 fs/ocfs2/stack_user.c

   728	
   729	static int user_plock(struct ocfs2_cluster_connection *conn,
   730			      u64 ino,
   731			      struct file *file,
   732			      int cmd,
   733			      struct file_lock *fl)
   734	{
   735		/*
   736		 * This more or less just demuxes the plock request into any
   737		 * one of three dlm calls.
   738		 *
   739		 * Internally, fs/dlm will pass these to a misc device, which
   740		 * a userspace daemon will read and write to.
   741		 */
   742	
   743		if (cmd == F_CANCELLK)
   744			return dlm_posix_cancel(conn->cc_lockspace, ino, file, fl);
   745		else if (IS_GETLK(cmd))
   746			return dlm_posix_get(conn->cc_lockspace, ino, file, fl);
 > 747		else if (lock_is_unlock(fl))
   748			return dlm_posix_unlock(conn->cc_lockspace, ino, file, fl);
   749		else
   750			return dlm_posix_lock(conn->cc_lockspace, ino, file, cmd, fl);
   751	}
   752	

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