lkml.org 
[lkml]   [2016]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] z3fold: don't fail kernel build if z3fold_header is too big
Hi Vitaly,

[auto build test WARNING on mmotm/master]
[also build test WARNING on v4.9-rc4 next-20161110]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Vitaly-Wool/z3fold-don-t-fail-kernel-build-if-z3fold_header-is-too-big/20161110-161657
base: git://git.cmpxchg.org/linux-mmotm.git master
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=tile

All warnings (new ones prefixed by >>):

mm/z3fold.c: In function 'init_z3fold':
>> mm/z3fold.c:817:3: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat]

vim +817 mm/z3fold.c

801 .create = z3fold_zpool_create,
802 .destroy = z3fold_zpool_destroy,
803 .malloc = z3fold_zpool_malloc,
804 .free = z3fold_zpool_free,
805 .shrink = z3fold_zpool_shrink,
806 .map = z3fold_zpool_map,
807 .unmap = z3fold_zpool_unmap,
808 .total_size = z3fold_zpool_total_size,
809 };
810
811 MODULE_ALIAS("zpool-z3fold");
812
813 static int __init init_z3fold(void)
814 {
815 /* Fail the initialization if z3fold header won't fit in one chunk */
816 if (sizeof(struct z3fold_header) > ZHDR_SIZE_ALIGNED) {
> 817 pr_err("z3fold: z3fold_header size (%d) is bigger than "
818 "the chunk size (%d), can't proceed\n",
819 sizeof(struct z3fold_header) , ZHDR_SIZE_ALIGNED);
820 return -E2BIG;
821 }
822
823 zpool_register_driver(&z3fold_zpool_driver);
824 return 0;
825 }

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2016-11-10 10:06    [W:0.055 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site