diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2020-11-24 14:02:35 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2020-11-30 14:10:50 +0100 |
commit | 1ab3001b6efb78e0293f3f02307720f6094db1ae (patch) | |
tree | fcb03d1c2422a4eb66a7623d471093f28f0dfd10 /arch/s390/kernel/vdso64/getcpu.c | |
parent | 10e59217479d733ff50b6e8c6316ecffe8b857cb (diff) | |
download | linux-1ab3001b6efb78e0293f3f02307720f6094db1ae.tar.gz linux-1ab3001b6efb78e0293f3f02307720f6094db1ae.tar.bz2 linux-1ab3001b6efb78e0293f3f02307720f6094db1ae.zip |
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/getcpu.c')
-rw-r--r-- | arch/s390/kernel/vdso64/getcpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kernel/vdso64/getcpu.c b/arch/s390/kernel/vdso64/getcpu.c index a5da7a9eb43d..5b2bc7494d5b 100644 --- a/arch/s390/kernel/vdso64/getcpu.c +++ b/arch/s390/kernel/vdso64/getcpu.c @@ -4,6 +4,7 @@ #include <linux/compiler.h> #include <linux/getcpu.h> #include <asm/timex.h> +#include "vdso.h" int __s390_vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused) { |