traps.c defines the function fixup_bad_iret used in this file only and in some assembly. No header file declares this function so, add a prototype for fixup_bad_iret above the function definition.
This also satisfies the following gcc(-Wmissing-prototypes) warning: arch/x86/kernel/traps.c:500:24: warning: no previous prototype for ‘fixup_bad_iret’ [-Wmissing-prototypes] Signed-off-by: Darshana Padmadas <darshanapadma...@gmail.com> --- arch/x86/kernel/traps.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index fb4cb6a..ab015cd 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -497,6 +497,9 @@ struct bad_iret_stack { }; asmlinkage __visible notrace +struct bad_iret_stack *fixup_bad_iret(struct bad_iret_stack *s); + +asmlinkage __visible notrace struct bad_iret_stack *fixup_bad_iret(struct bad_iret_stack *s) { /* -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/