include: replace asm headers to linux
PATCH 1/1 include: replace asm headers to linux
Use #include <linux/uaccess.h> instead of <asm/uaccess.h> Use #include <linux/types.h> instead of <asm/types.h>
--- include/acpi/platform/aclinux.h | 2 +- include/asm-generic/bitops/__ffs.h | 2 +- include/asm-generic/bitops/__fls.h | 2 +- include/asm-generic/bitops/arch_hweight.h | 2 +- include/asm-generic/bitops/atomic.h | 6 +++--- include/asm-generic/bitops/count_zeros.h | 2 +- include/asm-generic/bitops/fls64.h | 2 +- include/asm-generic/bitops/le.h | 2 +- include/asm-generic/bitops/non-atomic.h | 2 +- include/asm-generic/bitops/sched.h | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-)
include/acpi/platform/aclinux.h +1 -1
@@ -71,7 +71,7 @@#ifdef EXPORT_ACPI_INTERFACES #include <linux/export.h> #endif -#include <asm/acpi.h> +#include <linux/acpi.h> /* Host-dependent types and defines for in-kernel ACPICA */
include/asm-generic/bitops/__ffs.h +1 -1
@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS___FFS_H_#define _ASM_GENERIC_BITOPS___FFS_H_ -#include <asm/types.h> +#include <linux/types.h> /** * __ffs - find first bit in word.
include/asm-generic/bitops/__fls.h +1 -1
@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS___FLS_H_#define _ASM_GENERIC_BITOPS___FLS_H_ -#include <asm/types.h> +#include <linux/types.h> /** * __fls - find last (most-significant) set bit in a long word
include/asm-generic/bitops/arch_hweight.h +1 -1
@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_#define _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_ -#include <asm/types.h> +#include <linux/types.h> static inline unsigned int __arch_hweight32 (unsigned int w) {
include/asm-generic/bitops/atomic.h +3 -3
@@ -1,12 +1,12 @@#ifndef _ASM_GENERIC_BITOPS_ATOMIC_H_#define _ASM_GENERIC_BITOPS_ATOMIC_H_ -#include <asm/types.h> +#include <linux/types.h> #include <linux/irqflags.h> #ifdef CONFIG_SMP -#include <asm/spinlock.h> -#include <asm/cache.h> /* we use L1_CACHE_BYTES */ +#include <linux/spinlock.h> +#include <linux/cache.h> /* we use L1_CACHE_BYTES */ /* Use an array of spinlocks for our atomic_ts. * Hash function to index into a different SPINLOCK.
include/asm-generic/bitops/count_zeros.h +1 -1
@@ -12,7 +12,7 @@#ifndef _ASM_GENERIC_BITOPS_COUNT_ZEROS_H_#define _ASM_GENERIC_BITOPS_COUNT_ZEROS_H_ -#include <asm/bitops.h> +#include <linux/bitops.h> /** * count_leading_zeros - Count the number of zeros from the MSB back
include/asm-generic/bitops/fls64.h +1 -1
@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS_FLS64_H_#define _ASM_GENERIC_BITOPS_FLS64_H_ -#include <asm/types.h> +#include <linux/types.h> /** * fls64 - find last set bit in a 64-bit word
include/asm-generic/bitops/le.h +1 -1
@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS_LE_H_#define _ASM_GENERIC_BITOPS_LE_H_ -#include <asm/types.h> +#include <linux/types.h> #include <asm/byteorder.h> #if defined(__LITTLE_ENDIAN)
include/asm-generic/bitops/non-atomic.h +1 -1
@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS_NON_ATOMIC_H_#define _ASM_GENERIC_BITOPS_NON_ATOMIC_H_ -#include <asm/types.h> +#include <linux/types.h> /** * __set_bit - Set a bit in memory
include/asm-generic/bitops/sched.h +1 -1
@@ -2,7 +2,7 @@#define _ASM_GENERIC_BITOPS_SCHED_H_#include <linux/compiler.h> /* unlikely() */ -#include <asm/types.h> +#include <linux/types.h> /* * Every architecture must define this function. It's the fastest
Signature · 1 line
1.8.3.2
Hi,
Quoted 25 lines
From: linux-acpi-owner(a)vger.kernel.org [mailto:linux-acpi-owner(a)vger.kernel.org] On Behalf Of Paul McQuade
Sent: Friday, April 11, 2014 7:28 AMUse #include <
linux/uaccess.h> instead of <asm/uaccess.h> Use #include <linux/types.h> instead of <asm/types.h>Signed-off-by Paul McQuade <paulmcquad(a)gmail.com>--- include/acpi/platform/aclinux.h | 2 +- include/asm-generic/bitops/__ffs.h | 2 +- include/asm-generic/bitops/__fls.h | 2 +- include/asm-generic/bitops/arch_hweight.h | 2 +- include/asm-generic/bitops/atomic.h | 6 +++--- include/asm-generic/bitops/count_zeros.h | 2 +- include/asm-generic/bitops/fls64.h | 2 +- include/asm-generic/bitops/le.h | 2 +- include/asm-generic/bitops/non-atomic.h | 2 +- include/asm-generic/bitops/sched.h | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-)include/acpi/platform/aclinux.h +0
-0
include/acpi/platform/aclinux.h line 77
Quoted 8 lines
include/acpi/platform/aclinux.h +1
-1@@ -71,7 +71,7 @@#ifdef EXPORT_ACPI_INTERFACES #include <linux/export.h> #endif -#include <asm/acpi.h> +#include <linux/acpi.h> /* Host-dependent types and defines for in-kernel ACPICA */
This diff block is wrong.
The acpi/platform/aclinux.h is a "platform specific ACPICA environment header".
The linux/acpi.h is a "Top level header of Linux ACPI".
The asm/acpi.h is a combination of " architecture specific ACPICA environment header" and "architecture specific Linux ACPI header".
The relationship between Linux ACPI and ACPICA is:
Linux ACPI is using ACPICA.
So linux ACPI header should __INCLUDE__ ACPICA header, which means linux/acpi.h should include acpi/platform/aclinux.h. You patch thus is wrong.
In fact, acpi/platform/aclinux.h is included by acpi/acpi.h and acpi/acpi.h is included by linux/acpi.h.
For asm/acpi.h, there are really things messed up in it.
I have a series to split its role so that wrong "architecture specific Linux ACPI header" can be sorted out from acpi/platform/aclinux.h. Please refer to:
https://lkml.org/lkml/2014/4/8/57
The correct way to fix the issue you are trying to fix is this patch:
https://lkml.org/lkml/2014/4/8/60
So please drop this diff block and just wait for the above mentioned series to be merged.
Thanks and best regards
-Lv
Quoted 131 lines
include/asm-generic/bitops/__ffs.h +1
-1@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS___FFS_H_#define _ASM_GENERIC_BITOPS___FFS_H_ -#include <asm/types.h> +#include <linux/types.h> /** * __ffs - find first bit in word. include/asm-generic/bitops/__fls.h +1
-1@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS___FLS_H_#define _ASM_GENERIC_BITOPS___FLS_H_ -#include <asm/types.h> +#include <linux/types.h> /** * __fls - find last (most-significant) set bit in a long word include/asm-generic/bitops/arch_hweight.h +1
-1@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_#define _ASM_GENERIC_BITOPS_ARCH_HWEIGHT_H_ -#include <asm/types.h> +#include <linux/types.h> static inline unsigned int __arch_hweight32 (unsigned int w) {include/asm-generic/bitops/atomic.h +3
-3@@ -1,12 +1,12 @@#ifndef _ASM_GENERIC_BITOPS_ATOMIC_H_#define _ASM_GENERIC_BITOPS_ATOMIC_H_ -#include <asm/types.h> +#include <linux/types.h> #include <linux/irqflags.h> #ifdef CONFIG_SMP -#include <asm/spinlock.h> -#include <asm/cache.h> /* we use L1_CACHE_BYTES */ +#include <linux/spinlock.h> +#include <linux/cache.h> /* we use L1_CACHE_BYTES */ /* Use an array of spinlocks for our atomic_ts. * Hash function to index into a different SPINLOCK. include/asm-generic/bitops/count_zeros.h +1
-1@@ -12,7 +12,7 @@#ifndef _ASM_GENERIC_BITOPS_COUNT_ZEROS_H_#define _ASM_GENERIC_BITOPS_COUNT_ZEROS_H_ -#include <asm/bitops.h> +#include <linux/bitops.h> /** * count_leading_zeros - Count the number of zeros from the MSB back include/asm-generic/bitops/fls64.h +1
-1@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS_FLS64_H_#define _ASM_GENERIC_BITOPS_FLS64_H_ -#include <asm/types.h> +#include <linux/types.h> /** * fls64 - find last set bit in a 64-bit word include/asm-generic/bitops/le.h +1
-1@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS_LE_H_#define _ASM_GENERIC_BITOPS_LE_H_ -#include <asm/types.h> +#include <linux/types.h> #include <asm/byteorder.h> #if defined(__LITTLE_ENDIAN)include/asm-generic/bitops/non-atomic.h +1
-1@@ -1,7 +1,7 @@#ifndef _ASM_GENERIC_BITOPS_NON_ATOMIC_H_#define _ASM_GENERIC_BITOPS_NON_ATOMIC_H_ -#include <asm/types.h> +#include <linux/types.h> /** * __set_bit - Set a bit in memory include/asm-generic/bitops/sched.h +1
-2@@ -2,7 +2,7 @@#define _ASM_GENERIC_BITOPS_SCHED_H_#include <linux/compiler.h> /* unlikely() */ -#include <asm/types.h> +#include <linux/types.h> /* * Every architecture must define this function. It's the fastest -- 1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html