Skip to contentSkip to conversation

arm: Remove unused __readwrite_bug function

PATCH In review Corentin Labbe 2 participants 2 messages Nov 15, 2017 – Nov 16, 2017 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: Remove unused __readwrite_bug function

The function __readwrite_bug() is not used at all, so this patch remove it.

---
 arch/arm/include/asm/io.h | 5 -----
 arch/arm/kernel/traps.c   | 7 -------
 2 files changed, 12 deletions(-)
arch/arm/include/asm/io.h +0 -5
index 2cfbc531f63b..6a9d9d2d4c0a 100644
@@ -150,11 +150,6 @@ extern void __iomem * (*arch_ioremap_caller)(phys_addr_t, size_t,
 extern void (*arch_iounmap)(volatile void __iomem *);
 
 /*
- * Bad read/write accesses...
- */
-extern void __readwrite_bug(const char *fn);
-
-/*
  * A typesafe __io() helper
  */
 static inline void __iomem *__typesafe_io(unsigned long addr)
arch/arm/kernel/traps.c +0 -7
index 5cf04888c581..cce8b18d673f 100644
@@ -757,13 +757,6 @@ baddataabort(int code, unsigned long instr, struct pt_regs *regs)
 	arm_notify_die("unknown data abort code", regs, &info, instr, 0);
 }
 
-void __readwrite_bug(const char *fn)
-{
-	pr_err("%s called, but not implemented\n", fn);
-	BUG();
-}
-EXPORT_SYMBOL(__readwrite_bug);
-
 void __pte_error(const char *file, int line, pte_t pte)
 {
 	pr_err("%s:%d: bad pte %08llx.\n", file, line, (long long)pte_val(pte));
Signature · 1 line
2.13.6
#1 lore raw
Quoted 2 lines · Corentin Labbe

The function __readwrite_bug() is not used at all, so this patch remove it.

This function seems unused since
5621caac1d95 ("ARM: kill off __mem_pci"). Adding Rob as author to Cc.

Best regards
Uwe

Quoted 49 lines
---
 arch/arm/include/asm/io.h | 5 -----
 arch/arm/kernel/traps.c   | 7 -------
 2 files changed, 12 deletions(-)
arch/arm/include/asm/io.h +0 -5
index 2cfbc531f63b..6a9d9d2d4c0a 100644
@@ -150,11 +150,6 @@ extern void __iomem * (*arch_ioremap_caller)(phys_addr_t, size_t,
 extern void (*arch_iounmap)(volatile void __iomem *);
 
 /*
- * Bad read/write accesses...
- */
-extern void __readwrite_bug(const char *fn);
-
-/*
  * A typesafe __io() helper
  */
 static inline void __iomem *__typesafe_io(unsigned long addr)
arch/arm/kernel/traps.c +0 -7
index 5cf04888c581..cce8b18d673f 100644
@@ -757,13 +757,6 @@ baddataabort(int code, unsigned long instr, struct pt_regs *regs)
 	arm_notify_die("unknown data abort code", regs, &info, instr, 0);
 }
 
-void __readwrite_bug(const char *fn)
-{
-	pr_err("%s called, but not implemented\n", fn);
-	BUG();
-}
-EXPORT_SYMBOL(__readwrite_bug);
-
 void __pte_error(const char *file, int line, pte_t pte)
 {
 	pr_err("%s:%d: bad pte %08llx.\n", file, line, (long long)pte_val(pte));
Signature · 7 lines
2.13.6


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |