x86/irqflags: Provide a declaration for native_save_fl
authorNick Desaulniers <ndesaulniers@google.com>
Fri, 3 Aug 2018 17:05:50 +0000 (10:05 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 5 Aug 2018 20:30:37 +0000 (22:30 +0200)
commit208cbb32558907f68b3b2a081ca2337ac3744794
treec8338dab8426b7cc9d4442ddac9ba25a2d45600b
parent1b3a62643660020cdc68e6139a010c06e8fc96c7
x86/irqflags: Provide a declaration for native_save_fl

It was reported that the commit d0a8d9378d16 is causing users of gcc < 4.9
to observe -Werror=missing-prototypes errors.

Indeed, it seems that:
extern inline unsigned long native_save_fl(void) { return 0; }

compiled with -Werror=missing-prototypes produces this warning in gcc <
4.9, but not gcc >= 4.9.

Fixes: d0a8d9378d16 ("x86/paravirt: Make native_save_fl() extern inline").
Reported-by: David Laight <david.laight@aculab.com>
Reported-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: hpa@zytor.com
Cc: jgross@suse.com
Cc: kstewart@linuxfoundation.org
Cc: gregkh@linuxfoundation.org
Cc: boris.ostrovsky@oracle.com
Cc: astrachan@google.com
Cc: mka@chromium.org
Cc: arnd@arndb.de
Cc: tstellar@redhat.com
Cc: sedat.dilek@gmail.com
Cc: David.Laight@aculab.com
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20180803170550.164688-1-ndesaulniers@google.com
arch/x86/include/asm/irqflags.h