linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fix various asm-generic abuses
@ 2015-08-28  7:27 Christoph Hellwig
       [not found] ` <1440746842-19029-1-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Christoph Hellwig @ 2015-08-28  7:27 UTC (permalink / raw)
  To: arnd
  Cc: mitake, dhowells, herbert, oded.gabbay, eli, james_p_freyensee,
	linux-gpio, drbd-dev, linux-arch, linux-kernel

This fixes two trivial classes of asm-generic abuse.  First two headers
that are intended for drivers are moved to include/linux, and second
various drivers that incorrectly use asm-generic headers directly are
switched over to use the proper public headers.  There are a few more
asm-generic abuse, but they aren't quite as trivial so they will take
a little more effort to fix.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [PATCH 1/9] move io-64-nonatomic*.h out of asm-generic
       [not found] ` <1440746842-19029-1-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
@ 2015-08-28  7:27   ` Christoph Hellwig
  2015-08-28 18:19     ` Darren Hart
  2015-09-01 11:34     ` Hitoshi Mitake
  2015-08-28  7:27   ` [PATCH 2/9] move count_zeroes.h " Christoph Hellwig
  1 sibling, 2 replies; 18+ messages in thread
From: Christoph Hellwig @ 2015-08-28  7:27 UTC (permalink / raw)
  To: arnd-r2nGTMty4D4
  Cc: linux-arch-u79uwXL29TY76Z2rM5mHXA,
	mitake-uo9agqpHHEbPUJYwFPjUlCGn5s73+xxf,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, oded.gabbay-5C7GfCeVMHo,
	dhowells-H+wXaHxf7aLQT0dZR+AlfA,
	linux-gpio-u79uwXL29TY76Z2rM5mHXA, eli-VPRAkNaXOzVWk0Htik3J/w,
	james_p_freyensee-VuQAYsv1563Yd54FQh9/CA,
	drbd-dev-cunTk1MwBs8qoQakbn7OcQ,
	herbert-lOAM2aK0SrRLBo1qDEOMRrpzq4S04n8Q

These are not implementations of default architecture code but helpers
for drivers. Move them to the place they belong to.

Signed-off-by: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
---
 drivers/acpi/nfit.c                            |  2 +-
 drivers/block/nvme-core.c                      |  2 +-
 drivers/edac/i3200_edac.c                      |  2 +-
 drivers/edac/ie31200_edac.c                    |  2 +-
 drivers/edac/x38_edac.c                        |  2 +-
 drivers/i2c/busses/i2c-ismt.c                  |  2 +-
 drivers/net/ethernet/intel/i40e/i40e_osdep.h   |  2 +-
 drivers/net/ethernet/intel/i40evf/i40e_osdep.h |  2 +-
 drivers/net/ethernet/rocker/rocker.c           |  2 +-
 drivers/platform/x86/ibm_rtl.c                 |  2 +-
 drivers/platform/x86/intel_ips.c               |  2 +-
 drivers/scsi/qla4xxx/ql4_nx.c                  |  2 +-
 include/asm-generic/io-64-nonatomic-hi-lo.h    | 32 --------------------------
 include/asm-generic/io-64-nonatomic-lo-hi.h    | 32 --------------------------
 include/linux/io-64-nonatomic-hi-lo.h          | 32 ++++++++++++++++++++++++++
 include/linux/io-64-nonatomic-lo-hi.h          | 32 ++++++++++++++++++++++++++
 16 files changed, 76 insertions(+), 76 deletions(-)
 delete mode 100644 include/asm-generic/io-64-nonatomic-hi-lo.h
 delete mode 100644 include/asm-generic/io-64-nonatomic-lo-hi.h
 create mode 100644 include/linux/io-64-nonatomic-hi-lo.h
 create mode 100644 include/linux/io-64-nonatomic-lo-hi.h

diff --git a/drivers/acpi/nfit.c b/drivers/acpi/nfit.c
index bb29e56..16c8c94 100644
--- a/drivers/acpi/nfit.c
+++ b/drivers/acpi/nfit.c
@@ -26,7 +26,7 @@
  * For readq() and writeq() on 32-bit builds, the hi-lo, lo-hi order is
  * irrelevant.
  */
-#include <asm-generic/io-64-nonatomic-hi-lo.h>
+#include <linux/io-64-nonatomic-hi-lo.h>
 
 static bool force_enable_dimms;
 module_param(force_enable_dimms, bool, S_IRUGO|S_IWUSR);
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c
index 7920c27..b3033d3 100644
--- a/drivers/block/nvme-core.c
+++ b/drivers/block/nvme-core.c
@@ -41,7 +41,7 @@
 #include <linux/t10-pi.h>
 #include <linux/types.h>
 #include <scsi/sg.h>
-#include <asm-generic/io-64-nonatomic-lo-hi.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 
 #define NVME_MINORS		(1U << MINORBITS)
 #define NVME_Q_DEPTH		1024
diff --git a/drivers/edac/i3200_edac.c b/drivers/edac/i3200_edac.c
index 4ad062b..1f45338 100644
--- a/drivers/edac/i3200_edac.c
+++ b/drivers/edac/i3200_edac.c
@@ -15,7 +15,7 @@
 #include <linux/io.h>
 #include "edac_core.h"
 
-#include <asm-generic/io-64-nonatomic-lo-hi.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 
 #define I3200_REVISION        "1.1"
 
diff --git a/drivers/edac/ie31200_edac.c b/drivers/edac/ie31200_edac.c
index a981dc6..18d77ac 100644
--- a/drivers/edac/ie31200_edac.c
+++ b/drivers/edac/ie31200_edac.c
@@ -39,7 +39,7 @@
 #include <linux/pci_ids.h>
 #include <linux/edac.h>
 
-#include <asm-generic/io-64-nonatomic-lo-hi.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 #include "edac_core.h"
 
 #define IE31200_REVISION "1.0"
