[allisonhenderson-xfs-work:xfs-5.19-compose_pptrs 32/32] fs/xfs/libxfs/xfs_parent.c:38:1: warning: no previous prototype for 'xfs_init_parent_ptr'

From: kernel test robot
Date: Thu May 05 2022 - 23:58:12 EST


tree: https://github.com/allisonhenderson/xfs_work.git xfs-5.19-compose_pptrs
head: 74ecccf0e89a132c2490f3a63661c535974c6a08
commit: 74ecccf0e89a132c2490f3a63661c535974c6a08 [32/32] xfs: Add parent pointer ioctl
config: arc-randconfig-r001-20220505 (https://download.01.org/0day-ci/archive/20220506/202205061153.IFAjcpvT-lkp@xxxxxxxxx/config)
compiler: arc-elf-gcc (GCC) 11.3.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://github.com/allisonhenderson/xfs_work/commit/74ecccf0e89a132c2490f3a63661c535974c6a08
git remote add allisonhenderson-xfs-work https://github.com/allisonhenderson/xfs_work.git
git fetch --no-tags allisonhenderson-xfs-work xfs-5.19-compose_pptrs
git checkout 74ecccf0e89a132c2490f3a63661c535974c6a08
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash fs/xfs/

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/xfs/libxfs/xfs_parent.c:38:1: warning: no previous prototype for 'xfs_init_parent_ptr' [-Wmissing-prototypes]
38 | xfs_init_parent_ptr(struct xfs_parent_ptr *xpp,
| ^~~~~~~~~~~~~~~~~~~
fs/xfs/libxfs/xfs_parent.c:65:1: warning: no previous prototype for 'xfs_init_parent_name_rec' [-Wmissing-prototypes]
65 | xfs_init_parent_name_rec(
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/libxfs/xfs_parent.c:80:1: warning: no previous prototype for 'xfs_init_parent_name_irec' [-Wmissing-prototypes]
80 | xfs_init_parent_name_irec(
| ^~~~~~~~~~~~~~~~~~~~~~~~~
--
>> fs/xfs/xfs_parent_utils.c:42:1: warning: no previous prototype for 'xfs_attr_get_parent_pointer' [-Wmissing-prototypes]
42 | xfs_attr_get_parent_pointer(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/xfs_init_parent_ptr +38 fs/xfs/libxfs/xfs_parent.c

35
36 /* Initializes a xfs_parent_ptr from an xfs_parent_name_rec */
37 void
> 38 xfs_init_parent_ptr(struct xfs_parent_ptr *xpp,
39 struct xfs_parent_name_rec *rec)
40 {
41 xpp->xpp_ino = be64_to_cpu(rec->p_ino);
42 xpp->xpp_gen = be32_to_cpu(rec->p_gen);
43 xpp->xpp_diroffset = be32_to_cpu(rec->p_diroffset);
44 }
45

--
0-DAY CI Kernel Test Service
https://01.org/lkp