treewide: replace #include <asm-generic/errno.h> with <linux/errno.h>
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 21 Sep 2016 02:28:57 +0000 (11:28 +0900)
committerTom Rini <trini@konsulko.com>
Sat, 24 Sep 2016 02:25:27 +0000 (22:25 -0400)
Now, include/linux/errno.h is a wrapper of <asm-generic/errno.h>.
Replace all include directives for <asm-generic/errno.h> with
<linux/errno.h>.

<asm-generic/...> is supposed to be included from <asm/...> when
arch-headers fall back into generic implementation. Generally, they
should not be directly included from .c files.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
[trini: Add drivers/usb/host/xhci-rockchip.c]
Signed-off-by: Tom Rini <trini@konsulko.com>
22 files changed:
arch/arm/imx-common/rdc-sema.c
arch/arm/mach-keystone/psc.c
drivers/crypto/fsl/fsl_blob.c
drivers/crypto/fsl/fsl_hash.c
drivers/mmc/hi6220_dw_mmc.c
drivers/net/macb.c
drivers/net/xilinx_emaclite.c
drivers/net/zynq_gem.c
drivers/tpm/tpm_tis_infineon.c
drivers/usb/host/ehci-exynos.c
drivers/usb/host/xhci-exynos5.c
drivers/usb/host/xhci-fsl.c
drivers/usb/host/xhci-keystone.c
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci-omap.c
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci-rockchip.c
drivers/usb/host/xhci-zynqmp.c
drivers/usb/host/xhci.c
drivers/usb/phy/omap_usb_phy.c
drivers/video/exynos/exynos_fb.c
include/errno.h

index dcb5c419ee712d026598e8bfc74e24432b88d7ed..5df4e02b53bda46c02aebd2696ac0b39c695e848 100644 (file)
@@ -8,7 +8,7 @@
 #include <asm/arch/imx-regs.h>
 #include <asm/imx-common/rdc-sema.h>
 #include <asm/arch/imx-rdc.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 
 /*
  * Check if the RDC Semaphore is required for this peripheral.
index ff042a6db2dd158272b9509aa47ead5b89ee5784..bbea74a879ae5f59b755ed50cafd5b69d8cd097b 100644 (file)
@@ -8,7 +8,7 @@
  */
 
 #include <common.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <asm/arch/psc_defs.h>
index d24b8fc045dc8284e05bd1e9fd96101e6c9b61a2..38c6f9486bf1ca365b4abe69049aea7b420664db 100644 (file)
@@ -8,7 +8,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <fsl_sec.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include "jobdesc.h"
 #include "desc.h"
 #include "jr.h"
index 887e88c9ca7a2eeee28e535e65533421cba8f015..a63eba389df89eb64e7060da08a22a5ed1228b81 100644 (file)
@@ -12,7 +12,7 @@
 #include "jr.h"
 #include "fsl_hash.h"
 #include <hw_sha.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 
 #define CRYPTO_MAX_ALG_NAME    80
 #define SHA1_DIGEST_SIZE        20
index b0d063c6987ee34129f3f1698d1ecfae05eaf1ba..fdaf1e40bce6a45b7935c1bec9e5c91db15d3e20 100644 (file)
@@ -8,7 +8,7 @@
 #include <common.h>
 #include <dwmmc.h>
 #include <malloc.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 
 #define        DWMMC_MAX_CH_NUM                4
 
index 921537f8a436ec4c42b255283895da158e520ed1..8c1774e6a9b4175040bac1f8d04d9a898c6e7171 100644 (file)
@@ -39,7 +39,7 @@
 #include <asm/io.h>
 #include <asm/dma-mapping.h>
 #include <asm/arch/clk.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 
 #include "macb.h"
 
index d86e7a3954645e59f8563eb999c110b5812c0cd6..78ff44c5619f870f933d4afcb7ccba2aa0d79d19 100644 (file)
@@ -17,7 +17,7 @@
 #include <phy.h>
 #include <miiphy.h>
 #include <fdtdec.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <asm/io.h>
 
index 519699d8ff020fb1b64ed12d763658b46502acd2..8b7c1be5d909051d13a5236c6ff5ae2d9c436b81 100644 (file)
@@ -24,7 +24,7 @@
 #include <asm/system.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index a4b674167628dcad4913222f86bf9776d563e380..ef3ff0dbf67eb6705bf51e444661f8963a7ca4a7 100644 (file)
