The patch titled
dmi: clean-up dmi helper declarations
has been added to the -mm tree. Its filename is
dmi-clean-up-dmi-helper-declarations.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: dmi: clean-up dmi helper declarations
From: Jean Delvare <[EMAIL PROTECTED]>
The declaration of dmi helper functions is a bit messy and inconsistent at the
moment:
* On ia64 they are declared in <asm/io.h>.
* On x86-64 they are declared in <asm/dmi.h>.
* On i386 they are declared both in <asm/io.h> and <asm/dmi.h>.
Fix the header files so that the dmi helper functions are consistently
defined in <asm/dmi.h>.
Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
Cc: Matt Domsch <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
include/asm-ia64/dmi.h | 5 +++++
include/asm-ia64/io.h | 5 -----
include/asm-x86/dmi.h | 1 +
include/asm-x86/io_32.h | 5 -----
4 files changed, 6 insertions(+), 10 deletions(-)
diff -puN include/asm-ia64/dmi.h~dmi-clean-up-dmi-helper-declarations
include/asm-ia64/dmi.h
--- a/include/asm-ia64/dmi.h~dmi-clean-up-dmi-helper-declarations
+++ a/include/asm-ia64/dmi.h
@@ -3,4 +3,9 @@
#include <asm/io.h>
+/* Use normal IO mappings for DMI */
+#define dmi_ioremap ioremap
+#define dmi_iounmap(x,l) iounmap(x)
+#define dmi_alloc(l) kmalloc(l, GFP_ATOMIC)
+
#endif
diff -puN include/asm-ia64/io.h~dmi-clean-up-dmi-helper-declarations
include/asm-ia64/io.h
--- a/include/asm-ia64/io.h~dmi-clean-up-dmi-helper-declarations
+++ a/include/asm-ia64/io.h
@@ -423,11 +423,6 @@ extern void __iomem * ioremap(unsigned l
extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long
size);
extern void iounmap (volatile void __iomem *addr);
-/* Use normal IO mappings for DMI */
-#define dmi_ioremap ioremap
-#define dmi_iounmap(x,l) iounmap(x)
-#define dmi_alloc(l) kmalloc(l, GFP_ATOMIC)
-
/*
* String version of IO memory access ops:
*/
diff -puN include/asm-x86/dmi.h~dmi-clean-up-dmi-helper-declarations
include/asm-x86/dmi.h
--- a/include/asm-x86/dmi.h~dmi-clean-up-dmi-helper-declarations
+++ a/include/asm-x86/dmi.h
@@ -27,6 +27,7 @@ static inline void *dmi_alloc(unsigned l
#endif
+/* Use early IO mappings for DMI because it's initialized early */
#define dmi_ioremap early_ioremap
#define dmi_iounmap early_iounmap
diff -puN include/asm-x86/io_32.h~dmi-clean-up-dmi-helper-declarations
include/asm-x86/io_32.h
--- a/include/asm-x86/io_32.h~dmi-clean-up-dmi-helper-declarations
+++ a/include/asm-x86/io_32.h
@@ -139,11 +139,6 @@ extern void *early_ioremap(unsigned long
extern void early_iounmap(void *addr, unsigned long size);
extern void __iomem *fix_ioremap(unsigned idx, unsigned long phys);
-/* Use early IO mappings for DMI because it's initialized early */
-#define dmi_ioremap early_ioremap
-#define dmi_iounmap early_iounmap
-#define dmi_alloc alloc_bootmem
-
/*
* ISA I/O bus memory addresses are 1:1 with the physical address.
*/
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
mm-only-enforce-acpi-resource-conflict-checks.patch
oz99x-i2c-button-and-led-support-driver.patch
i2c-isp1301_omap-new-style-i2c-driver-updates-part-1.patch
git-hwmon.patch
adt7473-new-driver-for-analog-devices-adt7473-sensor-chip.patch
apanel-fix-kconfig-dependencies.patch
dmi-dont-save-the-same-device-twice-was-smbios-dmi-add-type-41-=-onboard-devices-extended-information.patch
dmi-clean-up-dmi-helper-declarations.patch
rtc-add-support-for-the-s-35390a-rtc-chip.patch
rtc-add-support-for-the-s-35390a-rtc-chip-checkpatch-fixes.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html