* [ammarfaizi2-block:bpf/bpf-next/master 251/258] kernel/bpf/core.c:847:9: error: use of undeclared identifier 'PMD_SIZE'
@ 2022-03-21 15:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-21 15:35 UTC (permalink / raw)
To: Song Liu
Cc: llvm, kbuild-all, GNU/Weeb Mailing List, linux-kernel,
Alexei Starovoitov
tree: https://github.com/ammarfaizi2/linux-block bpf/bpf-next/master
head: 7ada3787e91c89b0aa7abf47682e8e587b855c13
commit: ef078600eec20f20eb7833cf597d4a5edf2953c1 [251/258] bpf: Select proper size for bpf_prog_pack
config: arm-randconfig-c002-20220321 (https://download.01.org/0day-ci/archive/20220321/[email protected]/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 85e9b2687a13d1908aa86d1b89c5ce398a06cd39)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/ammarfaizi2/linux-block/commit/ef078600eec20f20eb7833cf597d4a5edf2953c1
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block bpf/bpf-next/master
git checkout ef078600eec20f20eb7833cf597d4a5edf2953c1
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
All errors (new ones prefixed by >>):
>> kernel/bpf/core.c:847:9: error: use of undeclared identifier 'PMD_SIZE'
size = PMD_SIZE * num_online_nodes();
^
kernel/bpf/core.c:1629:12: warning: no previous prototype for function 'bpf_probe_read_kernel' [-Wmissing-prototypes]
u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
^
kernel/bpf/core.c:1629:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
^
static
1 warning and 1 error generated.
vim +/PMD_SIZE +847 kernel/bpf/core.c
841
842 static size_t select_bpf_prog_pack_size(void)
843 {
844 size_t size;
845 void *ptr;
846
> 847 size = PMD_SIZE * num_online_nodes();
848 ptr = module_alloc(size);
849
850 /* Test whether we can get huge pages. If not just use PAGE_SIZE
851 * packs.
852 */
853 if (!ptr || !is_vm_area_hugepages(ptr))
854 size = PAGE_SIZE;
855
856 vfree(ptr);
857 return size;
858 }
859
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-21 15:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-21 15:35 [ammarfaizi2-block:bpf/bpf-next/master 251/258] kernel/bpf/core.c:847:9: error: use of undeclared identifier 'PMD_SIZE' 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