@@ -25,7 +25,7 @@
 #include <fdtdec.h>
 #include <i2c.h>
 #include <tpm.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <linux/compiler.h>
 #include <linux/types.h>
 #include <linux/unaligned/be_byteshift.h>
index bede04b748ab86b216e60cdcd8a3435a436a310e..53281d78b35f1b39860da8aa2b027cbdcf2a68ed 100644 (file)
@@ -18,7 +18,7 @@
 #include <asm/arch/system.h>
 #include <asm/arch/power.h>
 #include <asm/gpio.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <linux/compat.h>
 #include "ehci.h"
 
index 28416ed1064914bbdf8c8fce1258381c182d1115..82fcd84ef2f20dafddc3308f000434e2343b3ebf 100644 (file)
@@ -24,7 +24,7 @@
 #include <asm/arch/power.h>
 #include <asm/arch/xhci-exynos.h>
 #include <asm/gpio.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <linux/compat.h>
 #include <linux/usb/dwc3.h>
 
index 6ff450cc758ea95960c8b1dd56bc34a0461bf387..bda5b5f9134ac3421126519c1257bc5c7ff179b6 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <common.h>
 #include <usb.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <linux/compat.h>
 #include <linux/usb/xhci-fsl.h>
 #include <linux/usb/dwc3.h>
index 924fb7616ffa2298d3d07b464b7072d01ffe9d8c..f322a803fe22dfb3967c0b609c6381e379b01bdc 100644 (file)
@@ -14,7 +14,7 @@
 #include <asm/io.h>
 #include <linux/usb/dwc3.h>
 #include <asm/arch/xhci-keystone.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 #include "xhci.h"
 
index 37444526f7584cc5d021ee2f9e78b3d785aa4432..62db51d01851c1eb1909a79de4271cf0e0ff7497 100644 (file)
@@ -20,7 +20,7 @@
 #include <usb.h>
 #include <malloc.h>
 #include <asm/cache.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 
 #include "xhci.h"
 
index fd19f79f0fc5f2b2b4c7b9a0da5208d5e07deb5b..b881b198fc874823643bc6ac6fb676a15f6f0144 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <common.h>
 #include <usb.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <asm/omap_common.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/sys_proto.h>
index 5a1391fbe3212f82753fab5a51eb9121d3744e64..2675a8f6491538050a62040255fd6cfe267962fe 100644 (file)
@@ -18,7 +18,7 @@
 #include <asm/byteorder.h>
 #include <usb.h>
 #include <asm/unaligned.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 
 #include "xhci.h"
 
index 561bf867026890124c47eb47b76aad4625c12f53..8cbcb8f923e0901caada82986289a3341cbda3f4 100644 (file)
@@ -12,7 +12,7 @@
 #include <usb.h>
 #include <watchdog.h>
 #include <asm/gpio.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <linux/compat.h>
 #include <linux/usb/dwc3.h>
 
index a7353698d7a47870565f4458329f287966ede131..cec1bc46d0a8de7699ea90d93c02184e8a64651d 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <common.h>
 #include <usb.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <asm/arch-zynqmp/hardware.h>
 #include <linux/compat.h>
 #include <linux/usb/dwc3.h>
index cb8a04b793e692fbf4a8e5edf986ff498bf95ae9..32011774768fb6ed73550c931c297ee63c5da0f3 100644 (file)
@@ -28,7 +28,7 @@
 #include <watchdog.h>
 #include <asm/cache.h>
 #include <asm/unaligned.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include "xhci.h"
 
 #ifndef CONFIG_USB_MAX_CONTROLLER_COUNT
index 1993da16ea16fe4ea3d964127573668248a3b271..7c7fba21f4e8cb1ccd70466b633f2720276d7d52 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <common.h>
 #include <usb.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 #include <asm/omap_common.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/sys_proto.h>
index 97228cd3cc3b27ffff1c795d6245de5bb3f7616c..5483d6613f76585fc5d15daad7e88c21a269773b 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/arch/pinmux.h>
 #include <asm/arch/system.h>
 #include <asm/gpio.h>
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 15ece2f97f36e067c3b1327722fa4f74ec38e29a..e0c670a16c32c80d0dfe7e95612b70a5cb07ec05 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef _ERRNO_H
 #define _ERRNO_H
 
-#include <asm-generic/errno.h>
+#include <linux/errno.h>
 
 extern int errno;