Skip to contentSkip to conversation

module: Drop redundant declaration of struct module

PATCH Applied Jean Delvare 2 participants 2 messages Dec 16, 2016 – Jan 3, 2017 Module support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 module: Drop redundant declaration of struct module

Struct module is already declared at the beginning of the file, no need to declare it again.

Fixes 93c2e105f6bc ("module: Optimize __module_address() using a latched RB-tree")
Cc Peter Zijlstra (Intel) <[email protected]>
Cc Jessica Yu <[email protected]>
Cc Rusty Russell <[email protected]>
---
 include/linux/module.h |    2 --
 1 file changed, 2 deletions(-)
include/linux/module.h +0 -2
@@ -282,8 +282,6 @@ enum module_state {
 	MODULE_STATE_UNFORMED,	/* Still setting it up. */
 };
 
-struct module;
-
 struct mod_tree_node {
 	struct module *mod;
 	struct latch_tree_node node;
Signature · 2 lines
Jean Delvare
SUSE L3 Support