Skip to content

Commit dac0da4

Browse files
committed
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 <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 877cff5 commit dac0da4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

arch/x86/include/asm/vdso/gettimeofday.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ u64 vdso_calc_delta(u64 cycles, u64 last, u64 mask, u32 mult)
318318
}
319319
#define vdso_calc_delta vdso_calc_delta
320320

321+
int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts);
322+
321323
#endif /* !__ASSEMBLY__ */
322324

323325
#endif /* __ASM_VDSO_GETTIMEOFDAY_H */

arch/x86/include/asm/vdso/processor.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ static __always_inline void cpu_relax(void)
1818
rep_nop();
1919
}
2020

21+
struct getcpu_cache;
22+
23+
notrace long __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused);
24+
2125
#endif /* __ASSEMBLY__ */
2226

2327
#endif /* __ASM_VDSO_PROCESSOR_H */

0 commit comments

Comments
 (0)