* [djiang:cxl-security 1/19] include/linux/memregion.h:54:9: error: implicit declaration of function 'WARN_ON_ONCE'
@ 2022-09-21 17:39 kernel test robot
2022-09-21 21:44 ` Davidlohr Bueso
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-09-21 17:39 UTC (permalink / raw)
To: Davidlohr Bueso; +Cc: kbuild-all, linux-kernel, Dave Jiang
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git cxl-security
head: 3b2ea8468d5dbe2e7b61dcd86cc3aeadfe766d07
commit: d8fab77dd9512ae56e653afddbef9351da206679 [1/19] memregion: Add cpu_cache_invalidate_memregion() interface
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20220922/202209220119.QSB1o664-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.1.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/djiang/linux.git/commit/?id=d8fab77dd9512ae56e653afddbef9351da206679
git remote add djiang https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git
git fetch --no-tags djiang cxl-security
git checkout d8fab77dd9512ae56e653afddbef9351da206679
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/cxl/core/region.c:3:
include/linux/memregion.h:52:5: warning: no previous prototype for 'cpu_cache_invalidate_memregion' [-Wmissing-prototypes]
52 | int cpu_cache_invalidate_memregion(int res_desc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/memregion.h: In function 'cpu_cache_invalidate_memregion':
>> include/linux/memregion.h:54:9: error: implicit declaration of function 'WARN_ON_ONCE' [-Werror=implicit-function-declaration]
54 | WARN_ON_ONCE("CPU cache invalidation required");
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/WARN_ON_ONCE +54 include/linux/memregion.h
51
52 int cpu_cache_invalidate_memregion(int res_desc)
53 {
> 54 WARN_ON_ONCE("CPU cache invalidation required");
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [djiang:cxl-security 1/19] include/linux/memregion.h:54:9: error: implicit declaration of function 'WARN_ON_ONCE'
2022-09-21 17:39 [djiang:cxl-security 1/19] include/linux/memregion.h:54:9: error: implicit declaration of function 'WARN_ON_ONCE' kernel test robot
@ 2022-09-21 21:44 ` Davidlohr Bueso
0 siblings, 0 replies; 2+ messages in thread
From: Davidlohr Bueso @ 2022-09-21 21:44 UTC (permalink / raw)
To: kernel test robot; +Cc: kbuild-all, linux-kernel, Dave Jiang
On Thu, 22 Sep 2022, kernel test robot wrote:
>
> 51
> 52 int cpu_cache_invalidate_memregion(int res_desc)
> 53 {
> > 54 WARN_ON_ONCE("CPU cache invalidation required");
>
Looks like memregion.h needs to include kernel.h. I'll send a new version
along with EOPNOTSUPP return.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-21 22:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-21 17:39 [djiang:cxl-security 1/19] include/linux/memregion.h:54:9: error: implicit declaration of function 'WARN_ON_ONCE' kernel test robot
2022-09-21 21:44 ` Davidlohr Bueso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®