diff --git a/drivers/edac/x38_edac.c b/drivers/edac/x38_edac.c
index 7c5cdc6..314cf5c 100644
--- a/drivers/edac/x38_edac.c
+++ b/drivers/edac/x38_edac.c
@@ -15,7 +15,7 @@
 #include <linux/pci_ids.h>
 #include <linux/edac.h>
 
-#include <asm-generic/io-64-nonatomic-lo-hi.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 #include "edac_core.h"
 
 #define X38_REVISION		"1.1"
diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c
index f994712..39becbb 100644
--- a/drivers/i2c/busses/i2c-ismt.c
+++ b/drivers/i2c/busses/i2c-ismt.c
@@ -67,7 +67,7 @@
 #include <linux/acpi.h>
 #include <linux/interrupt.h>
 
-#include <asm-generic/io-64-nonatomic-lo-hi.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 
 /* PCI Address Constants */
 #define SMBBAR		0
diff --git a/drivers/net/ethernet/intel/i40e/i40e_osdep.h b/drivers/net/ethernet/intel/i40e/i40e_osdep.h
index ad802dd..5b6feb7 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_osdep.h
+++ b/drivers/net/ethernet/intel/i40e/i40e_osdep.h
@@ -35,7 +35,7 @@
 #include <linux/highuid.h>
 
 /* get readq/writeq support for 32 bit kernels, use the low-first version */
-#include <asm-generic/io-64-nonatomic-lo-hi.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 
 /* File to be the magic between shared code and
  * actual OS primitives
diff --git a/drivers/net/ethernet/intel/i40evf/i40e_osdep.h b/drivers/net/ethernet/intel/i40evf/i40e_osdep.h
index 21a91b1..5e314fd 100644
--- a/drivers/net/ethernet/intel/i40evf/i40e_osdep.h
+++ b/drivers/net/ethernet/intel/i40evf/i40e_osdep.h
@@ -34,7 +34,7 @@
 #include <linux/pci.h>
 
 /* get readq/writeq support for 32 bit kernels, use the low-first version */
-#include <asm-generic/io-64-nonatomic-lo-hi.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 
 /* File to be the magic between shared code and
  * actual OS primitives
diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c
index 2e7f9a2..be06cf6 100644
--- a/drivers/net/ethernet/rocker/rocker.c
+++ b/drivers/net/ethernet/rocker/rocker.c
@@ -36,7 +36,7 @@
 #include <net/ip_fib.h>
 #include <net/netevent.h>
 #include <net/arp.h>
-#include <asm-generic/io-64-nonatomic-lo-hi.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 #include <generated/utsrelease.h>
 
 #include "rocker.h"
diff --git a/drivers/platform/x86/ibm_rtl.c b/drivers/platform/x86/ibm_rtl.c
index 97c2be1..c62e5e1 100644
--- a/drivers/platform/x86/ibm_rtl.c
+++ b/drivers/platform/x86/ibm_rtl.c
@@ -33,7 +33,7 @@
 #include <linux/mutex.h>
 #include <asm/bios_ebda.h>
 
-#include <asm-generic/io-64-nonatomic-lo-hi.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 
 static bool force;
 module_param(force, bool, 0);
diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c
index e2065e0..55663b3 100644
--- a/drivers/platform/x86/intel_ips.c
+++ b/drivers/platform/x86/intel_ips.c
@@ -78,7 +78,7 @@
 #include <asm/processor.h>
 #include "intel_ips.h"
 
-#include <asm-generic/io-64-nonatomic-lo-hi.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 
 #define PCI_DEVICE_ID_INTEL_THERMAL_SENSOR 0x3b32
 
diff --git a/drivers/scsi/qla4xxx/ql4_nx.c b/drivers/scsi/qla4xxx/ql4_nx.c
index 7c33658..ae87d6c 100644
--- a/drivers/scsi/qla4xxx/ql4_nx.c
+++ b/drivers/scsi/qla4xxx/ql4_nx.c
@@ -12,7 +12,7 @@
 #include "ql4_glbl.h"
 #include "ql4_inline.h"
 
-#include <asm-generic/io-64-nonatomic-lo-hi.h>
+#include <linux/io-64-nonatomic-lo-hi.h>
 
 #define TIMEOUT_100_MS	100
 #define MASK(n)		DMA_BIT_MASK(n)
diff --git a/include/asm-generic/io-64-nonatomic-hi-lo.h b/include/asm-generic/io-64-nonatomic-hi-lo.h
deleted file mode 100644
index 2e29d13..0000000
--- a/include/asm-generic/io-64-nonatomic-hi-lo.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef _ASM_IO_64_NONATOMIC_HI_LO_H_
-#define _ASM_IO_64_NONATOMIC_HI_LO_H_
-
-#include <linux/io.h>
-#include <asm-generic/int-ll64.h>
-
-static inline __u64 hi_lo_readq(const volatile void __iomem *addr)
-{
-	const volatile u32 __iomem *p = addr;
-	u32 low, high;
-
-	high = readl(p + 1);
-	low = readl(p);
-
-	return low + ((u64)high << 32);
-}
-
-static inline void hi_lo_writeq(__u64 val, volatile void __iomem *addr)
-{
-	writel(val >> 32, addr + 4);
-	writel(val, addr);
-}
-
-#ifndef readq
-#define readq hi_lo_readq
-#endif
-
-#ifndef writeq
-#define writeq hi_lo_writeq
-#endif
-
-#endif	/* _ASM_IO_64_NONATOMIC_HI_LO_H_ */
diff --git a/include/asm-generic/io-64-nonatomic-lo-hi.h b/include/asm-generic/io-64-nonatomic-lo-hi.h
deleted file mode 100644
index 0efacff..0000000
--- a/include/asm-generic/io-64-nonatomic-lo-hi.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef _ASM_IO_64_NONATOMIC_LO_HI_H_
-#define _ASM_IO_64_NONATOMIC_LO_HI_H_
-
-#include <linux/io.h>
-#include <asm-generic/int-ll64.h>
-
-static inline __u64 lo_hi_readq(const volatile void __iomem *addr)
-{
-	const volatile u32 __iomem *p = addr;
-	u32 low, high;
-
-	low = readl(p);
-	high = readl(p + 1);
-
-	return low + ((u64)high << 32);
-}
-
-static inline void lo_hi_writeq(__u64 val, volatile void __iomem *addr)
-{
-	writel(val, addr);
-	writel(val >> 32, addr + 4);
-}
-
-#ifndef readq
-#define readq lo_hi_readq
-#endif
-
-#ifndef writeq
-#define writeq lo_hi_writeq
-#endif
-
-#endif	/* _ASM_IO_64_NONATOMIC_LO_HI_H_ */
diff --git a/include/linux/io-64-nonatomic-hi-lo.h b/include/linux/io-64-nonatomic-hi-lo.h
new file mode 100644
index 0000000..11d7e84
--- /dev/null
+++ b/include/linux/io-64-nonatomic-hi-lo.h
@@ -0,0 +1,32 @@
+#ifndef _LINUX_IO_64_NONATOMIC_HI_LO_H_
+#define _LINUX_IO_64_NONATOMIC_HI_LO_H_
+
+#include <linux/io.h>
+#include <asm-generic/int-ll64.h>
+
+static inline __u64 hi_lo_readq(const volatile void __iomem *addr)
+{
+	const volatile u32 __iomem *p = addr;
+	u32 low, high;
+
+	high = readl(p + 1);
+	low = readl(p);
+
+	return low + ((u64)high << 32);
+}
+
+static inline void hi_lo_writeq(__u64 val, volatile void __iomem *addr)
+{
+	writel(val >> 32, addr + 4);
+	writel(val, addr);
+}
+
+#ifndef readq
+#define readq hi_lo_readq
+#endif
+
+#ifndef writeq
+#define writeq hi_lo_writeq
+#endif
+
+#endif	/* _LINUX_IO_64_NONATOMIC_HI_LO_H_ */
diff --git a/include/linux/io-64-nonatomic-lo-hi.h b/include/linux/io-64-nonatomic-lo-hi.h
new file mode 100644
index 0000000..1a4315f
--- /dev/null
+++ b/include/linux/io-64-nonatomic-lo-hi.h
@@ -0,0 +1,32 @@
+#ifndef _LINUX_IO_64_NONATOMIC_LO_HI_H_
+#define _LINUX_IO_64_NONATOMIC_LO_HI_H_
+
+#include <linux/io.h>
+#include <asm-generic/int-ll64.h>
+
+static inline __u64 lo_hi_readq(const volatile void __iomem *addr)
+{
+	const volatile u32 __iomem *p = addr;
+	u32 low, high;
+
+	low = readl(p);
+	high = readl(p + 1);
+
+	return low + ((u64)high << 32);
+}
+
+static inline void lo_hi_writeq(__u64 val, volatile void __iomem *addr)
+{
+	writel(val, addr);
+	writel(val >> 32, addr + 4);
+}
+
+#ifndef readq
+#define readq lo_hi_readq
+#endif
+
+#ifndef writeq
+#define writeq lo_hi_writeq
+#endif
+
+#endif	/* _LINUX_IO_64_NONATOMIC_LO_HI_H_ */
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 2/9] move count_zeroes.h out of asm-generic
       [not found] ` <1440746842-19029-1-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
  2015-08-28  7:27   ` [PATCH 1/9] move io-64-nonatomic*.h out of asm-generic Christoph Hellwig
