Skip to contentSkip to conversation

include/linux/torture.h: remove unused duplicate definition

PATCH In review Pranith Kumar 2 participants 2 messages Apr 16, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 include/linux/torture.h: remove unused duplicate definition

remove an unused duplicate definition of torture_param

---
 include/linux/torture.h |    6 ------
 1 file changed, 6 deletions(-)
include/linux/torture.h +0 -6
index b2e2b46..88a84a2 100644
@@ -49,12 +49,6 @@
 #define VERBOSE_TOROUT_ERRSTRING(s) \
 	do { if (verbose) pr_alert("%s" TORTURE_FLAG "!!! %s\n", torture_type, s); } while (0)
 
-/* Definitions for a non-string torture-test module parameter. */
-#define torture_parm(type, name, init, msg) \
-	static type name = init; \
-	module_param(name, type, 0444); \
-	MODULE_PARM_DESC(name, msg);
-
 /* Definitions for online/offline exerciser. */
 int torture_onoff_init(long ooholdoff, long oointerval);
 char *torture_onoff_stats(char *page);
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 3 lines · Pranith Kumar

remove an unused duplicate definition of torture_param

This one confused me at first because I could only find one torture_param(). I applied the patch anyway, and it built without errors. I looked more closely and realized that the names aren't quite the same. The one you removed has only one "a" in the name, and the one remaining has two "a"s in its name. ;-)

Good eyes! I updated the title and commit log and queued for 3.16.

Thanx, Paul

Quoted 24 lines
---
 include/linux/torture.h |    6 ------
 1 file changed, 6 deletions(-)
include/linux/torture.h +0 -6
index b2e2b46..88a84a2 100644
@@ -49,12 +49,6 @@
 #define VERBOSE_TOROUT_ERRSTRING(s) \
 	do { if (verbose) pr_alert("%s" TORTURE_FLAG "!!! %s\n", torture_type, s); } while (0)
 
-/* Definitions for a non-string torture-test module parameter. */
-#define torture_parm(type, name, init, msg) \
-	static type name = init; \
-	module_param(name, type, 0444); \
-	MODULE_PARM_DESC(name, msg);
-
 /* Definitions for online/offline exerciser. */
 int torture_onoff_init(long ooholdoff, long oointerval);
 char *torture_onoff_stats(char *page);
Signature · 1 line
1.7.9.5