From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [hch-block:blkdev.h-includes 2/17] drivers/md/dm-ima.c:54:29: error: implicit declaration of function 'memalloc_noio_save'
Date: Tue, 14 Sep 2021 13:59:44 +0800 [thread overview]
Message-ID: <202109141333.pSQLKE4f-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-09-14 5:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202109141333.pSQLKE4f-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.