@ 2015-08-28  7:27   ` Christoph Hellwig
  1 sibling, 0 replies; 18+ messages in thread
From: Christoph Hellwig @ 2015-08-28  7:27 UTC (permalink / raw)
  To: arnd-r2nGTMty4D4
  Cc: linux-arch-u79uwXL29TY76Z2rM5mHXA,
	mitake-uo9agqpHHEbPUJYwFPjUlCGn5s73+xxf,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, oded.gabbay-5C7GfCeVMHo,
	dhowells-H+wXaHxf7aLQT0dZR+AlfA,
	linux-gpio-u79uwXL29TY76Z2rM5mHXA, eli-VPRAkNaXOzVWk0Htik3J/w,
	james_p_freyensee-VuQAYsv1563Yd54FQh9/CA,
	drbd-dev-cunTk1MwBs8qoQakbn7OcQ,
	herbert-lOAM2aK0SrRLBo1qDEOMRrpzq4S04n8Q

This header contains a few helpers currenly only used by the mpi
implementation, and not default implementation of architecture code.

Signed-off-by: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
---
 include/asm-generic/bitops/count_zeros.h | 57 --------------------------------
 include/linux/count_zeros.h              | 57 ++++++++++++++++++++++++++++++++
 lib/mpi/longlong.h                       |  2 +-
 lib/mpi/mpicoder.c                       |  2 +-
 4 files changed, 59 insertions(+), 59 deletions(-)
 delete mode 100644 include/asm-generic/bitops/count_zeros.h
 create mode 100644 include/linux/count_zeros.h

diff --git a/include/asm-generic/bitops/count_zeros.h b/include/asm-generic/bitops/count_zeros.h
deleted file mode 100644
index 97520d2..0000000
--- a/include/asm-generic/bitops/count_zeros.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/* Count leading and trailing zeros functions
- *
- * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
- * Written by David Howells (dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org)
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public Licence
- * as published by the Free Software Foundation; either version
- * 2 of the Licence, or (at your option) any later version.
- */
-
-#ifndef _ASM_GENERIC_BITOPS_COUNT_ZEROS_H_
-#define _ASM_GENERIC_BITOPS_COUNT_ZEROS_H_
-
-#include <asm/bitops.h>
-
-/**
- * count_leading_zeros - Count the number of zeros from the MSB back
- * @x: The value
- *
- * Count the number of leading zeros from the MSB going towards the LSB in @x.
- *
- * If the MSB of @x is set, the result is 0.
- * If only the LSB of @x is set, then the result is BITS_PER_LONG-1.
- * If @x is 0 then the result is COUNT_LEADING_ZEROS_0.
- */
-static inline int count_leading_zeros(unsigned long x)
-{
-	if (sizeof(x) == 4)
-		return BITS_PER_LONG - fls(x);
-	else
-		return BITS_PER_LONG - fls64(x);
-}
-
-#define COUNT_LEADING_ZEROS_0 BITS_PER_LONG
-
-/**
- * count_trailing_zeros - Count the number of zeros from the LSB forwards
- * @x: The value
- *
- * Count the number of trailing zeros from the LSB going towards the MSB in @x.
- *
- * If the LSB of @x is set, the result is 0.
- * If only the MSB of @x is set, then the result is BITS_PER_LONG-1.
- * If @x is 0 then the result is COUNT_TRAILING_ZEROS_0.
- */
-static inline int count_trailing_zeros(unsigned long x)
-{
-#define COUNT_TRAILING_ZEROS_0 (-1)
-
-	if (sizeof(x) == 4)
-		return ffs(x);
-	else
-		return (x != 0) ? __ffs(x) : COUNT_TRAILING_ZEROS_0;
-}
-
-#endif /* _ASM_GENERIC_BITOPS_COUNT_ZEROS_H_ */
diff --git a/include/linux/count_zeros.h b/include/linux/count_zeros.h
new file mode 100644
index 0000000..363da78
--- /dev/null
+++ b/include/linux/count_zeros.h
@@ -0,0 +1,57 @@
+/* Count leading and trailing zeros functions
+ *
+ * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
+ * Written by David Howells (dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public Licence
+ * as published by the Free Software Foundation; either version
+ * 2 of the Licence, or (at your option) any later version.
+ */
+
+#ifndef _LINUX_BITOPS_COUNT_ZEROS_H_
+#define _LINUX_BITOPS_COUNT_ZEROS_H_
+
+#include <asm/bitops.h>
+
+/**
+ * count_leading_zeros - Count the number of zeros from the MSB back
+ * @x: The value
+ *
+ * Count the number of leading zeros from the MSB going towards the LSB in @x.
+ *
+ * If the MSB of @x is set, the result is 0.
+ * If only the LSB of @x is set, then the result is BITS_PER_LONG-1.
+ * If @x is 0 then the result is COUNT_LEADING_ZEROS_0.
+ */
+static inline int count_leading_zeros(unsigned long x)
+{
+	if (sizeof(x) == 4)
+		return BITS_PER_LONG - fls(x);
+	else
+		return BITS_PER_LONG - fls64(x);
+}
+
+#define COUNT_LEADING_ZEROS_0 BITS_PER_LONG
+
+/**
+ * count_trailing_zeros - Count the number of zeros from the LSB forwards
+ * @x: The value
+ *
+ * Count the number of trailing zeros from the LSB going towards the MSB in @x.
+ *
+ * If the LSB of @x is set, the result is 0.
+ * If only the MSB of @x is set, then the result is BITS_PER_LONG-1.
+ * If @x is 0 then the result is COUNT_TRAILING_ZEROS_0.
+ */
+static inline int count_trailing_zeros(unsigned long x)
+{
+#define COUNT_TRAILING_ZEROS_0 (-1)
+
+	if (sizeof(x) == 4)
+		return ffs(x);
+	else
+		return (x != 0) ? __ffs(x) : COUNT_TRAILING_ZEROS_0;
+}
+
+#endif /* _LINUX_BITOPS_COUNT_ZEROS_H_ */
diff --git a/lib/mpi/longlong.h b/lib/mpi/longlong.h
index a89d041..b90e255 100644
--- a/lib/mpi/longlong.h
+++ b/lib/mpi/longlong.h
@@ -19,7 +19,7 @@
  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  * MA 02111-1307, USA. */
 
-#include <asm-generic/bitops/count_zeros.h>
+#include <linux/count_zeros.h>
 
 /* You have to define the following before including this file:
  *
diff --git a/lib/mpi/mpicoder.c b/lib/mpi/mpicoder.c
index bc0a1da..9e1ec99 100644
--- a/lib/mpi/mpicoder.c
+++ b/lib/mpi/mpicoder.c
@@ -19,7 +19,7 @@
  */
 
 #include <linux/bitops.h>
-#include <asm-generic/bitops/count_zeros.h>
+#include <linux/count_zeros.h>
 #include "mpi-internal.h"
 
 #define MAX_EXTERN_MPI_BITS 16384
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 3/9] amdkfd: use <linux/mman.h> instead of <uapi/asm-generic/mman-common.h>
  2015-08-28  7:27 fix various asm-generic abuses Christoph Hellwig
       [not found] ` <1440746842-19029-1-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
