Skip to contentSkip to conversation

vgetcpu.c W=1 error (no previous prototype)

DISCUSSION Bagas Sanjaya 1 participant 1 message Mar 20, 2023

lore
Share & tools
lore
#0 lore raw

Hi,

Building x86_64_defconfig with W=1 on GCC 10.2.0 (Debian 11), I see missing prototypes error:

CC arch/x86/entry/vdso/vgetcpu.o
arch/x86/entry/vdso/vgetcpu.c:13:1: error: no previous prototype for ‘__vdso_getcpu’ [-Werror=missing-prototypes]
13 | __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)

      | ^~~~~~~~~~~~~

cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:252: arch/x86/entry/vdso/vgetcpu.o] Error 1

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara