* [intel-tdx:guest-unaccepted-memory 6/17] fs/proc/meminfo.c:156:5: warning: "CONFIG_UNACCEPTED_MEMORY" is not defined, evaluates to 0
@ 2022-06-14 3:18 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-06-14 3:18 UTC (permalink / raw)
To: Kirill A. Shutemov; +Cc: kbuild-all, linux-kernel
tree: https://github.com/intel/tdx.git guest-unaccepted-memory
head: 7a902d05477ac272558ba731d903c6b0c9d72903
commit: e4fbeb9c5cb4aa02fcd17388eef920f389fc83ea [6/17] mm: Report unaccepted memory in meminfo
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220614/202206141126.wBfKM00X-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/e4fbeb9c5cb4aa02fcd17388eef920f389fc83ea
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest-unaccepted-memory
git checkout e4fbeb9c5cb4aa02fcd17388eef920f389fc83ea
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash fs/proc/ mm/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
fs/proc/meminfo.c:22:28: warning: no previous prototype for 'arch_report_meminfo' [-Wmissing-prototypes]
22 | void __attribute__((weak)) arch_report_meminfo(struct seq_file *m)
| ^~~~~~~~~~~~~~~~~~~
fs/proc/meminfo.c: In function 'meminfo_proc_show':
>> fs/proc/meminfo.c:156:5: warning: "CONFIG_UNACCEPTED_MEMORY" is not defined, evaluates to 0 [-Wundef]
156 | #if CONFIG_UNACCEPTED_MEMORY
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/CONFIG_UNACCEPTED_MEMORY +156 fs/proc/meminfo.c
155
> 156 #if CONFIG_UNACCEPTED_MEMORY
157 show_val_kb(m, "UnacceptedPages:",
158 global_node_page_state(NR_UNACCEPTED));
159 #endif
160
161 hugetlb_report_meminfo(m);
162
163 arch_report_meminfo(m);
164
165 return 0;
166 }
167
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 2+ messages in thread* [intel-tdx:guest-unaccepted-memory 6/17] fs/proc/meminfo.c:156:5: warning: 'CONFIG_UNACCEPTED_MEMORY' is not defined, evaluates to 0
@ 2022-06-14 3:50 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-06-14 3:50 UTC (permalink / raw)
To: Kirill A. Shutemov; +Cc: llvm, kbuild-all, linux-kernel
tree: https://github.com/intel/tdx.git guest-unaccepted-memory
head: 7a902d05477ac272558ba731d903c6b0c9d72903
commit: e4fbeb9c5cb4aa02fcd17388eef920f389fc83ea [6/17] mm: Report unaccepted memory in meminfo
config: x86_64-randconfig-a002-20220613 (https://download.01.org/0day-ci/archive/20220614/202206141159.Vdw6s1IH-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c97436f8b6e2718286e8496faf53a2c800e281cf)
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/intel/tdx/commit/e4fbeb9c5cb4aa02fcd17388eef920f389fc83ea
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest-unaccepted-memory
git checkout e4fbeb9c5cb4aa02fcd17388eef920f389fc83ea
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/proc/ mm/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> fs/proc/meminfo.c:156:5: warning: 'CONFIG_UNACCEPTED_MEMORY' is not defined, evaluates to 0 [-Wundef]
#if CONFIG_UNACCEPTED_MEMORY
^
1 warning generated.
vim +/CONFIG_UNACCEPTED_MEMORY +156 fs/proc/meminfo.c
155
> 156 #if CONFIG_UNACCEPTED_MEMORY
157 show_val_kb(m, "UnacceptedPages:",
158 global_node_page_state(NR_UNACCEPTED));
159 #endif
160
161 hugetlb_report_meminfo(m);
162
163 arch_report_meminfo(m);
164
165 return 0;
166 }
167
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-14 3:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14 3:18 [intel-tdx:guest-unaccepted-memory 6/17] fs/proc/meminfo.c:156:5: warning: "CONFIG_UNACCEPTED_MEMORY" is not defined, evaluates to 0 kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2022-06-14 3:50 [intel-tdx:guest-unaccepted-memory 6/17] fs/proc/meminfo.c:156:5: warning: 'CONFIG_UNACCEPTED_MEMORY' " kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox