x86/vdso: Fix -Wmissing-prototypes warnings
authorBorislav Petkov (AMD) <bp@alien8.de>
Tue, 7 Feb 2023 15:13:24 +0000 (16:13 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 7 Feb 2023 17:23:17 +0000 (18:23 +0100)
commitdac0da428f8dfb23666ab4ea54a7768c152b857a
tree99e03ac20ecfd8364f284e50d528d6d392f6bb6a
parent877cff5296faa6ef312f8002216bbf73bea006c7
x86/vdso: Fix -Wmissing-prototypes warnings

Fix those:

  In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:4:
arch/x86/entry/vdso/vdso32/../vclock_gettime.c:70:5: warning: no previous prototype for ‘__vdso_clock_gettime64’ [-Wmissing-prototypes]
   70 | int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts)
      |

In file included from arch/x86/entry/vdso/vdso32/vgetcpu.c:3:
arch/x86/entry/vdso/vdso32/../vgetcpu.c:13:1: warning: no previous prototype for ‘__vdso_getcpu’ [-Wmissing-prototypes]
   13 | __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)
      | ^~~~~~~~~~~~~

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/202302070742.iYcnoJwk-lkp@intel.com
arch/x86/include/asm/vdso/gettimeofday.h
arch/x86/include/asm/vdso/processor.h