@ 2015-08-28  7:27 ` Christoph Hellwig
  2015-08-30  9:43   ` Oded Gabbay
  2015-08-28  7:27 ` [PATCH 4/9] drbd: stop including <asm-generic/kmap_types.h> Christoph Hellwig
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 18+ messages in thread
From: Christoph Hellwig @ 2015-08-28  7:27 UTC (permalink / raw)
  To: arnd
  Cc: mitake, dhowells, herbert, oded.gabbay, eli, james_p_freyensee,
	linux-gpio, drbd-dev, linux-arch, linux-kernel

The latter is a default version of <asm/mman.h> and not for driver use.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c     | 2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
index c991973..c6a1b4c 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
@@ -31,7 +31,7 @@
 #include <uapi/linux/kfd_ioctl.h>
 #include <linux/time.h>
 #include <linux/mm.h>
-#include <uapi/asm-generic/mman-common.h>
+#include <linux/mman.h>
 #include <asm/processor.h>
 #include "kfd_priv.h"
 #include "kfd_device_queue_manager.h"
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c b/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
index 35b9875..2b65510 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
@@ -33,7 +33,7 @@
 #include <linux/time.h>
 #include "kfd_priv.h"
 #include <linux/mm.h>
-#include <uapi/asm-generic/mman-common.h>
+#include <linux/mman.h>
 #include <asm/processor.h>
 
 /*
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 4/9] drbd: stop including <asm-generic/kmap_types.h>
  2015-08-28  7:27 fix various asm-generic abuses Christoph Hellwig
       [not found] ` <1440746842-19029-1-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
  2015-08-28  7:27 ` [PATCH 3/9] amdkfd: use <linux/mman.h> instead of <uapi/asm-generic/mman-common.h> Christoph Hellwig
@ 2015-08-28  7:27 ` Christoph Hellwig
  2015-08-28  7:27 ` [PATCH 5/9] hifn_795x: " Christoph Hellwig
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 18+ messages in thread
From: Christoph Hellwig @ 2015-08-28  7:27 UTC (permalink / raw)
  To: arnd
  Cc: mitake, dhowells, herbert, oded.gabbay, eli, james_p_freyensee,
	linux-gpio, drbd-dev, linux-arch, linux-kernel

<linux/highmem.h> is the placace the get the kmap type flags, asm-generic
files are generic implementations only to be used by architecture code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/block/drbd/drbd_bitmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c
index 434c77d..2498e883 100644
--- a/drivers/block/drbd/drbd_bitmap.c
+++ b/drivers/block/drbd/drbd_bitmap.c
@@ -29,7 +29,7 @@
 #include <linux/string.h>
 #include <linux/drbd.h>
 #include <linux/slab.h>
-#include <asm/kmap_types.h>
+#include <linux/highmem.h>
 
 #include "drbd_int.h"
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 5/9] hifn_795x: stop including <asm-generic/kmap_types.h>
  2015-08-28  7:27 fix various asm-generic abuses Christoph Hellwig
                   ` (2 preceding siblings ...)
  2015-08-28  7:27 ` [PATCH 4/9] drbd: stop including <asm-generic/kmap_types.h> Christoph Hellwig
@ 2015-08-28  7:27 ` Christoph Hellwig
  2015-08-28 13:14   ` Herbert Xu
  2015-08-28  7:27 ` [PATCH 6/9] mlx5: " Christoph Hellwig
                   ` (4 subsequent siblings)
  8 siblings, 1 reply; 18+ messages in thread
From: Christoph Hellwig @ 2015-08-28  7:27 UTC (permalink / raw)
  To: arnd
  Cc: mitake, dhowells, herbert, oded.gabbay, eli, james_p_freyensee,
	linux-gpio, drbd-dev, linux-arch, linux-kernel

<linux/highmem.h> is the placace the get the kmap type flags, asm-generic
files are generic implementations only to be used by architecture code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/crypto/hifn_795x.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c
index 8d2a772..ca5c71a 100644
--- a/drivers/crypto/hifn_795x.c
+++ b/drivers/crypto/hifn_795x.c
@@ -36,8 +36,6 @@
 #include <crypto/algapi.h>
 #include <crypto/des.h>
 
-#include <asm/kmap_types.h>
-
 //#define HIFN_DEBUG
 
 #ifdef HIFN_DEBUG
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 6/9] mlx5: stop including <asm-generic/kmap_types.h>
  2015-08-28  7:27 fix various asm-generic abuses Christoph Hellwig
                   ` (3 preceding siblings ...)
  2015-08-28  7:27 ` [PATCH 5/9] hifn_795x: " Christoph Hellwig
@ 2015-08-28  7:27 ` Christoph Hellwig
  2015-08-28  7:27 ` [PATCH 7/9] n_tracerouter: stop including <asm-generic/bug> Christoph Hellwig
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 18+ messages in thread
From: Christoph Hellwig @ 2015-08-28  7:27 UTC (permalink / raw)
  To: arnd
  Cc: mitake, dhowells, herbert, oded.gabbay, eli, james_p_freyensee,
	linux-gpio, drbd-dev, linux-arch, linux-kernel

<linux/highmem.h> is the placace the get the kmap type flags, asm-generic
files are generic implementations only to be used by architecture code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/infiniband/hw/mlx5/main.c                   | 2 +-
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c       | 2 +-
 drivers/net/ethernet/mellanox/mlx5/core/main.c      | 2 +-
 drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index 085c24b..37d7c0e 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -30,7 +30,7 @@
  * SOFTWARE.
  */
 
-#include <asm-generic/kmap_types.h>
+#include <linux/highmem.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/errno.h>
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
index 75ff58d..594a149 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
@@ -30,7 +30,7 @@
  * SOFTWARE.
  */
 
-#include <asm-generic/kmap_types.h>
+#include <linux/highmem.h>
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/pci.h>
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c
index 06e3e1e..b9140b0 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c
@@ -30,7 +30,7 @@
  * SOFTWARE.
  */
 
-#include <asm-generic/kmap_types.h>
+#include <linux/highmem.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/errno.h>
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c b/drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
index 8a64542..fda02ec 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
@@ -30,7 +30,7 @@
  * SOFTWARE.
  */
 
-#include <asm-generic/kmap_types.h>
+#include <linux/highmem.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/mlx5/driver.h>
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 7/9] n_tracerouter: stop including <asm-generic/bug>
  2015-08-28  7:27 fix various asm-generic abuses Christoph Hellwig
                   ` (4 preceding siblings ...)
  2015-08-28  7:27 ` [PATCH 6/9] mlx5: " Christoph Hellwig
@ 2015-08-28  7:27 ` Christoph Hellwig
  2015-08-28  7:27 ` [PATCH 8/9] n_tracesink: " Christoph Hellwig
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 18+ messages in thread
From: Christoph Hellwig @ 2015-08-28  7:27 UTC (permalink / raw)
  To: arnd
  Cc: mitake, dhowells, herbert, oded.gabbay, eli, james_p_freyensee,
	linux-gpio, drbd-dev, linux-arch, linux-kernel

<asm-generic/bug> contains the default implementation of BUG() and friends,
which architectures may decide to use.  The proper way to get them is
<linux/bug.h>, so use that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/tty/n_tracerouter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/n_tracerouter.c b/drivers/tty/n_tracerouter.c
index 1f063d3..ac57169 100644
--- a/drivers/tty/n_tracerouter.c
+++ b/drivers/tty/n_tracerouter.c
@@ -34,7 +34,7 @@
 #include <linux/string.h>
 #include <linux/mutex.h>
 #include <linux/slab.h>
-#include <asm-generic/bug.h>
+#include <linux/bug.h>
 #include "n_tracesink.h"
 
 /*
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 8/9] n_tracesink: stop including <asm-generic/bug>
  2015-08-28  7:27 fix various asm-generic abuses Christoph Hellwig
                   ` (5 preceding siblings ...)
  2015-08-28  7:27 ` [PATCH 7/9] n_tracerouter: stop including <asm-generic/bug> Christoph Hellwig
@ 2015-08-28  7:27 ` Christoph Hellwig
  2015-08-28  7:27 ` [PATCH 9/9] gpio-mxc: " Christoph Hellwig
  2015-08-28 19:16 ` fix various asm-generic abuses Arnd Bergmann
  8 siblings, 0 replies; 18+ messages in thread
