[PATCH] include: replace asm headers to linux

From: Paul McQuade
Date: Thu Apr 10 2014 - 19:28:23 EST


Use #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@xxxxxxxxx>
---
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(-)

diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 93c55ed..d52317f 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -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 */

diff --git a/include/asm-generic/bitops/__ffs.h b/include/asm-generic/bitops/__ffs.h
index 937d7c4..8236f91 100644
--- a/include/asm-generic/bitops/__ffs.h
+++ b/include/asm-generic/bitops/__ffs.h
@@ -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.
diff --git a/include/asm-generic/bitops/__fls.h b/include/asm-generic/bitops/__fls.h
index a60a7cc..60e5360 100644
--- a/include/asm-generic/bitops/__fls.h
+++ b/include/asm-generic/bitops/__fls.h
@@ -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
diff --git a/include/asm-generic/bitops/arch_hweight.h b/include/asm-generic/bitops/arch_hweight.h
index 6a211f4..a9a48a8 100644
--- a/include/asm-generic/bitops/arch_hweight.h
+++ b/include/asm-generic/bitops/arch_hweight.h
@@ -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)
{
diff --git a/include/asm-generic/bitops/atomic.h b/include/asm-generic/bitops/atomic.h
index 9ae6c34..4469696 100644
--- a/include/asm-generic/bitops/atomic.h
+++ b/include/asm-generic/bitops/atomic.h
@@ -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.
diff --git a/include/asm-generic/bitops/count_zeros.h b/include/asm-generic/bitops/count_zeros.h
index 97520d2..7f8e1d0 100644
--- a/include/asm-generic/bitops/count_zeros.h
+++ b/include/asm-generic/bitops/count_zeros.h
@@ -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
diff --git a/include/asm-generic/bitops/fls64.h b/include/asm-generic/bitops/fls64.h
index b097cf8..3999f5c 100644
--- a/include/asm-generic/bitops/fls64.h
+++ b/include/asm-generic/bitops/fls64.h
@@ -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
diff --git a/include/asm-generic/bitops/le.h b/include/asm-generic/bitops/le.h
index 6173154..8f4f574 100644
--- a/include/asm-generic/bitops/le.h
+++ b/include/asm-generic/bitops/le.h
@@ -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)
diff --git a/include/asm-generic/bitops/non-atomic.h b/include/asm-generic/bitops/non-atomic.h
index 697cc2b..4b04267 100644
--- a/include/asm-generic/bitops/non-atomic.h
+++ b/include/asm-generic/bitops/non-atomic.h
@@ -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
diff --git a/include/asm-generic/bitops/sched.h b/include/asm-generic/bitops/sched.h
index 604fab7..65ad856 100644
--- a/include/asm-generic/bitops/sched.h
+++ b/include/asm-generic/bitops/sched.h
@@ -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-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/