Re: [PATCH] jfs: validate active AG before updating db_active
From: kernel test robot
Date: Fri Jun 12 2026 - 05:47:42 EST
Hi Kyle,
kernel test robot noticed the following build errors:
[auto build test ERROR on brauner-vfs/vfs.all]
[also build test ERROR on linus/master kleikamp-shaggy/jfs-next v7.1-rc7 next-20260611]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Kyle-Zeng/jfs-validate-active-AG-before-updating-db_active/20260612-054255
base: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.all
patch link: https://lore.kernel.org/r/20260611212956.10206-1-kylebot%40openai.com
patch subject: [PATCH] jfs: validate active AG before updating db_active
config: s390-randconfig-002-20260612 (https://download.01.org/0day-ci/archive/20260612/202606121758.6bifYIqm-lkp@xxxxxxxxx/config)
compiler: s390-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260612/202606121758.6bifYIqm-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606121758.6bifYIqm-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
fs/jfs/file.c: In function 'jfs_get_active_ag':
>> fs/jfs/file.c:52:3: error: implicit declaration of function 'jfs_error'; did you mean 'xas_error'? [-Werror=implicit-function-declaration]
jfs_error(inode->i_sb,
^~~~~~~~~
xas_error
cc1: some warnings being treated as errors
vim +52 fs/jfs/file.c
43
44 static int jfs_get_active_ag(struct inode *inode, int *agp)
45 {
46 struct jfs_inode_info *ji = JFS_IP(inode);
47 struct jfs_sb_info *sbi = JFS_SBI(inode->i_sb);
48 struct bmap *bmap = sbi->bmap;
49 u64 ag = BLKTOAG(addressPXD(&ji->ixpxd), sbi);
50
51 if (ag >= bmap->db_numag) {
> 52 jfs_error(inode->i_sb,
53 "inode %lu has invalid active ag %llu\n",
54 inode->i_ino, (unsigned long long)ag);
55 return -EIO;
56 }
57
58 *agp = ag;
59 return 0;
60 }
61
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki