um: Fix VDSO compiler warning
authorJohannes Berg <johannes.berg@intel.com>
Fri, 23 Aug 2019 13:05:46 +0000 (15:05 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 15 Sep 2019 19:37:12 +0000 (21:37 +0200)
Fix a warning about the function type being wrong.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/x86/um/vdso/um_vdso.c

index ac9c02b..8918687 100644 (file)
@@ -47,7 +47,7 @@ time_t __vdso_time(time_t *t)
 
        return secs;
 }
-int time(time_t *t) __attribute__((weak, alias("__vdso_time")));
+time_t time(time_t *t) __attribute__((weak, alias("__vdso_time")));
 
 long
 __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused)