Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1328661
| From | Paul Gortmaker <paul.gortmaker@windriver.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/5] ARM: add EXPORT_SYMBOL of hook_fault_code for PCI host modularization |
| Date | 2016-02-08 01:10 +0100 |
| Message-ID | <qZHyW-5BD-9@gated-at.bofh.it> (permalink) |
| References | <qZHyW-5BD-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
In a discussion of a previous patch set[1], it was suggested that
modularizing some of the PCI host support would be good to keep
multi platform bzImage sizes smaller.
Two of the files that are candidates for conversion to tristate
from bool are:
drivers/pci/host/pci-imx6.c
drivers/pci/host/pci-keystone.c
However, doing the conversion reveals that they are going to fail
at modpost time since hook_fault_code isn't currently exported.
Since we are now going to export it we also need to remove the
__init tag, as the fcn needs to be present at insmod time.
[1] https://lkml.kernel.org/r/20160108203102.GH5354@localhost
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
arch/arm/mm/fault.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
index daafcf121ce0..e0696a5ecc9b 100644
--- a/arch/arm/mm/fault.c
+++ b/arch/arm/mm/fault.c
@@ -525,7 +525,7 @@ struct fsr_info {
#include "fsr-2level.c"
#endif
-void __init
+void
hook_fault_code(int nr, int (*fn)(unsigned long, unsigned int, struct pt_regs *),
int sig, int code, const char *name)
{
@@ -537,6 +537,7 @@ hook_fault_code(int nr, int (*fn)(unsigned long, unsigned int, struct pt_regs *)
fsr_info[nr].code = code;
fsr_info[nr].name = name;
}
+EXPORT_SYMBOL(hook_fault_code);
/*
* Dispatch a data abort to the relevant handler.
--
2.6.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/5] ARM: add EXPORT_SYMBOL of hook_fault_code for PCI host modularization Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-02-08 01:10 +0100
Re: [PATCH 1/5] ARM: add EXPORT_SYMBOL of hook_fault_code for PCI host modularization Arnd Bergmann <arnd@arndb.de> - 2016-02-08 11:00 +0100
Re: [PATCH 1/5] ARM: add EXPORT_SYMBOL of hook_fault_code for PCI host modularization Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-02-08 17:50 +0100
Re: [PATCH 1/5] ARM: add EXPORT_SYMBOL of hook_fault_code for PCI host modularization Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-02-08 18:30 +0100
Re: [PATCH 1/5] ARM: add EXPORT_SYMBOL of hook_fault_code for PCI host modularization Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-02-08 18:40 +0100
csiph-web