Skip to content

Commit

Permalink
6lowpan: debugfs: add missing static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Aring authored and Marcel Holtmann committed Mar 10, 2016
1 parent f160892 commit 6aaf37b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/6lowpan/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static ssize_t lowpan_ctx_pfx_write(struct file *fp,
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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6aaf37b

Please sign in to comment.