From: Christoph Hellwig @ 2015-08-28  7:27 UTC (permalink / raw)
  To: arnd
  Cc: mitake, dhowells, herbert, oded.gabbay, eli, james_p_freyensee,
	linux-gpio, drbd-dev, linux-arch, linux-kernel

<asm-generic/bug> contains the default implementation of BUG() and friends,
which architectures may decide to use.  The proper way to get them is
<linux/bug.h>, so use that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/tty/n_tracesink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/n_tracesink.c b/drivers/tty/n_tracesink.c
index ddce58b..4616870 100644
--- a/drivers/tty/n_tracesink.c
+++ b/drivers/tty/n_tracesink.c
@@ -34,7 +34,7 @@
 #include <linux/tty_ldisc.h>
 #include <linux/errno.h>
 #include <linux/string.h>
-#include <asm-generic/bug.h>
+#include <linux/bug.h>
 #include "n_tracesink.h"
 
 /*
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* [PATCH 9/9] gpio-mxc: stop including <asm-generic/bug>
  2015-08-28  7:27 fix various asm-generic abuses Christoph Hellwig
                   ` (6 preceding siblings ...)
  2015-08-28  7:27 ` [PATCH 8/9] n_tracesink: " Christoph Hellwig
@ 2015-08-28  7:27 ` Christoph Hellwig
  2015-08-28 19:16 ` fix various asm-generic abuses Arnd Bergmann
  8 siblings, 0 replies; 18+ messages in thread
From: Christoph Hellwig @ 2015-08-28  7:27 UTC (permalink / raw)
  To: arnd
  Cc: mitake, dhowells, herbert, oded.gabbay, eli, james_p_freyensee,
	linux-gpio, drbd-dev, linux-arch, linux-kernel

<asm-generic/bug> contains the default implementation of BUG() and friends,
which architectures may decide to use.  The proper way to get them is
<linux/bug.h>, so use that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/gpio/gpio-mxc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
index ec1eb1b..95be265 100644
--- a/drivers/gpio/gpio-mxc.c
+++ b/drivers/gpio/gpio-mxc.c
@@ -33,7 +33,7 @@
 #include <linux/of.h>
 #include <linux/of_device.h>
 #include <linux/module.h>
-#include <asm-generic/bug.h>
+#include <linux/bug.h>
 
 enum mxc_gpio_hwtype {
 	IMX1_GPIO,	/* runs on i.mx1 */
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

