[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108141349.1iMkSRhf-lkp@intel.com>
Date: Sat, 14 Aug 2021 13:11:58 +0800
From: kernel test robot <lkp@...el.com>
To: Christophe Leroy <christophe.leroy@...roup.eu>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Michael Ellerman <mpe@...erman.id.au>
Subject: fs/exfat/fatent.c:277:1: warning: the frame size of 2048 bytes is
larger than 1024 bytes
Hi Christophe,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dfa377c35d70c31139b1274ec49f87d380996c42
commit: 4eeef098b43242ed145c83fba9989d586d707589 powerpc/44x: Remove STDBINUTILS kconfig option
date: 7 months ago
config: powerpc-randconfig-r033-20210814 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.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/torvalds/linux.git/commit/?id=4eeef098b43242ed145c83fba9989d586d707589
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4eeef098b43242ed145c83fba9989d586d707589
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
fs/exfat/fatent.c: In function 'exfat_zeroed_cluster':
>> fs/exfat/fatent.c:277:1: warning: the frame size of 2048 bytes is larger than 1024 bytes [-Wframe-larger-than=]
277 | }
| ^
vim +277 fs/exfat/fatent.c
31023864e67a5f Namjae Jeon 2020-03-02 231
31023864e67a5f Namjae Jeon 2020-03-02 232 int exfat_zeroed_cluster(struct inode *dir, unsigned int clu)
31023864e67a5f Namjae Jeon 2020-03-02 233 {
31023864e67a5f Namjae Jeon 2020-03-02 234 struct super_block *sb = dir->i_sb;
31023864e67a5f Namjae Jeon 2020-03-02 235 struct exfat_sb_info *sbi = EXFAT_SB(sb);
31023864e67a5f Namjae Jeon 2020-03-02 236 struct buffer_head *bhs[MAX_BUF_PER_PAGE];
31023864e67a5f Namjae Jeon 2020-03-02 237 int nr_bhs = MAX_BUF_PER_PAGE;
31023864e67a5f Namjae Jeon 2020-03-02 238 sector_t blknr, last_blknr;
31023864e67a5f Namjae Jeon 2020-03-02 239 int err, i, n;
31023864e67a5f Namjae Jeon 2020-03-02 240
31023864e67a5f Namjae Jeon 2020-03-02 241 blknr = exfat_cluster_to_sector(sbi, clu);
31023864e67a5f Namjae Jeon 2020-03-02 242 last_blknr = blknr + sbi->sect_per_clus;
31023864e67a5f Namjae Jeon 2020-03-02 243
31023864e67a5f Namjae Jeon 2020-03-02 244 if (last_blknr > sbi->num_sectors && sbi->num_sectors > 0) {
31023864e67a5f Namjae Jeon 2020-03-02 245 exfat_fs_error_ratelimit(sb,
31023864e67a5f Namjae Jeon 2020-03-02 246 "%s: out of range(sect:%llu len:%u)",
31023864e67a5f Namjae Jeon 2020-03-02 247 __func__, (unsigned long long)blknr,
31023864e67a5f Namjae Jeon 2020-03-02 248 sbi->sect_per_clus);
31023864e67a5f Namjae Jeon 2020-03-02 249 return -EIO;
31023864e67a5f Namjae Jeon 2020-03-02 250 }
31023864e67a5f Namjae Jeon 2020-03-02 251
31023864e67a5f Namjae Jeon 2020-03-02 252 /* Zeroing the unused blocks on this cluster */
31023864e67a5f Namjae Jeon 2020-03-02 253 while (blknr < last_blknr) {
4dc7d35e09ba78 Tetsuhiro Kohada 2020-06-24 254 for (n = 0; n < nr_bhs && blknr < last_blknr; n++, blknr++) {
31023864e67a5f Namjae Jeon 2020-03-02 255 bhs[n] = sb_getblk(sb, blknr);
31023864e67a5f Namjae Jeon 2020-03-02 256 if (!bhs[n]) {
31023864e67a5f Namjae Jeon 2020-03-02 257 err = -ENOMEM;
31023864e67a5f Namjae Jeon 2020-03-02 258 goto release_bhs;
31023864e67a5f Namjae Jeon 2020-03-02 259 }
31023864e67a5f Namjae Jeon 2020-03-02 260 memset(bhs[n]->b_data, 0, sb->s_blocksize);
31023864e67a5f Namjae Jeon 2020-03-02 261 }
31023864e67a5f Namjae Jeon 2020-03-02 262
4dc7d35e09ba78 Tetsuhiro Kohada 2020-06-24 263 err = exfat_update_bhs(bhs, n, IS_DIRSYNC(dir));
31023864e67a5f Namjae Jeon 2020-03-02 264 if (err)
31023864e67a5f Namjae Jeon 2020-03-02 265 goto release_bhs;
31023864e67a5f Namjae Jeon 2020-03-02 266
31023864e67a5f Namjae Jeon 2020-03-02 267 for (i = 0; i < n; i++)
31023864e67a5f Namjae Jeon 2020-03-02 268 brelse(bhs[i]);
4dc7d35e09ba78 Tetsuhiro Kohada 2020-06-24 269 }
31023864e67a5f Namjae Jeon 2020-03-02 270 return 0;
31023864e67a5f Namjae Jeon 2020-03-02 271
31023864e67a5f Namjae Jeon 2020-03-02 272 release_bhs:
d1727d55c0327e Joe Perches 2020-04-24 273 exfat_err(sb, "failed zeroed sect %llu\n", (unsigned long long)blknr);
31023864e67a5f Namjae Jeon 2020-03-02 274 for (i = 0; i < n; i++)
31023864e67a5f Namjae Jeon 2020-03-02 275 bforget(bhs[i]);
31023864e67a5f Namjae Jeon 2020-03-02 276 return err;
31023864e67a5f Namjae Jeon 2020-03-02 @277 }
31023864e67a5f Namjae Jeon 2020-03-02 278
:::::: The code at line 277 was first introduced by commit
:::::: 31023864e67a5f390cefbe92f72343027dc3aa33 exfat: add fat entry operations
:::::: TO: Namjae Jeon <namjae.jeon@...sung.com>
:::::: CC: Al Viro <viro@...iv.linux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (30968 bytes)
Powered by blists - more mailing lists