From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751583AbdAVQdY (ORCPT ); Sun, 22 Jan 2017 11:33:24 -0500 Received: from mail5.windriver.com ([192.103.53.11]:58876 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751328AbdAVQdK (ORCPT ); Sun, 22 Jan 2017 11:33:10 -0500 From: Paul Gortmaker To: , CC: Paul Gortmaker , Tony Luck , Fenghua Yu , Al Viro , Subject: [PATCH 02/20] ia64: ensure exception table search users include extable.h Date: Sun, 22 Jan 2017 11:32:26 -0500 Message-ID: <20170122163244.11740-3-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170122163244.11740-1-paul.gortmaker@windriver.com> References: <20170122163244.11740-1-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We start with a delete of a duplicate prototype in asm/exception.h that no longer needs to exist, as it duplicates content in extable.h and since that header is so small, there is no point trying to avoid using it. Then we make sure anyone using search_exception_tables directly or via the ia64_done_with_exception macro has included extable.h In the process, we remove an include of moduleloader.h that was apparently not really required; it would have been fetching in module.h and hence the previous location of the exception search function prototypes, but we need not rely on that anymore. Cc: Tony Luck Cc: Fenghua Yu Cc: Al Viro Cc: linux-ia64@vger.kernel.org Signed-off-by: Paul Gortmaker --- arch/ia64/include/asm/exception.h | 1 - arch/ia64/kernel/kprobes.c | 2 +- arch/ia64/kernel/traps.c | 3 ++- arch/ia64/kernel/unaligned.c | 1 + arch/ia64/mm/fault.c | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/ia64/include/asm/exception.h b/arch/ia64/include/asm/exception.h index d90236090e8c..6bb246dcdaeb 100644 --- a/arch/ia64/include/asm/exception.h +++ b/arch/ia64/include/asm/exception.h @@ -19,7 +19,6 @@ struct exception_table_entry; extern void ia64_handle_exception(struct pt_regs *regs, const struct exception_table_entry *e); -extern const struct exception_table_entry *search_exception_tables(unsigned long addr); #define ia64_done_with_exception(regs) \ ({ \ diff --git a/arch/ia64/kernel/kprobes.c b/arch/ia64/kernel/kprobes.c index 55b18e1b67a8..f5f3a5e6fcd1 100644 --- a/arch/ia64/kernel/kprobes.c +++ b/arch/ia64/kernel/kprobes.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include diff --git a/arch/ia64/kernel/traps.c b/arch/ia64/kernel/traps.c index d3e1f1ee465f..8981ce98afb3 100644 --- a/arch/ia64/kernel/traps.c +++ b/arch/ia64/kernel/traps.c @@ -12,7 +12,8 @@ #include #include #include /* For unblank_screen() */ -#include /* for EXPORT_SYMBOL */ +#include +#include #include #include #include /* for ssleep() */ diff --git a/arch/ia64/kernel/unaligned.c b/arch/ia64/kernel/unaligned.c index e697403b0ec1..99348d7f2255 100644 --- a/arch/ia64/kernel/unaligned.c +++ b/arch/ia64/kernel/unaligned.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include diff --git a/arch/ia64/mm/fault.c b/arch/ia64/mm/fault.c index 52b41dad9704..7f2feb21753c 100644 --- a/arch/ia64/mm/fault.c +++ b/arch/ia64/mm/fault.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include -- 2.11.0