lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206020920.2x0m0E4y-lkp@intel.com>
Date:   Thu, 2 Jun 2022 09:09:34 +0800
From:   kernel test robot <lkp@...el.com>
To:     "Darrick J. Wong" <djwong@...nel.org>
Cc:     kbuild-all@...ts.01.org,
        "Darrick J. Wong" <darrick.wong@...cle.com>,
        linux-kernel@...r.kernel.org
Subject: [djwong-xfs:vectorized-scrub 172/401]
 fs/xfs/libxfs/xfs_btree.c:140:23: error: implicit declaration of function
 'xfs_daddr_to_xfo'; did you mean 'xfs_daddr_to_agno'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git vectorized-scrub
head:   1fcd9cea011a657d62ee332d161966c1ec92ffd5
commit: 737a5536fdb7ee845a8a656e14ec1c4554be6dec [172/401] xfs: support in-memory btrees
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20220602/202206020920.2x0m0E4y-lkp@intel.com/config)
compiler: m68k-linux-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://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/commit/?id=737a5536fdb7ee845a8a656e14ec1c4554be6dec
        git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
        git fetch --no-tags djwong-xfs vectorized-scrub
        git checkout 737a5536fdb7ee845a8a656e14ec1c4554be6dec
        # 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=m68k SHELL=/bin/bash fs/xfs/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   fs/xfs/libxfs/xfs_btree.c: In function '__xfs_btree_check_lblock':
>> fs/xfs/libxfs/xfs_btree.c:140:23: error: implicit declaration of function 'xfs_daddr_to_xfo'; did you mean 'xfs_daddr_to_agno'? [-Werror=implicit-function-declaration]
     140 |                 fsb = xfs_daddr_to_xfo(xfs_buf_daddr(bp));
         |                       ^~~~~~~~~~~~~~~~
         |                       xfs_daddr_to_agno
   cc1: some warnings being treated as errors


vim +140 fs/xfs/libxfs/xfs_btree.c

   103	
   104	/*
   105	 * Check a long btree block header.  Return the address of the failing check,
   106	 * or NULL if everything is ok.
   107	 */
   108	xfs_failaddr_t
   109	__xfs_btree_check_lblock(
   110		struct xfs_btree_cur	*cur,
   111		struct xfs_btree_block	*block,
   112		int			level,
   113		struct xfs_buf		*bp)
   114	{
   115		struct xfs_mount	*mp = cur->bc_mp;
   116		xfs_btnum_t		btnum = cur->bc_btnum;
   117		int			crc = xfs_has_crc(mp);
   118		xfs_failaddr_t		fa;
   119		xfs_fsblock_t		fsb = NULLFSBLOCK;
   120	
   121		if (crc) {
   122			if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid))
   123				return __this_address;
   124			if (block->bb_u.l.bb_blkno !=
   125			    cpu_to_be64(bp ? xfs_buf_daddr(bp) : XFS_BUF_DADDR_NULL))
   126				return __this_address;
   127			if (block->bb_u.l.bb_pad != cpu_to_be32(0))
   128				return __this_address;
   129		}
   130	
   131		if (be32_to_cpu(block->bb_magic) != xfs_btree_magic(crc, btnum))
   132			return __this_address;
   133		if (be16_to_cpu(block->bb_level) != level)
   134			return __this_address;
   135		if (be16_to_cpu(block->bb_numrecs) >
   136		    cur->bc_ops->get_maxrecs(cur, level))
   137			return __this_address;
   138	
   139		if ((cur->bc_flags & XFS_BTREE_IN_MEMORY) && bp)
 > 140			fsb = xfs_daddr_to_xfo(xfs_buf_daddr(bp));
   141		else if (bp)
   142			fsb = XFS_DADDR_TO_FSB(mp, xfs_buf_daddr(bp));
   143	
   144		fa = xfs_btree_check_lblock_siblings(mp, cur, level, fsb,
   145				be64_to_cpu(block->bb_u.l.bb_leftsib));
   146		if (!fa)
   147			fa = xfs_btree_check_lblock_siblings(mp, cur, level, fsb,
   148					be64_to_cpu(block->bb_u.l.bb_rightsib));
   149		return fa;
   150	}
   151	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