* Re: [PATCH 5/9] hifn_795x: stop including <asm-generic/kmap_types.h>
  2015-08-28  7:27 ` [PATCH 5/9] hifn_795x: " Christoph Hellwig
@ 2015-08-28 13:14   ` Herbert Xu
  0 siblings, 0 replies; 18+ messages in thread
From: Herbert Xu @ 2015-08-28 13:14 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: arnd, mitake, dhowells, oded.gabbay, eli, james_p_freyensee,
	linux-gpio, drbd-dev, linux-arch, linux-kernel

On Fri, Aug 28, 2015 at 09:27:18AM +0200, Christoph Hellwig wrote:
> <linux/highmem.h> is the placace the get the kmap type flags, asm-generic
> files are generic implementations only to be used by architecture code.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 1/9] move io-64-nonatomic*.h out of asm-generic
  2015-08-28  7:27   ` [PATCH 1/9] move io-64-nonatomic*.h out of asm-generic Christoph Hellwig
@ 2015-08-28 18:19     ` Darren Hart
  2015-09-01 11:34     ` Hitoshi Mitake
  1 sibling, 0 replies; 18+ messages in thread
From: Darren Hart @ 2015-08-28 18:19 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: arnd, mitake, dhowells, herbert, oded.gabbay, eli,
	james_p_freyensee, linux-gpio, drbd-dev, linux-arch, linux-kernel

On Fri, Aug 28, 2015 at 09:27:14AM +0200, Christoph Hellwig wrote:
> These are not implementations of default architecture code but helpers
> for drivers. Move them to the place they belong to.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---

...

>  drivers/platform/x86/ibm_rtl.c                 |  2 +-
>  drivers/platform/x86/intel_ips.c               |  2 +-

No objection for platform/drivers/x86

Acked-by: Darren Hart <dvhart@linux.intel.com>

-- 
Darren Hart
Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: fix various asm-generic abuses
  2015-08-28  7:27 fix various asm-generic abuses Christoph Hellwig
                   ` (7 preceding siblings ...)
  2015-08-28  7:27 ` [PATCH 9/9] gpio-mxc: " Christoph Hellwig
@ 2015-08-28 19:16 ` Arnd Bergmann
  2015-08-29 13:49   ` Christoph Hellwig
  2015-10-06  8:38   ` Christoph Hellwig
  8 siblings, 2 replies; 18+ messages in thread
