* [hch-block:blkdev.h-includes 2/17] drivers/md/dm-ima.c:54:29: error: implicit declaration of function 'memalloc_noio_save'
@ 2021-09-14 5:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-14 5:59 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 3448 bytes --]
CC: kbuild-all(a)lists.01.org
TO: Christoph Hellwig <hch@lst.de>
tree: git://git.infradead.org/users/hch/block.git blkdev.h-includes
head: 0687088056048288700f442e86ea92af0fce9a12
commit: b7260dd875e13760df5d1a677c85a1062b49128a [2/17] mm: don't include <linux/blk-cgroup.h> in <linux/backing-dev.h>
:::::: branch date: 24 hours ago
:::::: commit date: 24 hours ago
config: arc-randconfig-c023-20210913 (attached as .config)
compiler: arceb-elf-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
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block blkdev.h-includes
git checkout b7260dd875e13760df5d1a677c85a1062b49128a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/md/dm-ima.c: In function 'dm_ima_alloc':
>> drivers/md/dm-ima.c:54:29: error: implicit declaration of function 'memalloc_noio_save' [-Werror=implicit-function-declaration]
54 | noio_flag = memalloc_noio_save();
| ^~~~~~~~~~~~~~~~~~
>> drivers/md/dm-ima.c:59:17: error: implicit declaration of function 'memalloc_noio_restore' [-Werror=implicit-function-declaration]
59 | memalloc_noio_restore(noio_flag);
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/memalloc_noio_save +54 drivers/md/dm-ima.c
91ccbbac1747ee Tushar Sugandhi 2021-07-12 44
91ccbbac1747ee Tushar Sugandhi 2021-07-12 45 /*
91ccbbac1747ee Tushar Sugandhi 2021-07-12 46 * Internal function to allocate memory for IMA measurements.
91ccbbac1747ee Tushar Sugandhi 2021-07-12 47 */
91ccbbac1747ee Tushar Sugandhi 2021-07-12 48 static void *dm_ima_alloc(size_t len, gfp_t flags, bool noio)
91ccbbac1747ee Tushar Sugandhi 2021-07-12 49 {
91ccbbac1747ee Tushar Sugandhi 2021-07-12 50 unsigned int noio_flag;
91ccbbac1747ee Tushar Sugandhi 2021-07-12 51 void *ptr;
91ccbbac1747ee Tushar Sugandhi 2021-07-12 52
91ccbbac1747ee Tushar Sugandhi 2021-07-12 53 if (noio)
91ccbbac1747ee Tushar Sugandhi 2021-07-12 @54 noio_flag = memalloc_noio_save();
91ccbbac1747ee Tushar Sugandhi 2021-07-12 55
91ccbbac1747ee Tushar Sugandhi 2021-07-12 56 ptr = kzalloc(len, flags);
91ccbbac1747ee Tushar Sugandhi 2021-07-12 57
91ccbbac1747ee Tushar Sugandhi 2021-07-12 58 if (noio)
91ccbbac1747ee Tushar Sugandhi 2021-07-12 @59 memalloc_noio_restore(noio_flag);
91ccbbac1747ee Tushar Sugandhi 2021-07-12 60
91ccbbac1747ee Tushar Sugandhi 2021-07-12 61 return ptr;
91ccbbac1747ee Tushar Sugandhi 2021-07-12 62 }
91ccbbac1747ee Tushar Sugandhi 2021-07-12 63
:::::: The code at line 54 was first introduced by commit
:::::: 91ccbbac1747eea155632a1c6bb100052309b215 dm ima: measure data on table load
:::::: TO: Tushar Sugandhi <tusharsu@linux.microsoft.com>
:::::: CC: Mike Snitzer <snitzer@redhat.com>
---
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: 31232 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-14 5:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-14 5:59 [hch-block:blkdev.h-includes 2/17] drivers/md/dm-ima.c:54:29: error: implicit declaration of function 'memalloc_noio_save' 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.