linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fs/gfs2/glock.c:1213: warning: expecting prototype for gfs2_holder_init(). Prototype was for __gfs2_holder_init() instead
@ 2021-11-18 19:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-18 19:22 UTC (permalink / raw)
  To: Andreas Gruenbacher; +Cc: kbuild-all, linux-kernel, Bob Peterson

[-- Attachment #1: Type: text/plain, Size: 3616 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   42eb8fdac2fc5d62392dcfcf0253753e821a97b0
commit: b016d9a84abdd2efaa273814eaeb59e112ecffbd gfs2: Save ip from gfs2_glock_nq_init
date:   4 weeks ago
config: m68k-randconfig-r004-20211109 (attached as .config)
compiler: m68k-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/torvalds/linux.git/commit/?id=b016d9a84abdd2efaa273814eaeb59e112ecffbd
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout b016d9a84abdd2efaa273814eaeb59e112ecffbd
        # 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=m68k SHELL=/bin/bash fs/gfs2/

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

All warnings (new ones prefixed by >>):

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


vim +1213 fs/gfs2/glock.c

b3b94faa5fe596 David Teigland      2006-01-16  1201  
b3b94faa5fe596 David Teigland      2006-01-16  1202  /**
b3b94faa5fe596 David Teigland      2006-01-16  1203   * gfs2_holder_init - initialize a struct gfs2_holder in the default way
b3b94faa5fe596 David Teigland      2006-01-16  1204   * @gl: the glock
b3b94faa5fe596 David Teigland      2006-01-16  1205   * @state: the state we're requesting
b3b94faa5fe596 David Teigland      2006-01-16  1206   * @flags: the modifier flags
b3b94faa5fe596 David Teigland      2006-01-16  1207   * @gh: the holder structure
b3b94faa5fe596 David Teigland      2006-01-16  1208   *
b3b94faa5fe596 David Teigland      2006-01-16  1209   */
b3b94faa5fe596 David Teigland      2006-01-16  1210  
b016d9a84abdd2 Andreas Gruenbacher 2021-09-30  1211  void __gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, u16 flags,
b016d9a84abdd2 Andreas Gruenbacher 2021-09-30  1212  			struct gfs2_holder *gh, unsigned long ip)
b3b94faa5fe596 David Teigland      2006-01-16 @1213  {
b3b94faa5fe596 David Teigland      2006-01-16  1214  	INIT_LIST_HEAD(&gh->gh_list);
b3b94faa5fe596 David Teigland      2006-01-16  1215  	gh->gh_gl = gl;
b016d9a84abdd2 Andreas Gruenbacher 2021-09-30  1216  	gh->gh_ip = ip;
b1e058da50f793 Pavel Emelyanov     2008-02-07  1217  	gh->gh_owner_pid = get_pid(task_pid(current));
b3b94faa5fe596 David Teigland      2006-01-16  1218  	gh->gh_state = state;
b3b94faa5fe596 David Teigland      2006-01-16  1219  	gh->gh_flags = flags;
b3b94faa5fe596 David Teigland      2006-01-16  1220  	gh->gh_error = 0;
b3b94faa5fe596 David Teigland      2006-01-16  1221  	gh->gh_iflags = 0;
b3b94faa5fe596 David Teigland      2006-01-16  1222  	gfs2_glock_hold(gl);
b3b94faa5fe596 David Teigland      2006-01-16  1223  }
b3b94faa5fe596 David Teigland      2006-01-16  1224  

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

:::::: TO: David Teigland <teigland@redhat.com>
:::::: CC: Steven Whitehouse <swhiteho@redhat.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36121 bytes --]

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

only message in thread, other threads:[~2021-11-18 19:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-18 19:22 fs/gfs2/glock.c:1213: warning: expecting prototype for gfs2_holder_init(). Prototype was for __gfs2_holder_init() instead kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).