[gfs2:for-next.bob 7/22] fs/gfs2/glock.c:1126: warning: expecting prototype for gfs2_holder_init(). Prototype was for __gfs2_holder_init() instead

From: kernel test robot
Date: Mon Nov 08 2021 - 03:23:16 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-next.bob
head: 6426349fc59b3177c61749b128938a0fa15fff9a
commit: 154a359509fe805e93f283935c5327d8f9986723 [7/22] gfs2: Save ip from gfs2_glock_nq_init
config: powerpc-ppc6xx_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/?id=154a359509fe805e93f283935c5327d8f9986723
git remote add gfs2 https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
git fetch --no-tags gfs2 for-next.bob
git checkout 154a359509fe805e93f283935c5327d8f9986723
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash fs/gfs2/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

fs/gfs2/glock.c:1126: warning: Function parameter or member 'ip' not described in '__gfs2_holder_init'
>> fs/gfs2/glock.c:1126: warning: expecting prototype for gfs2_holder_init(). Prototype was for __gfs2_holder_init() instead


vim +1126 fs/gfs2/glock.c

b3b94faa5fe596 David Teigland 2006-01-16 1114
b3b94faa5fe596 David Teigland 2006-01-16 1115 /**
b3b94faa5fe596 David Teigland 2006-01-16 1116 * gfs2_holder_init - initialize a struct gfs2_holder in the default way
b3b94faa5fe596 David Teigland 2006-01-16 1117 * @gl: the glock
b3b94faa5fe596 David Teigland 2006-01-16 1118 * @state: the state we're requesting
b3b94faa5fe596 David Teigland 2006-01-16 1119 * @flags: the modifier flags
b3b94faa5fe596 David Teigland 2006-01-16 1120 * @gh: the holder structure
b3b94faa5fe596 David Teigland 2006-01-16 1121 *
b3b94faa5fe596 David Teigland 2006-01-16 1122 */
b3b94faa5fe596 David Teigland 2006-01-16 1123
154a359509fe80 Andreas Gruenbacher 2021-09-30 1124 void __gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, u16 flags,
154a359509fe80 Andreas Gruenbacher 2021-09-30 1125 struct gfs2_holder *gh, unsigned long ip)
b3b94faa5fe596 David Teigland 2006-01-16 @1126 {
b3b94faa5fe596 David Teigland 2006-01-16 1127 INIT_LIST_HEAD(&gh->gh_list);
b3b94faa5fe596 David Teigland 2006-01-16 1128 gh->gh_gl = gl;
154a359509fe80 Andreas Gruenbacher 2021-09-30 1129 gh->gh_ip = ip;
b1e058da50f793 Pavel Emelyanov 2008-02-07 1130 gh->gh_owner_pid = get_pid(task_pid(current));
b3b94faa5fe596 David Teigland 2006-01-16 1131 gh->gh_state = state;
b3b94faa5fe596 David Teigland 2006-01-16 1132 gh->gh_flags = flags;
b3b94faa5fe596 David Teigland 2006-01-16 1133 gh->gh_error = 0;
b3b94faa5fe596 David Teigland 2006-01-16 1134 gh->gh_iflags = 0;
b3b94faa5fe596 David Teigland 2006-01-16 1135 gfs2_glock_hold(gl);
b3b94faa5fe596 David Teigland 2006-01-16 1136 }
b3b94faa5fe596 David Teigland 2006-01-16 1137

:::::: The code at line 1126 was first introduced by commit
:::::: b3b94faa5fe5968827ba0640ee9fba4b3e7f736e [GFS2] The core of GFS2

:::::: TO: David Teigland <teigland@xxxxxxxxxx>
:::::: CC: Steven Whitehouse <swhiteho@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip