From: Jiri Kosina <jkosina@suse.cz>
To: Daniel Baluta <daniel.baluta@gmail.com>
Cc: Claudiu Ghioc <claudiughioc@gmail.com>,
akpm@linux-foundation.org, mhocko@suse.cz,
aneesh.kumar@linux.vnet.ibm.com, dhillf@gmail.com,
kamezawa.hiroyu@jp.fujitsu.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org,
Claudiu Ghioc <claudiu.ghioc@gmail.com>
Subject: Re: [PATCH] hugetlb: fix sparse warning for hugetlb_register_node
Date: Thu, 7 Mar 2013 15:11:46 +0100 (CET) [thread overview]
Message-ID: <alpine.LNX.2.00.1303071511090.28677@pobox.suse.cz> (raw)
In-Reply-To: <CAEnQRZAiiJqHcEHoS+=ZMAHdQwu9yYc28or1Di7h4R7PRn6iEg@mail.gmail.com>
On Thu, 7 Mar 2013, Daniel Baluta wrote:
> > Removed the following sparse warnings:
> > * mm/hugetlb.c:1764:6: warning: symbol
> > 'hugetlb_unregister_node' was not declared.
> > Should it be static?
> > * mm/hugetlb.c:1808:6: warning: symbol
> > 'hugetlb_register_node' was not declared.
> > Should it be static?
> >
> > Signed-off-by: Claudiu Ghioc <claudiu.ghioc@gmail.com>
> > ---
> > mm/hugetlb.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/mm/hugetlb.c b/mm/hugetlb.c
> > index 0a0be33..c65a8a5 100644
> > --- a/mm/hugetlb.c
> > +++ b/mm/hugetlb.c
> > @@ -1761,7 +1761,7 @@ static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp)
> > * Unregister hstate attributes from a single node device.
> > * No-op if no hstate attributes attached.
> > */
> > -void hugetlb_unregister_node(struct node *node)
> > +static void hugetlb_unregister_node(struct node *node)
> > {
> > struct hstate *h;
> > struct node_hstate *nhs = &node_hstates[node->dev.id];
> > @@ -1805,7 +1805,7 @@ static void hugetlb_unregister_all_nodes(void)
> > * Register hstate attributes for a single node device.
> > * No-op if attributes already registered.
> > */
> > -void hugetlb_register_node(struct node *node)
> > +static void hugetlb_register_node(struct node *node)
> > {
> > struct hstate *h;
> > struct node_hstate *nhs = &node_hstates[node->dev.id];
>
> Can you pick this up via trivial tree?
Seems like sparse is correct here, as register_hugetlbfs_with_node is
passing pointers to those functions.
Will take it.
--
Jiri Kosina
SUSE Labs
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2013-03-07 14:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-04 10:46 Claudiu Ghioc
2013-03-07 12:55 ` Daniel Baluta
2013-03-07 14:11 ` Jiri Kosina [this message]
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=alpine.LNX.2.00.1303071511090.28677@pobox.suse.cz \
--to=jkosina@suse.cz \
--cc=akpm@linux-foundation.org \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=claudiu.ghioc@gmail.com \
--cc=claudiughioc@gmail.com \
--cc=daniel.baluta@gmail.com \
--cc=dhillf@gmail.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox