summaryrefslogtreecommitdiff
path: root/arch/s390/kernel/vdso64/vdso64_generic.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2020-11-24 16:02:35 +0300
committerHeiko Carstens <hca@linux.ibm.com>2020-11-30 16:10:50 +0300
commit1ab3001b6efb78e0293f3f02307720f6094db1ae (patch)
treefcb03d1c2422a4eb66a7623d471093f28f0dfd10 /arch/s390/kernel/vdso64/vdso64_generic.c
parent10e59217479d733ff50b6e8c6316ecffe8b857cb (diff)
downloadlinux-1ab3001b6efb78e0293f3f02307720f6094db1ae.tar.xz
s390/vdso: add missing prototypes for vdso functions
clang W=1 warns about missing prototypes: >> arch/s390/kernel/vdso64/getcpu.c:8:5: warning: no previous prototype for function '__s390_vdso_getcpu' [-Wmissing-prototypes] int __s390_vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused) ^ Add a local header file in order to get rid of this warnings. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/vdso64/vdso64_generic.c')
-rw-r--r--arch/s390/kernel/vdso64/vdso64_generic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kernel/vdso64/vdso64_generic.c b/arch/s390/kernel/vdso64/vdso64_generic.c
index a8cef7e4d137..a9aa75643c08 100644
--- a/arch/s390/kernel/vdso64/vdso64_generic.c
+++ b/arch/s390/kernel/vdso64/vdso64_generic.c
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#include "../../../../lib/vdso/gettimeofday.c"
+#include "vdso.h"
int __s390_vdso_gettimeofday(struct __kernel_old_timeval *tv,
struct timezone *tz)