All of lore.kernel.org
 help / color / mirror / Atom feed
* [linuxppc:next-test 33/189] fs/exfat/fatent.c:277:1: warning: the frame size of 2064 bytes is larger than 1024 bytes
@ 2021-02-21 18:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-21 18:59 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5995 bytes --]

tree:   https://github.com/linuxppc/linux next-test
head:   b12483618d73c954c00faa49c276b4d9995fb95a
commit: 4eeef098b43242ed145c83fba9989d586d707589 [33/189] powerpc/44x: Remove STDBINUTILS kconfig option
config: powerpc-randconfig-p002-20210221 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.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://github.com/linuxppc/linux/commit/4eeef098b43242ed145c83fba9989d586d707589
        git remote add linuxppc https://github.com/linuxppc/linux
        git fetch --no-tags linuxppc next-test
        git checkout 4eeef098b43242ed145c83fba9989d586d707589
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc 

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/exfat/fatent.c: In function 'exfat_zeroed_cluster':
>> fs/exfat/fatent.c:277:1: warning: the frame size of 2064 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     277 | }
         | ^
--
   fs/fat/dir.c: In function 'fat_add_new_entries':
>> fs/fat/dir.c:1279:1: warning: the frame size of 2088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
    1279 | }
         | ^
   fs/fat/dir.c: In function 'fat_alloc_new_dir':
   fs/fat/dir.c:1195:1: warning: the frame size of 2064 bytes is larger than 1024 bytes [-Wframe-larger-than=]
    1195 | }
         | ^
--
   fs/fat/fatent.c: In function 'fat_free_clusters':
>> fs/fat/fatent.c:632:1: warning: the frame size of 2080 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     632 | }
         | ^
   fs/fat/fatent.c: In function 'fat_alloc_clusters':
   fs/fat/fatent.c:550:1: warning: the frame size of 2112 bytes is larger than 1024 bytes [-Wframe-larger-than=]
     550 | }
         | ^


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@line 277 was first introduced by commit
:::::: 31023864e67a5f390cefbe92f72343027dc3aa33 exfat: add fat entry operations

:::::: TO: Namjae Jeon <namjae.jeon@samsung.com>
:::::: CC: Al Viro <viro@zeniv.linux.org.uk>

---
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: 35720 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-21 18:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-21 18:59 [linuxppc:next-test 33/189] fs/exfat/fatent.c:277:1: warning: the frame size of 2064 bytes is larger than 1024 bytes kernel test robot

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.