Skip to contentSkip to conversation

ACPI: Cleanup <linux/acpi.h>

PATCH In review Jean Delvare 2 participants 2 messages Nov 7, 2007 – Nov 9, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: Cleanup <linux/acpi.h>

Two cleanups to <linux/acpi.h>:
* Stop defining acpi_mp_config, it isn't used anywhere.
* Discard nested "#ifdef CONFIG_ACPI", they are useless and error-prone.

---
Len, Andrew, this cleanup should go before the patches sent by Thomas Renninger. I'll send updated patches in a moment so that we no longer break the build for CONFIG_ACPI=n.

 include/linux/acpi.h |   14 --------------
 1 file changed, 14 deletions(-)
include/linux/acpi.h +0 -14
@@ -42,8 +42,6 @@
 #include <asm/acpi.h>
 
 
-#ifdef CONFIG_ACPI
-
 enum acpi_irq_model_id {
 	ACPI_IRQ_MODEL_PIC = 0,
 	ACPI_IRQ_MODEL_IOAPIC,
@@ -115,20 +113,12 @@ int acpi_unmap_lsapic(int cpu);
 int acpi_register_ioapic(acpi_handle handle, u64 phys_addr, u32 gsi_base);
 int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base);
 
-extern int acpi_mp_config;
-
 extern struct acpi_mcfg_allocation *pci_mmcfg_config;
 extern int pci_mmcfg_config_num;
 
 extern int sbf_port;
 extern unsigned long acpi_realmode_flags;
 
-#else	/* !CONFIG_ACPI */
-
-#define acpi_mp_config	0
-
-#endif 	/* !CONFIG_ACPI */
-
 int acpi_register_gsi (u32 gsi, int triggering, int polarity);
 int acpi_gsi_to_irq (u32 gsi, unsigned int *irq);
 
@@ -139,8 +129,6 @@ int acpi_gsi_to_irq (u32 gsi, unsigned i
  */
 void acpi_unregister_gsi (u32 gsi);
 
-#ifdef CONFIG_ACPI
-
 struct acpi_prt_entry {
 	struct list_head	node;
 	struct acpi_pci_id	id;
@@ -173,8 +161,6 @@ struct acpi_pci_driver {
 int acpi_pci_register_driver(struct acpi_pci_driver *driver);
 void acpi_pci_unregister_driver(struct acpi_pci_driver *driver);
 
-#endif /* CONFIG_ACPI */
-
 #ifdef CONFIG_ACPI_EC
 
 extern int ec_read(u8 addr, u8 *val);
Signature · 2 lines
Jean Delvare
Suse L3
#1 lore raw
Quoted 4 lines · On Wed, 7 Nov 2007 14:20:56 +0100 Jean Delvare <[email protected]> wrote:

Two cleanups to <linux/acpi.h>:
* Stop defining acpi_mp_config, it isn't used anywhere.
* Discard nested "#ifdef CONFIG_ACPI", they are useless and error-prone.

It's not a good time to be doing not-strictly-needed cleanup patches in there.

Quoted 5 lines

---
Len, Andrew, this cleanup should go before the patches sent by Thomas Renninger. I'll send updated patches in a moment so that we no longer break the build for CONFIG_ACPI=n.

I'm quite confused. I have the following acpi-affecting patches for this work:

small-acpica-extension-to-be-able-to-store-the-name-of.patch small-acpica-extension-to-be-able-to-store-the-name-of-fix.patch export-acpi_check_resource_conflict.patch export-acpi_check_resource_conflict-fix.patch mm-only-enforce-acpi-resource-conflict-checks.patch

But now I see two new patches called

Subject: [PATCH] Provide acpi_check_{mem_}region (update)
Subject: [PATCH] ACPI: Export acpi_check_resource_conflict() (update #2)

<checks>

OK, the first is a renamed version of
small-acpica-extension-to-be-able-to-store-the-name-of.patch, perhaps of small-acpica-extension-to-be-able-to-store-the-name-of.patch+small-acpica-extension-to-be-able-to-store-the-name-of-fix.patch. I guess I need to dive into the diffs to find out whether the fix got lost
or not.

Please don't rename patches.

<looks more>

OK, afacit all we've done here is added this cleanup patch and then churned
all the other patches on top of it. After fixing rejects in the
now-combined small-acpica-extension-to-be-able-to-store-the-name-of.patch+small-acpica-extension-to-be-able-to-store-the-name-of-fix.patch I didn't need "Provide acpi_check_{mem_}region (update)" and "ACPI: Export
acpi_check_resource_conflict() (update #2)" is just a little cleanup.