Skip to contentSkip to conversation

mark virt_to_bus/bus_to_virt as __deprecated on i386

PATCH New Adrian Bunk 1 participant 1 message Dec 13, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mark virt_to_bus/bus_to_virt as __deprecated on i386

virt_to_bus/bus_to_virt are long deprecated, mark them as __deprecated on i386.

Without such warnings people will never update their code and fix Andrew's all*config ppc64 builds.

---

This patch was already sent on:
- 23 Nov 2005
- 18 Nov 2005
- 12 Nov 2005

include/asm-i386/io.h renamed from include/asm-i386/io.h.old +8 -2
@@ -144,8 +144,14 @@
  *
  * Allow them on x86 for legacy drivers, though.
  */
-#define virt_to_bus virt_to_phys
-#define bus_to_virt phys_to_virt
+static inline unsigned long __deprecated virt_to_bus(volatile void * address)
+{
+	return __pa(address);
+}
+static inline void * __deprecated bus_to_virt(unsigned long address)
+{
+	return __va(address);
+}
 
 /*
  * readX/writeX() are used to access memory mapped devices. On some