arch: um: fix VDSO compiler warning
diff mbox series

Message ID 20190823130546.15787-1-johannes@sipsolutions.net
State Accepted
Headers show
Series
  • arch: um: fix VDSO compiler warning
Related show

Commit Message

Johannes Berg Aug. 23, 2019, 1:05 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

Fix a warning about the function type being wrong.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 arch/x86/um/vdso/um_vdso.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/arch/x86/um/vdso/um_vdso.c b/arch/x86/um/vdso/um_vdso.c
index ac9c02b9d92c..891868756a51 100644
--- a/arch/x86/um/vdso/um_vdso.c
+++ b/arch/x86/um/vdso/um_vdso.c
@@ -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)