diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-01-12 17:44:09 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-01-12 17:44:09 -0500 |
| commit | 98feb7cc61c50fe0fa36eeb994d5db527ca9e103 (patch) | |
| tree | 3edae44f2dd6fe7b431786ca9c308250f1345511 /include/linux | |
| parent | 7e22e91102c6b9df7c4ae2168910e19d2bb14cd6 (diff) | |
| parent | f8a571b2a128a1697624c1b132f3af07848ebbcf (diff) | |
Merge branch 'acpi-cleanup'
* acpi-cleanup: (22 commits)
ACPI / tables: Return proper error codes from acpi_table_parse() and fix comment.
ACPI / tables: Check if id is NULL in acpi_table_parse()
ACPI / proc: Include appropriate header file in proc.c
ACPI / EC: Remove unused functions and add prototype declaration in internal.h
ACPI / dock: Include appropriate header file in dock.c
ACPI / PCI: Include appropriate header file in pci_link.c
ACPI / PCI: Include appropriate header file in pci_slot.c
ACPI / EC: Mark the function acpi_ec_add_debugfs() as static in ec_sys.c
ACPI / NVS: Include appropriate header file in nvs.c
ACPI / OSL: Mark the function acpi_table_checksum() as static
ACPI / processor: initialize a variable to silence compiler warning
ACPI / processor: use ACPI_COMPANION() to get ACPI device
ACPI: correct minor typos
ACPI / sleep: Drop redundant acpi_disabled check
ACPI / dock: Drop redundant acpi_disabled check
ACPI / table: Replace '1' with specific error return values
ACPI: remove trailing whitespace
ACPI / IBFT: Fix incorrect <acpi/acpi.h> inclusion in iSCSI boot firmware module
ACPI / i915: Fix incorrect <acpi/acpi.h> inclusions via <linux/acpi_io.h>
SFI / ACPI: Fix warnings reported during builds with W=1
...
Conflicts:
drivers/acpi/nvs.c
drivers/hwmon/asus_atk0110.c
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/acpi.h | 3 | ||||
| -rw-r--r-- | include/linux/acpi_io.h | 18 | ||||
| -rw-r--r-- | include/linux/ide.h | 8 | ||||
| -rw-r--r-- | include/linux/iscsi_ibft.h | 2 | ||||
| -rw-r--r-- | include/linux/pci_hotplug.h | 3 | ||||
| -rw-r--r-- | include/linux/sfi_acpi.h | 5 | ||||
| -rw-r--r-- | include/linux/tboot.h | 2 |
7 files changed, 11 insertions, 30 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index d9099b15b472..7aaf7315d33d 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -42,6 +42,7 @@ | |||
| 42 | #include <acpi/acpi_bus.h> | 42 | #include <acpi/acpi_bus.h> |
| 43 | #include <acpi/acpi_drivers.h> | 43 | #include <acpi/acpi_drivers.h> |
| 44 | #include <acpi/acpi_numa.h> | 44 | #include <acpi/acpi_numa.h> |
| 45 | #include <acpi/acpi_io.h> | ||
| 45 | #include <asm/acpi.h> | 46 | #include <asm/acpi.h> |
| 46 | 47 | ||
| 47 | static inline acpi_handle acpi_device_handle(struct acpi_device *adev) | 48 | static inline acpi_handle acpi_device_handle(struct acpi_device *adev) |
| @@ -460,7 +461,7 @@ struct acpi_table_header; | |||
| 460 | static inline int acpi_table_parse(char *id, | 461 | static inline int acpi_table_parse(char *id, |
| 461 | int (*handler)(struct acpi_table_header *)) | 462 | int (*handler)(struct acpi_table_header *)) |
| 462 | { | 463 | { |
| 463 | return -1; | 464 | return -ENODEV; |
| 464 | } | 465 | } |
| 465 | 466 | ||
| 466 | static inline int acpi_nvs_register(__u64 start, __u64 size) | 467 | static inline int acpi_nvs_register(__u64 start, __u64 size) |
diff --git a/include/linux/acpi_io.h b/include/linux/acpi_io.h deleted file mode 100644 index b0ffa219993e..000000000000 --- a/include/linux/acpi_io.h +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | #ifndef _ACPI_IO_H_ | ||
| 2 | #define _ACPI_IO_H_ | ||
| 3 | |||
| 4 | #include <linux/io.h> | ||
| 5 | #include <acpi/acpi.h> | ||
| 6 | |||
| 7 | static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys, | ||
| 8 | acpi_size size) | ||
| 9 | { | ||
| 10 | return ioremap_cache(phys, size); | ||
| 11 | } | ||
| 12 | |||
| 13 | void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size); | ||
| 14 | |||
| 15 | int acpi_os_map_generic_address(struct acpi_generic_address *addr); | ||
| 16 | void acpi_os_unmap_generic_address(struct acpi_generic_address *addr); | ||
| 17 | |||
| 18 | #endif | ||
diff --git a/include/linux/ide.h b/include/linux/ide.h index 46a14229a162..93b5ca754b5b 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
| @@ -18,14 +18,10 @@ | |||
| 18 | #include <linux/completion.h> | 18 | #include <linux/completion.h> |
| 19 | #include <linux/pm.h> | 19 | #include <linux/pm.h> |
| 20 | #include <linux/mutex.h> | 20 | #include <linux/mutex.h> |
| 21 | #ifdef CONFIG_BLK_DEV_IDEACPI | ||
| 22 | #include <acpi/acpi.h> | ||
| 23 | #endif | ||
| 24 | #include <asm/byteorder.h> | ||
| 25 | #include <asm/io.h> | ||
| 26 | |||
| 27 | /* for request_sense */ | 21 | /* for request_sense */ |
| 28 | #include <linux/cdrom.h> | 22 | #include <linux/cdrom.h> |
| 23 | #include <asm/byteorder.h> | ||
| 24 | #include <asm/io.h> | ||
| 29 | 25 | ||
| 30 | #if defined(CONFIG_CRIS) || defined(CONFIG_FRV) || defined(CONFIG_MN10300) | 26 | #if defined(CONFIG_CRIS) || defined(CONFIG_FRV) || defined(CONFIG_MN10300) |
| 31 | # define SUPPORT_VLB_SYNC 0 | 27 | # define SUPPORT_VLB_SYNC 0 |
diff --git a/include/linux/iscsi_ibft.h b/include/linux/iscsi_ibft.h index 8ba7e5b9d62c..605cc5c333d9 100644 --- a/include/linux/iscsi_ibft.h +++ b/include/linux/iscsi_ibft.h | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | #ifndef ISCSI_IBFT_H | 21 | #ifndef ISCSI_IBFT_H |
| 22 | #define ISCSI_IBFT_H | 22 | #define ISCSI_IBFT_H |
| 23 | 23 | ||
| 24 | #include <acpi/acpi.h> | 24 | #include <linux/acpi.h> |
| 25 | 25 | ||
| 26 | /* | 26 | /* |
| 27 | * Logical location of iSCSI Boot Format Table. | 27 | * Logical location of iSCSI Boot Format Table. |
diff --git a/include/linux/pci_hotplug.h b/include/linux/pci_hotplug.h index a2e2f1d17e16..5f2e559af6b0 100644 --- a/include/linux/pci_hotplug.h +++ b/include/linux/pci_hotplug.h | |||
| @@ -175,8 +175,7 @@ struct hotplug_params { | |||
| 175 | }; | 175 | }; |
| 176 | 176 | ||
| 177 | #ifdef CONFIG_ACPI | 177 | #ifdef CONFIG_ACPI |
| 178 | #include <acpi/acpi.h> | 178 | #include <linux/acpi.h> |
| 179 | #include <acpi/acpi_bus.h> | ||
| 180 | int pci_get_hp_params(struct pci_dev *dev, struct hotplug_params *hpp); | 179 | int pci_get_hp_params(struct pci_dev *dev, struct hotplug_params *hpp); |
| 181 | int acpi_get_hp_hw_control_from_firmware(struct pci_dev *dev, u32 flags); | 180 | int acpi_get_hp_hw_control_from_firmware(struct pci_dev *dev, u32 flags); |
| 182 | int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle); | 181 | int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle); |
diff --git a/include/linux/sfi_acpi.h b/include/linux/sfi_acpi.h index 631af63af42d..4723bbfa1c26 100644 --- a/include/linux/sfi_acpi.h +++ b/include/linux/sfi_acpi.h | |||
| @@ -59,8 +59,11 @@ | |||
| 59 | #ifndef _LINUX_SFI_ACPI_H | 59 | #ifndef _LINUX_SFI_ACPI_H |
| 60 | #define _LINUX_SFI_ACPI_H | 60 | #define _LINUX_SFI_ACPI_H |
| 61 | 61 | ||
| 62 | #include <linux/acpi.h> | ||
| 63 | #include <linux/sfi.h> | ||
| 64 | |||
| 62 | #ifdef CONFIG_SFI | 65 | #ifdef CONFIG_SFI |
| 63 | #include <acpi/acpi.h> /* struct acpi_table_header */ | 66 | #include <acpi/acpi.h> /* FIXME: inclusion should be removed */ |
| 64 | 67 | ||
| 65 | extern int sfi_acpi_table_parse(char *signature, char *oem_id, | 68 | extern int sfi_acpi_table_parse(char *signature, char *oem_id, |
| 66 | char *oem_table_id, | 69 | char *oem_table_id, |
diff --git a/include/linux/tboot.h b/include/linux/tboot.h index c75128bed5fa..9a54b331f938 100644 --- a/include/linux/tboot.h +++ b/include/linux/tboot.h | |||
| @@ -34,7 +34,7 @@ enum { | |||
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| 36 | #ifdef CONFIG_INTEL_TXT | 36 | #ifdef CONFIG_INTEL_TXT |
| 37 | #include <acpi/acpi.h> | 37 | #include <linux/acpi.h> |
| 38 | /* used to communicate between tboot and the launched kernel */ | 38 | /* used to communicate between tboot and the launched kernel */ |
| 39 | 39 | ||
| 40 | #define TB_KEY_SIZE 64 /* 512 bits */ | 40 | #define TB_KEY_SIZE 64 /* 512 bits */ |
