From: Hannes Eder <hannes@hanneseder.net>
To: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: [PATCH] proc: fix sparse warning: make function grab_header static
Date: Fri, 29 Aug 2008 19:01:21 +0000 [thread overview]
Message-ID: <48bad4bb.0aaa660a.7eb7.ffff80b2@mx.google.com> (raw)
Fix the following sparse warning in fs/proc/proc_sysctl.c, by making
the function grab_header static.
warning: symbol 'grab_header' was not declared. Should it be static?
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
---
fs/proc/proc_sysctl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index f9a8b89..84f58e8 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -66,7 +66,7 @@ static struct ctl_table *find_in_table(struct ctl_table *p, struct qstr *name)
return NULL;
}
-struct ctl_table_header *grab_header(struct inode *inode)
+static struct ctl_table_header *grab_header(struct inode *inode)
{
if (PROC_I(inode)->sysctl)
return sysctl_head_grab(PROC_I(inode)->sysctl);
WARNING: multiple messages have this Message-ID (diff)
From: Hannes Eder <hannes@hanneseder.net>
To: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: [PATCH] proc: fix sparse warning: make function grab_header static
Date: Fri, 29 Aug 2008 21:01:21 +0200 [thread overview]
Message-ID: <48bad4bb.0aaa660a.7eb7.ffff80b2@mx.google.com> (raw)
Fix the following sparse warning in fs/proc/proc_sysctl.c, by making
the function grab_header static.
warning: symbol 'grab_header' was not declared. Should it be static?
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
---
fs/proc/proc_sysctl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index f9a8b89..84f58e8 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -66,7 +66,7 @@ static struct ctl_table *find_in_table(struct ctl_table *p, struct qstr *name)
return NULL;
}
-struct ctl_table_header *grab_header(struct inode *inode)
+static struct ctl_table_header *grab_header(struct inode *inode)
{
if (PROC_I(inode)->sysctl)
return sysctl_head_grab(PROC_I(inode)->sysctl);
next reply other threads:[~2008-08-29 19:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-29 19:01 Hannes Eder [this message]
2008-08-29 19:01 ` [PATCH] proc: fix sparse warning: make function grab_header static Hannes Eder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48bad4bb.0aaa660a.7eb7.ffff80b2@mx.google.com \
--to=hannes@hanneseder.net \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.