* [ammarfaizi2-block:arm64/linux/for-next/gettimeofday 2/3] arch/arm64/kernel/alternative.c:198:6: warning: no previous prototype for 'apply_alternatives_vdso'
@ 2022-09-10 3:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-10 3:49 UTC (permalink / raw)
To: Joey Gouly
Cc: kbuild-all, Ammar Faizi, GNU/Weeb Mailing List, linux-kernel,
Catalin Marinas
tree: https://github.com/ammarfaizi2/linux-block arm64/linux/for-next/gettimeofday
head: 9025cebf12d1763de36d5e09e2b0a1e4f9b13b28
commit: 4e3bca8f7cdd3b658ee7ad700fdce95b5e13a441 [2/3] arm64: alternative: patch alternatives in the vDSO
config: arm64-buildonly-randconfig-r001-20220907 (https://download.01.org/0day-ci/archive/20220910/[email protected]/config)
compiler: aarch64-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://github.com/ammarfaizi2/linux-block/commit/4e3bca8f7cdd3b658ee7ad700fdce95b5e13a441
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block arm64/linux/for-next/gettimeofday
git checkout 4e3bca8f7cdd3b658ee7ad700fdce95b5e13a441
# 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=arm64 SHELL=/bin/bash arch/arm64/kernel/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
>> arch/arm64/kernel/alternative.c:198:6: warning: no previous prototype for 'apply_alternatives_vdso' [-Wmissing-prototypes]
198 | void apply_alternatives_vdso(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/apply_alternatives_vdso +198 arch/arm64/kernel/alternative.c
197
> 198 void apply_alternatives_vdso(void)
199 {
200 struct alt_region region;
201 const struct elf64_hdr *hdr;
202 const struct elf64_shdr *shdr;
203 const struct elf64_shdr *alt;
204 DECLARE_BITMAP(all_capabilities, ARM64_NPATCHABLE);
205
206 bitmap_fill(all_capabilities, ARM64_NPATCHABLE);
207
208 hdr = (struct elf64_hdr *)vdso_start;
209 shdr = (void *)hdr + hdr->e_shoff;
210 alt = find_section(hdr, shdr, ".altinstructions");
211 if (!alt)
212 return;
213
214 region = (struct alt_region){
215 .begin = (void *)hdr + alt->sh_offset,
216 .end = (void *)hdr + alt->sh_offset + alt->sh_size,
217 };
218
219 __apply_alternatives(®ion, false, &all_capabilities[0]);
220 }
221
--
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-09-10 3:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-10 3:49 [ammarfaizi2-block:arm64/linux/for-next/gettimeofday 2/3] arch/arm64/kernel/alternative.c:198:6: warning: no previous prototype for 'apply_alternatives_vdso' 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