mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 19:42:26 +00:00
x86/irqflags: Provide a declaration for native_save_fl
It was reported that the commitd0a8d9378dis 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:d0a8d9378d("x86/paravirt: Make native_save_fl() extern inline"). Reported-by: David Laight <[email protected]> Reported-by: Jean Delvare <[email protected]> Signed-off-by: Nick Desaulniers <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
This commit is contained in:
committed by
Thomas Gleixner
parent
1b3a626436
commit
208cbb3255
@@ -13,6 +13,8 @@
|
||||
* Interrupt control:
|
||||
*/
|
||||
|
||||
/* Declaration required for gcc < 4.9 to prevent -Werror=missing-prototypes */
|
||||
extern inline unsigned long native_save_fl(void);
|
||||
extern inline unsigned long native_save_fl(void)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
Reference in New Issue
Block a user