ACPI, x86: export acpi_[un]register_gsi()
PATCH 1/2 ACPI, x86: export acpi_[un]register_gsi()
From: Andy Shevchenko <[email protected]>
These functions might be called from modules as well so make sure they are exported. In addition we implement empty version of acpi_unregister_gsi() and remove the one from pci_irq.c.
---
Although there are no modules that use this currently, we are working on ACPI 5 device enumeration support that is going to use these functions and some of that code can be compiled as a module.
arch/x86/kernel/acpi/boot.c | 6 ++++++ drivers/acpi/pci_irq.c | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-)
arch/x86/kernel/acpi/boot.c +6 -0
@@ -574,6 +574,12 @@ int acpi_register_gsi(struct device *dev, u32 gsi, int trigger, int polarity)return irq; } +EXPORT_SYMBOL (acpi_register_gsi); + +void acpi_unregister_gsi (u32 gsi) +{ +} +EXPORT_SYMBOL (acpi_unregister_gsi);void __init acpi_set_irq_model_pic (void ) {
drivers/acpi/pci_irq.c +0 -5
@@ -495,11 +495,6 @@ int acpi_pci_irq_enable(struct pci_dev *dev)return 0 ; } -/* FIXME: implement x86/x86_64 version */ -void __attribute__ ((weak))acpi_unregister_gsi (u32 i) -{ -} -void acpi_pci_irq_disable (struct pci_dev *dev) {struct acpi_prt_entry *entry;
Signature · 1 line
1.7.12.4
PATCH 2/2 ACPI, ia64: export acpi_[un]register_gsi()
These functions might be called from modules as well so make sure they are exported.
--- arch/ia64/kernel/acpi.c | 2 ++ 1 file changed, 2 insertions(+)
arch/ia64/kernel/acpi.c +2 -0
@@ -633,6 +633,7 @@ int acpi_register_gsi(struct device *dev, u32 gsi, int triggering, int polarity) ACPI_EDGE_SENSITIVE) ? IOSAPIC_EDGE : IOSAPIC_LEVEL); } +EXPORT_SYMBOL (acpi_register_gsi);void acpi_unregister_gsi (u32 gsi) {
@@ -644,6 +645,7 @@ void acpi_unregister_gsi(u32 gsi)iosapic_unregister_intr (gsi); } +EXPORT_SYMBOL (acpi_unregister_gsi);static int __init acpi_parse_fadt (struct acpi_table_header *table) {
Signature · 1 line
1.7.12.4
Re: [PATCH 2/2] ACPI, ia64: export acpi_[un]register_gsi()
Quoted 13 lines · Mika Westerberg
These functions might be called from modules as well so make sure they are exported.
Signed-off-by Mika Westerberg <[email protected]>--- arch/ia64/kernel/acpi.c | 2 ++ 1 file changed, 2 insertions(+)arch/ia64/kernel/acpi.c +0
-0
arch/ia64/kernel/acpi.c int acpi_register_gsi(struct device *dev, u32 gsi, int triggering, int polarity) · line 636
Quoted 4 lines
arch/ia64/kernel/acpi.c +1
-0@@ -633,6 +633,7 @@ int acpi_register_gsi(struct device *dev, u32 gsi, int triggering, int polarity) ACPI_EDGE_SENSITIVE) ? IOSAPIC_EDGE : IOSAPIC_LEVEL); } +EXPORT_SYMBOL (acpi_register_gsi);
_GPL ?
Quoted 20 lines
arch/ia64/kernel/acpi.c +1
-0void acpi_unregister_gsi (u32 gsi) {@@ -644,6 +645,7 @@ void acpi_unregister_gsi(u32 gsi)iosapic_unregister_intr (gsi); } +EXPORT_SYMBOL (acpi_unregister_gsi);static int __init acpi_parse_fadt (struct acpi_table_header *table) {Signature · 7 lines
1.7.12.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Quoted 6 lines · Mika Westerberg
From: Andy Shevchenko <[email protected]>
These functions might be called from modules as well so make sure they are exported. In addition we implement empty version of
acpi_unregister_gsi()and remove the one frompci_irq.c.
Quoted 6 lines
Signed-off-by Andy Shevchenko <[email protected]>Signed-off-by Mika Westerberg <[email protected]>---
Although there are no modules that use this currently, we are working on ACPI 5 device enumeration support that is going to use these functions and some of that code can be compiled as a module.
So why not submit these patches together with those patches?
Thanks,
Ingo
Quoted 9 lines · Ingo Molnar
Quoted 6 lines · Mika Westerberg
From: Andy Shevchenko <[email protected]>
These functions might be called from modules as well so make sure they are exported. In addition we implement empty version of
acpi_unregister_gsi()and remove the one frompci_irq.c.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Andy Shevchenko <[email protected]>Signed-off-by Mika Westerberg <[email protected]>---
Although there are no modules that use this currently, we are working on ACPI 5 device enumeration support that is going to use these functions and some of that code can be compiled as a module.So why not submit these patches together with those patches?
Ok, we will do that. At the same time we change them to use _GPL version of the EXPORT_SYMBOL.
Thanks.
Quoted 22 lines · Mika Westerberg
From: Andy Shevchenko <[email protected]>
These functions might be called from modules as well so make sure they are exported. In addition we implement empty version of
acpi_unregister_gsi()and remove the one frompci_irq.c.Signed-off-by Andy Shevchenko <[email protected]>Signed-off-by Mika Westerberg <[email protected]>---
Although there are no modules that use this currently, we are working on ACPI 5 device enumeration support that is going to use these functions and some of that code can be compiled as a module.arch/x86/kernel/acpi/boot.c | 6 ++++++ drivers/acpi/pci_irq.c | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-)arch/x86/kernel/acpi/boot.c +0
-0
arch/x86/kernel/acpi/boot.c int acpi_register_gsi(struct device *dev, u32 gsi, int trigger, int polarity) · line 577
Quoted 4 lines
arch/x86/kernel/acpi/boot.c +1
-0@@ -574,6 +574,12 @@ int acpi_register_gsi(struct device *dev, u32 gsi, int trigger, int polarity)return irq; } +EXPORT_SYMBOL (acpi_register_gsi);
_GPL ?
Quoted 33 lines
arch/x86/kernel/acpi/boot.c +5
-0+ +void acpi_unregister_gsi (u32 gsi) +{ +} +EXPORT_SYMBOL (acpi_unregister_gsi);void __init acpi_set_irq_model_pic (void ) {drivers/acpi/pci_irq.c +0
-5@@ -495,11 +495,6 @@ int acpi_pci_irq_enable(struct pci_dev *dev)return 0 ; } -/* FIXME: implement x86/x86_64 version */ -void __attribute__ ((weak))acpi_unregister_gsi (u32 i) -{ -} -void acpi_pci_irq_disable (struct pci_dev *dev) {struct acpi_prt_entry *entry;Signature · 7 lines
1.7.12.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/