All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [hch-xfs:xfs-crc 18/30] fs/xfs/libxfs/xfs_sb.c:1352:undefined reference to `xfs_data_csum_shift'
Date: Mon, 14 Sep 2026 12:29:51 +0800	[thread overview]
Message-ID: <202609141225.ytGAerrF-lkp@intel.com> (raw)

tree:   git://git.infradead.org/users/hch/xfs xfs-crc
head:   13c4aa2fcb1f62fdf47e7abe90741e89f682761e
commit: 7f5797416a817a414c43c8d72e0b145ae563e960 [18/30] xfs: add support for per-RTG csum files
config: i386-buildonly-randconfig-005-20260914 (https://download.01.org/0day-ci/archive/20260914/202609141225.ytGAerrF-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260914/202609141225.ytGAerrF-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609141225.ytGAerrF-lkp@intel.com/

All errors (new ones prefixed by >>):

   ld: fs/xfs/libxfs/xfs_sb.o: in function `xfs_sb_mount_common':
>> fs/xfs/libxfs/xfs_sb.c:1352:(.text+0x1c11): undefined reference to `xfs_data_csum_shift'


vim +1352 fs/xfs/libxfs/xfs_sb.c

  1282	
  1283	/*
  1284	 * xfs_mount_common
  1285	 *
  1286	 * Mount initialization code establishing various mount
  1287	 * fields from the superblock associated with the given
  1288	 * mount structure.
  1289	 *
  1290	 * Inode geometry are calculated in xfs_ialloc_setup_geometry.
  1291	 */
  1292	void
  1293	xfs_sb_mount_common(
  1294		struct xfs_mount	*mp,
  1295		struct xfs_sb		*sbp)
  1296	{
  1297		struct xfs_groups	*ags = &mp->m_groups[XG_TYPE_AG];
  1298	
  1299		mp->m_agfrotor = 0;
  1300		atomic_set(&mp->m_agirotor, 0);
  1301		mp->m_maxagi = mp->m_sb.sb_agcount;
  1302		mp->m_blkbit_log = sbp->sb_blocklog + XFS_NBBYLOG;
  1303		mp->m_blkbb_log = sbp->sb_blocklog - BBSHIFT;
  1304		mp->m_sectbb_log = sbp->sb_sectlog - BBSHIFT;
  1305		mp->m_agno_log = xfs_highbit32(sbp->sb_agcount - 1) + 1;
  1306		mp->m_blockmask = sbp->sb_blocksize - 1;
  1307		mp->m_blockwsize = xfs_rtbmblock_size(sbp) >> XFS_WORDLOG;
  1308		mp->m_rtx_per_rbmblock = mp->m_blockwsize << XFS_NBWORDLOG;
  1309	
  1310		ags->blocks = mp->m_sb.sb_agblocks;
  1311		ags->blklog = mp->m_sb.sb_agblklog;
  1312		ags->blkmask = xfs_mask32lo(mp->m_sb.sb_agblklog);
  1313	
  1314		xfs_sb_mount_rextsize(mp, sbp);
  1315	
  1316		mp->m_alloc_mxr[0] = xfs_allocbt_maxrecs(mp, sbp->sb_blocksize, true);
  1317		mp->m_alloc_mxr[1] = xfs_allocbt_maxrecs(mp, sbp->sb_blocksize, false);
  1318		mp->m_alloc_mnr[0] = mp->m_alloc_mxr[0] / 2;
  1319		mp->m_alloc_mnr[1] = mp->m_alloc_mxr[1] / 2;
  1320	
  1321		mp->m_bmap_dmxr[0] = xfs_bmbt_maxrecs(mp, sbp->sb_blocksize, true);
  1322		mp->m_bmap_dmxr[1] = xfs_bmbt_maxrecs(mp, sbp->sb_blocksize, false);
  1323		mp->m_bmap_dmnr[0] = mp->m_bmap_dmxr[0] / 2;
  1324		mp->m_bmap_dmnr[1] = mp->m_bmap_dmxr[1] / 2;
  1325	
  1326		mp->m_rmap_mxr[0] = xfs_rmapbt_maxrecs(mp, sbp->sb_blocksize, true);
  1327		mp->m_rmap_mxr[1] = xfs_rmapbt_maxrecs(mp, sbp->sb_blocksize, false);
  1328		mp->m_rmap_mnr[0] = mp->m_rmap_mxr[0] / 2;
  1329		mp->m_rmap_mnr[1] = mp->m_rmap_mxr[1] / 2;
  1330	
  1331		mp->m_rtrmap_mxr[0] = xfs_rtrmapbt_maxrecs(mp, sbp->sb_blocksize, true);
  1332		mp->m_rtrmap_mxr[1] = xfs_rtrmapbt_maxrecs(mp, sbp->sb_blocksize, false);
  1333		mp->m_rtrmap_mnr[0] = mp->m_rtrmap_mxr[0] / 2;
  1334		mp->m_rtrmap_mnr[1] = mp->m_rtrmap_mxr[1] / 2;
  1335	
  1336		mp->m_refc_mxr[0] = xfs_refcountbt_maxrecs(mp, sbp->sb_blocksize, true);
  1337		mp->m_refc_mxr[1] = xfs_refcountbt_maxrecs(mp, sbp->sb_blocksize, false);
  1338		mp->m_refc_mnr[0] = mp->m_refc_mxr[0] / 2;
  1339		mp->m_refc_mnr[1] = mp->m_refc_mxr[1] / 2;
  1340	
  1341		mp->m_rtrefc_mxr[0] = xfs_rtrefcountbt_maxrecs(mp, sbp->sb_blocksize,
  1342				true);
  1343		mp->m_rtrefc_mxr[1] = xfs_rtrefcountbt_maxrecs(mp, sbp->sb_blocksize,
  1344				false);
  1345		mp->m_rtrefc_mnr[0] = mp->m_rtrefc_mxr[0] / 2;
  1346		mp->m_rtrefc_mnr[1] = mp->m_rtrefc_mxr[1] / 2;
  1347	
  1348		mp->m_bsize = XFS_FSB_TO_BB(mp, 1);
  1349		mp->m_alloc_set_aside = xfs_alloc_set_aside(mp);
  1350		mp->m_ag_max_usable = xfs_alloc_ag_max_usable(mp);
  1351	
> 1352		mp->m_rtcsum_shift = xfs_data_csum_shift(mp->m_sb.sb_rtcsum);
  1353	}
  1354	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-09-14  4:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202609141225.ytGAerrF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hch@lst.de \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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: link
Be 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.