Skip to contentSkip to conversation

mtd: rawnand: Remove unused caller_is_module() definition

PATCH Applied Boris Brezillon 2 participants 2 messages Jul 19, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: rawnand: Remove unused caller_is_module() definition

Commit 260e89a6e0d6 ("mtd: core: tone down suggestion that dev.parent should be set") removed the only user of caller_is_module() but forgot to remove the definition itself. Let's remove it now.

---
 drivers/mtd/nand/raw/nand_base.c | 12 ------------
 1 file changed, 12 deletions(-)
drivers/mtd/nand/raw/nand_base.c +0 -12
index 323a900f3697..99d67d7d2f94 100644
@@ -6718,18 +6718,6 @@ int nand_scan_tail(struct mtd_info *mtd)
 }
 EXPORT_SYMBOL(nand_scan_tail);
 
-/*
- * is_module_text_address() isn't exported, and it's mostly a pointless
- * test if this is a module _anyway_ -- they'd have to try _really_ hard
- * to call us from in-kernel code if the core NAND support is modular.
- */
-#ifdef MODULE
-#define caller_is_module() (1)
-#else
-#define caller_is_module() \
-	is_module_text_address((unsigned long)__builtin_return_address(0))
-#endif
-
 /**
  * nand_scan_with_ids - [NAND Interface] Scan for the NAND device
  * @mtd: MTD device structure
Signature · 1 line
2.14.1
maintainer Applied
#1 lore raw

Hi Boris,

Boris Brezillon <[email protected]> wrote on Thu, 19 Jul 2018 22:47:38 +0200:

Quoted 6 lines

Commit 260e89a6e0d6 ("mtd: core: tone down suggestion that dev.parent should be set") removed the only user of caller_is_module() but forgot to remove the definition itself. Let's remove it now.

---

Applied to nand/next.

Thanks,
Miquèl