summaryrefslogtreecommitdiff
path: root/net/6lowpan
diff options
context:
space:
mode:
authorAlexander Aring <aar@pengutronix.de>2016-03-04 10:10:21 +0100
committerMarcel Holtmann <marcel@holtmann.org>2016-03-10 19:51:29 +0100
commit6aaf37b41a37b184e509aa3ec29d96b7712dfd43 (patch)
tree1dd3b4e9d7badbdff88379097d3f0face7eb8530 /net/6lowpan
parentf16089209e1029d45ae78dd238b6ab9b2c9a886c (diff)
downloadlwn-6aaf37b41a37b184e509aa3ec29d96b7712dfd43.tar.gz
lwn-6aaf37b41a37b184e509aa3ec29d96b7712dfd43.zip
6lowpan: debugfs: add missing static
This patch solves the sparse warning: net/6lowpan/debugfs.c:164:30: warning: symbol 'lowpan_ctx_pfx_fops' was not declared. Should it be static? net/6lowpan/debugfs.c:241:30: warning: symbol 'lowpan_context_fops' was not declared. Should it be static? Signed-off-by: Alexander Aring <aar@pengutronix.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/6lowpan')
-rw-r--r--net/6lowpan/debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/6lowpan/debugfs.c b/net/6lowpan/debugfs.c
index aa49ff4ce6fd..0793a8157472 100644
--- a/net/6lowpan/debugfs.c
+++ b/net/6lowpan/debugfs.c
@@ -161,7 +161,7 @@ out:
return status;
}
-const struct file_operations lowpan_ctx_pfx_fops = {
+static const struct file_operations lowpan_ctx_pfx_fops = {
.open = lowpan_ctx_pfx_open,
.read = seq_read,
.write = lowpan_ctx_pfx_write,
@@ -238,7 +238,7 @@ static int lowpan_context_open(struct inode *inode, struct file *file)
return single_open(file, lowpan_context_show, inode->i_private);
}
-const struct file_operations lowpan_context_fops = {
+static const struct file_operations lowpan_context_fops = {
.open = lowpan_context_open,
.read = seq_read,
.llseek = seq_lseek,