From: Arnd Bergmann @ 2015-08-28 19:16 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: mitake, dhowells, herbert, oded.gabbay, eli, james_p_freyensee,
	linux-gpio, drbd-dev, linux-arch, linux-kernel

On Friday 28 August 2015 09:27:13 Christoph Hellwig wrote:
> This fixes two trivial classes of asm-generic abuse.  First two headers
> that are intended for drivers are moved to include/linux, and second
> various drivers that incorrectly use asm-generic headers directly are
> switched over to use the proper public headers.  There are a few more
> asm-generic abuse, but they aren't quite as trivial so they will take
> a little more effort to fix.

Thanks a lot, these all look really useful. My normal way of dealing
with asm-generic patches is to have changes go through the tree of
whichever maintainer needs the changes for their own work with my
Ack, but I guess in this case you don't actually have other patches
depending on them, right?

If driver maintainers want to pick individual patches from this series,
please add my

Acked-by: Arnd Bergmann <arnd@arndb.de>

otherwise let me know if I should put them into my asm-generic git
tree (which is currently empty, but part of linux-next).

	Arnd

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: fix various asm-generic abuses
  2015-08-28 19:16 ` fix various asm-generic abuses Arnd Bergmann
@ 2015-08-29 13:49   ` Christoph Hellwig
  2015-10-14 14:41     ` Arnd Bergmann
  2015-10-06  8:38   ` Christoph Hellwig
  1 sibling, 1 reply; 18+ messages in thread
From: Christoph Hellwig @ 2015-08-29 13:49 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: linux-arch-u79uwXL29TY76Z2rM5mHXA,
	herbert-lOAM2aK0SrRLBo1qDEOMRrpzq4S04n8Q,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, oded.gabbay-5C7GfCeVMHo,
	dhowells-H+wXaHxf7aLQT0dZR+AlfA,
	linux-gpio-u79uwXL29TY76Z2rM5mHXA, eli-VPRAkNaXOzVWk0Htik3J/w,
	james_p_freyensee-VuQAYsv1563Yd54FQh9/CA,
	drbd-dev-cunTk1MwBs8qoQakbn7OcQ, Christoph Hellwig,
	mitake-uo9agqpHHEbPUJYwFPjUlCGn5s73+xxf

On Fri, Aug 28, 2015 at 09:16:51PM +0200, Arnd Bergmann wrote:
> On Friday 28 August 2015 09:27:13 Christoph Hellwig wrote:
> > This fixes two trivial classes of asm-generic abuse.  First two headers
> > that are intended for drivers are moved to include/linux, and second
> > various drivers that incorrectly use asm-generic headers directly are
> > switched over to use the proper public headers.  There are a few more
> > asm-generic abuse, but they aren't quite as trivial so they will take
> > a little more effort to fix.
> 
> Thanks a lot, these all look really useful. My normal way of dealing
> with asm-generic patches is to have changes go through the tree of
> whichever maintainer needs the changes for their own work with my
> Ack, but I guess in this case you don't actually have other patches
> depending on them, right?

No, there's nothing depending on it.

> If driver maintainers want to pick individual patches from this series,
> please add my
> 
> Acked-by: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
> 
> otherwise let me know if I should put them into my asm-generic git
> tree (which is currently empty, but part of linux-next).

Note that the first two are something you should probably pick up either
way as they aren't really specific to a driver.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 3/9] amdkfd: use <linux/mman.h> instead of <uapi/asm-generic/mman-common.h>
  2015-08-28  7:27 ` [PATCH 3/9] amdkfd: use <linux/mman.h> instead of <uapi/asm-generic/mman-common.h> Christoph Hellwig
@ 2015-08-30  9:43   ` Oded Gabbay
  0 siblings, 0 replies; 18+ messages in thread
From: Oded Gabbay @ 2015-08-30  9:43 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: arnd, mitake, dhowells, herbert, oded.gabbay, eli,
	james_p_freyensee, linux-gpio, drbd-dev, linux-arch,
	Linux-Kernel@Vger. Kernel. Org

