From: Sam Ravnborg <sam@ravnborg.org>
To: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH] kbuild: silence section mismatch warnings
Date: Fri, 11 May 2007 23:16:04 +0200 [thread overview]
Message-ID: <20070511211604.GB382@uranus.ravnborg.org> (raw)
In-Reply-To: <20070511210850.GA382@uranus.ravnborg.org>
Use the new markers to avoid the warnings from init/main (arm + i386)
and mm/slab (all archs).
With this the noise level is dratiscally reduced.
Sam
diff --git a/init/main.c b/init/main.c
index 1940fa7..1d8ea31 100644
--- a/init/main.c
+++ b/init/main.c
@@ -423,7 +423,7 @@ static void __init setup_command_line(char *command_line)
* gcc-3.4 accidentally inlines this function, so use noinline.
*/
-static void noinline rest_init(void)
+static void __init_refok noinline rest_init(void)
__releases(kernel_lock)
{
int pid;
diff --git a/mm/slab.c b/mm/slab.c
index 944b205..ef60834 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1960,7 +1960,7 @@ static void slab_destroy(struct kmem_cache *cachep, struct slab *slabp)
* For setting up all the kmem_list3s for cache whose buffer_size is same as
* size of kmem_list3.
*/
-static void __init set_up_list3s(struct kmem_cache *cachep, int index)
+static void __init_refok set_up_list3s(struct kmem_cache *cachep, int index)
{
int node;
next prev parent reply other threads:[~2007-05-11 21:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-11 21:08 Sam Ravnborg
2007-05-11 21:16 ` Sam Ravnborg [this message]
2007-05-11 21:22 ` Kumar Gala
2007-05-12 2:58 ` Satyam Sharma
2007-05-12 6:29 ` Sam Ravnborg
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=20070511211604.GB382@uranus.ravnborg.org \
--to=sam@ravnborg.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®