Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1543622

[PATCH] module: Drop redundant declaration of struct module

From Jean Delvare <jdelvare@suse.de>
Newsgroups linux.kernel
Subject [PATCH] module: Drop redundant declaration of struct module
Date 2016-12-16 18:50 +0100
Message-ID <sP4NQ-6JM-11@gated-at.bofh.it> (permalink)
Organization SUSE Linux

Show all headers | View raw


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

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: 93c2e105f6bc ("module: Optimize __module_address() using a latched RB-tree")
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Jessica Yu <jeyu@redhat.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
---
 include/linux/module.h |    2 --
 1 file changed, 2 deletions(-)

--- linux-4.9.orig/include/linux/module.h	2016-12-11 20:17:54.000000000 +0100
+++ linux-4.9/include/linux/module.h	2016-12-16 17:25:01.696622103 +0100
@@ -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;


-- 
Jean Delvare
SUSE L3 Support

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] module: Drop redundant declaration of struct module Jean Delvare <jdelvare@suse.de> - 2016-12-16 18:50 +0100

csiph-web