On Fri, Aug 28, 2015 at 10:27 AM, Christoph Hellwig <hch@lst.de> wrote:
>
> The latter is a default version of <asm/mman.h> and not for driver use.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_chardev.c     | 2 +-
>  drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> index c991973..c6a1b4c 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> @@ -31,7 +31,7 @@
>  #include <uapi/linux/kfd_ioctl.h>
>  #include <linux/time.h>
>  #include <linux/mm.h>
> -#include <uapi/asm-generic/mman-common.h>
> +#include <linux/mman.h>
>  #include <asm/processor.h>
>  #include "kfd_priv.h"
>  #include "kfd_device_queue_manager.h"
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c b/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
> index 35b9875..2b65510 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
> @@ -33,7 +33,7 @@
>  #include <linux/time.h>
>  #include "kfd_priv.h"
>  #include <linux/mm.h>
> -#include <uapi/asm-generic/mman-common.h>
> +#include <linux/mman.h>
>  #include <asm/processor.h>
>
>  /*
> --
> 1.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


Thanks,
Applied to my -next-fixes tree

     Oded

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 1/9] move io-64-nonatomic*.h out of asm-generic
  2015-08-28  7:27   ` [PATCH 1/9] move io-64-nonatomic*.h out of asm-generic Christoph Hellwig
  2015-08-28 18:19     ` Darren Hart
@ 2015-09-01 11:34     ` Hitoshi Mitake
  1 sibling, 0 replies; 18+ messages in thread
From: Hitoshi Mitake @ 2015-09-01 11:34 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: arnd, mitake, dhowells, herbert, oded.gabbay, eli,
	james_p_freyensee, linux-gpio, drbd-dev, linux-arch, linux-kernel

At Fri, 28 Aug 2015 09:27:14 +0200,
Christoph Hellwig wrote:
> 
> These are not implementations of default architecture code but helpers
> for drivers. Move them to the place they belong to.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  drivers/edac/i3200_edac.c                      |  2 +-
>  drivers/edac/ie31200_edac.c                    |  2 +-
>  drivers/edac/x38_edac.c                        |  2 +-
>  include/asm-generic/io-64-nonatomic-hi-lo.h    | 32 --------------------------
>  include/asm-generic/io-64-nonatomic-lo-hi.h    | 32 --------------------------
>  include/linux/io-64-nonatomic-hi-lo.h          | 32 ++++++++++++++++++++++++++
>  include/linux/io-64-nonatomic-lo-hi.h          | 32 ++++++++++++++++++++++++++

Thanks, changes for edac drivers and headers seem good to me.

Acked-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>

Thanks,
Hitoshi

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: fix various asm-generic abuses
  2015-08-28 19:16 ` fix various asm-generic abuses Arnd Bergmann
  2015-08-29 13:49   ` Christoph Hellwig
@ 2015-10-06  8:38   ` Christoph Hellwig
  1 sibling, 0 replies; 18+ messages in thread
From: Christoph Hellwig @ 2015-10-06  8:38 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Christoph Hellwig, mitake, dhowells, herbert, oded.gabbay, eli,
	james_p_freyensee, linux-gpio, drbd-dev, linux-arch, linux-kernel

On Fri, Aug 28, 2015 at 09:16:51PM +0200, Arnd Bergmann wrote:
> with asm-generic patches is to have changes go through the tree of
> whichever maintainer needs the changes for their own work with my
> Ack, but I guess in this case you don't actually have other patches
> depending on them, right?
> 
> If driver maintainers want to pick individual patches from this series,
> please add my
> 
> Acked-by: Arnd Bergmann <arnd@arndb.de>
> 
> otherwise let me know if I should put them into my asm-generic git
> tree (which is currently empty, but part of linux-next).

Seems like none of them made it into 4.3-rc - was that intentional or an
oversight?

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: fix various asm-generic abuses
  2015-08-29 13:49   ` Christoph Hellwig
@ 2015-10-14 14:41     ` Arnd Bergmann
  0 siblings, 0 replies; 18+ messages in thread
From: Arnd Bergmann @ 2015-10-14 14:41 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: mitake, dhowells, herbert, oded.gabbay, eli, james_p_freyensee,
	linux-gpio, drbd-dev, linux-arch, linux-kernel

On Saturday 29 August 2015 15:49:37 Christoph Hellwig wrote:
> On Fri, Aug 28, 2015 at 09:16:51PM +0200, Arnd Bergmann wrote:
> > On Friday 28 August 2015 09:27:13 Christoph Hellwig wrote:
> > > This fixes two trivial classes of asm-generic abuse.  First two headers
> > > that are intended for drivers are moved to include/linux, and second
> > > various drivers that incorrectly use asm-generic headers directly are
> > > switched over to use the proper public headers.  There are a few more
> > > asm-generic abuse, but they aren't quite as trivial so they will take
> > > a little more effort to fix.
> > 
> > Thanks a lot, these all look really useful. My normal way of dealing
> > with asm-generic patches is to have changes go through the tree of
> > whichever maintainer needs the changes for their own work with my
> > Ack, but I guess in this case you don't actually have other patches
> > depending on them, right?
> 
> No, there's nothing depending on it.
> 
> > If driver maintainers want to pick individual patches from this series,
> > please add my
> > 
> > Acked-by: Arnd Bergmann <arnd@arndb.de>
> > 
> > otherwise let me know if I should put them into my asm-generic git
> > tree (which is currently empty, but part of linux-next).
> 
> Note that the first two are something you should probably pick up either
> way as they aren't really specific to a driver.

I've applied the remaining patches to my asm-generic tree now, with
the Acks from Herbert, Darren and Hitoshi.

	Arnd

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-10-14 14:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-28  7:27 fix various asm-generic abuses Christoph Hellwig
     [not found] ` <1440746842-19029-1-git-send-email-hch-jcswGhMUV9g@public.gmane.org>
2015-08-28  7:27   ` [PATCH 1/9] move io-64-nonatomic*.h out of asm-generic Christoph Hellwig
2015-08-28 18:19     ` Darren Hart
2015-09-01 11:34     ` Hitoshi Mitake
2015-08-28  7:27   ` [PATCH 2/9] move count_zeroes.h " Christoph Hellwig
2015-08-28  7:27 ` [PATCH 3/9] amdkfd: use <linux/mman.h> instead of <uapi/asm-generic/mman-common.h> Christoph Hellwig
2015-08-30  9:43   ` Oded Gabbay
2015-08-28  7:27 ` [PATCH 4/9] drbd: stop including <asm-generic/kmap_types.h> Christoph Hellwig
2015-08-28  7:27 ` [PATCH 5/9] hifn_795x: " Christoph Hellwig
2015-08-28 13:14   ` Herbert Xu
2015-08-28  7:27 ` [PATCH 6/9] mlx5: " Christoph Hellwig
2015-08-28  7:27 ` [PATCH 7/9] n_tracerouter: stop including <asm-generic/bug> Christoph Hellwig
2015-08-28  7:27 ` [PATCH 8/9] n_tracesink: " Christoph Hellwig
2015-08-28  7:27 ` [PATCH 9/9] gpio-mxc: " Christoph Hellwig
2015-08-28 19:16 ` fix various asm-generic abuses Arnd Bergmann
2015-08-29 13:49   ` Christoph Hellwig
2015-10-14 14:41     ` Arnd Bergmann
2015-10-06  8:38   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).