public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: ib@wupperonline.de (Ingo Brueckl)
To: Ingo Molnar <mingo@elte.hu>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Jesper Juhl <jj@chaosbits.net>
Cc: Tom Spink <tspink@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] compile time warnings
Date: Fri, 02 Jan 2009 14:42:00 +0100	[thread overview]
Message-ID: <495e192c@wupperonline.de> (raw)
In-Reply-To: <20090102130140.GA30190@elte.hu>

Ingo Molnar <mingo@elte.hu> writes:

 > yes, with a small nit:
>>
>> +static inline void permanent_kmaps_init(pgd_t *pgd_base)
>> +{
>> +     (void) pgd_base;

 > there's no need for this line - this is not a macro, so the function
 > parameter does not have to be 'used'.

I live and learn.


fix compiler warning in arch/x86/mm/init_32.c

Signed-off-by: Ingo Brueckl <ib@wupperonline.de>

--- linux-2.6.28/arch/x86/mm/init_32.c.orig	2008-12-25 00:26:37.000000000 +0100
+++ linux-2.6.28/arch/x86/mm/init_32.c	2009-01-02 14:21:18.000000000 +0100
@@ -436,8 +436,12 @@ static void __init set_highmem_pages_ini
 #endif /* !CONFIG_NUMA */

 #else
-# define permanent_kmaps_init(pgd_base)		do { } while (0)
-# define set_highmem_pages_init()	do { } while (0)
+static inline void permanent_kmaps_init(pgd_t *pgd_base)
+{
+}
+static inline void set_highmem_pages_init(void)
+{
+}
 #endif /* CONFIG_HIGHMEM */

 void __init native_pagetable_setup_start(pgd_t *base)

  reply	other threads:[~2009-01-02 13:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-01 21:13 compile time warnings Ingo Brueckl
2009-01-01 22:52 ` Jesper Juhl
2009-01-02  1:35   ` Tom Spink
2009-01-02  1:39     ` Harvey Harrison
2009-01-02  2:07     ` Jesper Juhl
2009-01-02  9:57       ` Ingo Molnar
2009-01-02 12:53         ` [PATCH] " Ingo Brueckl
2009-01-02 13:01           ` Ingo Molnar
2009-01-02 13:42             ` Ingo Brueckl [this message]
2009-01-02 14:42               ` Ingo Molnar
2009-01-02 16:07         ` Jesper Juhl
2009-01-02 16:10           ` Jesper Juhl
2009-01-02  2:48 ` Ingo Brueckl
2009-01-02 20:03 ` Robert Hancock

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=495e192c@wupperonline.de \
    --to=ib@wupperonline.de \
    --cc=mingo@elte.hu \
    --cc=torvalds@linux-foundation.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