From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758270AbbCDNex (ORCPT ); Wed, 4 Mar 2015 08:34:53 -0500 Received: from mail-pd0-f182.google.com ([209.85.192.182]:34194 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755904AbbCDNev (ORCPT ); Wed, 4 Mar 2015 08:34:51 -0500 From: Darshana Padmadas To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, josh@joshtriplett.org, Darshana Padmadas Subject: [PATCH 12/16] arch: x86: kernel: Add prototype for fixup_bad_iret in traps.c Date: Wed, 4 Mar 2015 19:02:14 +0530 Message-Id: <2dd978191ff1e1caa6f2ba367e7e5c927ce2b8c4.1425473428.git.darshanapadmadas@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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