From: kernel test robot <lkp@intel.com> To: Allison Henderson <allison.henderson@oracle.com> Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Dave Chinner <dchinner@redhat.com> Subject: [allisonhenderson-xfs_work:delayed_attrs_v22_extended 25/32] fs/xfs/libxfs/xfs_parent.c:55:1: warning: no previous prototype for function 'xfs_init_parent_name_rec' Date: Mon, 26 Jul 2021 10:55:57 +0800 [thread overview] Message-ID: <202107261054.AO3vGDN7-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 3654 bytes --] tree: https://github.com/allisonhenderson/xfs_work.git delayed_attrs_v22_extended head: 43a95c4600b7c80ac410a00ac245ccf85b150d26 commit: 7afeb66fe35b1ff4b92ced29e2541f5f7a5c86f7 [25/32] xfs: parent pointer attribute creation config: x86_64-randconfig-a003-20210725 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c63dbd850182797bc4b76124d08e1c320ab2365d) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/allisonhenderson/xfs_work/commit/7afeb66fe35b1ff4b92ced29e2541f5f7a5c86f7 git remote add allisonhenderson-xfs_work https://github.com/allisonhenderson/xfs_work.git git fetch --no-tags allisonhenderson-xfs_work delayed_attrs_v22_extended git checkout 7afeb66fe35b1ff4b92ced29e2541f5f7a5c86f7 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 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/xfs/libxfs/xfs_parent.c:55:1: warning: no previous prototype for function 'xfs_init_parent_name_rec' [-Wmissing-prototypes] xfs_init_parent_name_rec( ^ fs/xfs/libxfs/xfs_parent.c:54:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void ^ static >> fs/xfs/libxfs/xfs_parent.c:70:1: warning: no previous prototype for function 'xfs_init_parent_name_irec' [-Wmissing-prototypes] xfs_init_parent_name_irec( ^ fs/xfs/libxfs/xfs_parent.c:69:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void ^ static 2 warnings generated. vim +/xfs_init_parent_name_rec +55 fs/xfs/libxfs/xfs_parent.c 35 36 /* 37 * Parent pointer attribute handling. 38 * 39 * Because the attribute value is a filename component, it will never be longer 40 * than 255 bytes. This means the attribute will always be a local format 41 * attribute as it is xfs_attr_leaf_entsize_local_max() for v5 filesystems will 42 * always be larger than this (max is 75% of block size). 43 * 44 * Creating a new parent attribute will always create a new attribute - there 45 * should never, ever be an existing attribute in the tree for a new inode. 46 * ENOSPC behavior is problematic - creating the inode without the parent 47 * pointer is effectively a corruption, so we allow parent attribute creation 48 * to dip into the reserve block pool to avoid unexpected ENOSPC errors from 49 * occurring. 50 */ 51 52 53 /* Initializes a xfs_parent_name_rec to be stored as an attribute name */ 54 void > 55 xfs_init_parent_name_rec( 56 struct xfs_parent_name_rec *rec, 57 struct xfs_inode *ip, 58 uint32_t p_diroffset) 59 { 60 xfs_ino_t p_ino = ip->i_ino; 61 uint32_t p_gen = VFS_I(ip)->i_generation; 62 63 rec->p_ino = cpu_to_be64(p_ino); 64 rec->p_gen = cpu_to_be32(p_gen); 65 rec->p_diroffset = cpu_to_be32(p_diroffset); 66 } 67 68 /* Initializes a xfs_parent_name_irec from an xfs_parent_name_rec */ 69 void > 70 xfs_init_parent_name_irec( --- 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: 35814 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com> To: kbuild-all@lists.01.org Subject: [allisonhenderson-xfs_work:delayed_attrs_v22_extended 25/32] fs/xfs/libxfs/xfs_parent.c:55:1: warning: no previous prototype for function 'xfs_init_parent_name_rec' Date: Mon, 26 Jul 2021 10:55:57 +0800 [thread overview] Message-ID: <202107261054.AO3vGDN7-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 3737 bytes --] tree: https://github.com/allisonhenderson/xfs_work.git delayed_attrs_v22_extended head: 43a95c4600b7c80ac410a00ac245ccf85b150d26 commit: 7afeb66fe35b1ff4b92ced29e2541f5f7a5c86f7 [25/32] xfs: parent pointer attribute creation config: x86_64-randconfig-a003-20210725 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c63dbd850182797bc4b76124d08e1c320ab2365d) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/allisonhenderson/xfs_work/commit/7afeb66fe35b1ff4b92ced29e2541f5f7a5c86f7 git remote add allisonhenderson-xfs_work https://github.com/allisonhenderson/xfs_work.git git fetch --no-tags allisonhenderson-xfs_work delayed_attrs_v22_extended git checkout 7afeb66fe35b1ff4b92ced29e2541f5f7a5c86f7 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 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/xfs/libxfs/xfs_parent.c:55:1: warning: no previous prototype for function 'xfs_init_parent_name_rec' [-Wmissing-prototypes] xfs_init_parent_name_rec( ^ fs/xfs/libxfs/xfs_parent.c:54:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void ^ static >> fs/xfs/libxfs/xfs_parent.c:70:1: warning: no previous prototype for function 'xfs_init_parent_name_irec' [-Wmissing-prototypes] xfs_init_parent_name_irec( ^ fs/xfs/libxfs/xfs_parent.c:69:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void ^ static 2 warnings generated. vim +/xfs_init_parent_name_rec +55 fs/xfs/libxfs/xfs_parent.c 35 36 /* 37 * Parent pointer attribute handling. 38 * 39 * Because the attribute value is a filename component, it will never be longer 40 * than 255 bytes. This means the attribute will always be a local format 41 * attribute as it is xfs_attr_leaf_entsize_local_max() for v5 filesystems will 42 * always be larger than this (max is 75% of block size). 43 * 44 * Creating a new parent attribute will always create a new attribute - there 45 * should never, ever be an existing attribute in the tree for a new inode. 46 * ENOSPC behavior is problematic - creating the inode without the parent 47 * pointer is effectively a corruption, so we allow parent attribute creation 48 * to dip into the reserve block pool to avoid unexpected ENOSPC errors from 49 * occurring. 50 */ 51 52 53 /* Initializes a xfs_parent_name_rec to be stored as an attribute name */ 54 void > 55 xfs_init_parent_name_rec( 56 struct xfs_parent_name_rec *rec, 57 struct xfs_inode *ip, 58 uint32_t p_diroffset) 59 { 60 xfs_ino_t p_ino = ip->i_ino; 61 uint32_t p_gen = VFS_I(ip)->i_generation; 62 63 rec->p_ino = cpu_to_be64(p_ino); 64 rec->p_gen = cpu_to_be32(p_gen); 65 rec->p_diroffset = cpu_to_be32(p_diroffset); 66 } 67 68 /* Initializes a xfs_parent_name_irec from an xfs_parent_name_rec */ 69 void > 70 xfs_init_parent_name_irec( --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org [-- Attachment #2: config.gz --] [-- Type: application/gzip, Size: 35814 bytes --]
next reply other threads:[~2021-07-26 2:56 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-07-26 2:55 kernel test robot [this message] 2021-07-26 2:55 ` [allisonhenderson-xfs_work:delayed_attrs_v22_extended 25/32] fs/xfs/libxfs/xfs_parent.c:55:1: warning: no previous prototype for function 'xfs_init_parent_name_rec' kernel test robot
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=202107261054.AO3vGDN7-lkp@intel.com \ --to=lkp@intel.com \ --cc=allison.henderson@oracle.com \ --cc=clang-built-linux@googlegroups.com \ --cc=dchinner@redhat.com \ --cc=kbuild-all@lists.01.org \ --cc=linux-kernel@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.