lkml.org 
[lkml]   [2015]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH peterz-queue] module: mod_tree_ops can be static
kernel/module.c:163:29: sparse: symbol 'mod_tree_ops' was not declared. Should it be static?

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
module.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/module.c b/kernel/module.c
index 7b12181..10fe9d1 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -160,7 +160,7 @@ mod_tree_comp(unsigned long val, struct latch_tree_node *n)
return 0;
}

-const struct latch_tree_ops mod_tree_ops = {
+static const struct latch_tree_ops mod_tree_ops = {
.less = mod_tree_less,
.comp = mod_tree_comp,
};

\
 
 \ /
  Last update: 2015-02-27 20:01    [W:0.033 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site