From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: Adrian Bunk <bunk@stusta.de>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org, linux-acpi@vger.kernel.org
Subject: Re: [PATCH -mm] acpi: fix memory_hotplug externs
Date: Sat, 1 Apr 2006 16:08:18 -0800 [thread overview]
Message-ID: <20060401160818.b9777586.rdunlap@xenotime.net> (raw)
In-Reply-To: <20060401221641.GC11800@stusta.de>
On Sun, 2 Apr 2006 00:16:41 +0200 Adrian Bunk wrote:
> On Tue, Mar 28, 2006 at 11:46:55AM -0800, Randy.Dunlap wrote:
> > From: Randy Dunlap <rdunlap@xenotime.net>
> >
> > Spell CONFIG option correctly so that externs work.
> > Fixes these warnings:
> > drivers/acpi/acpi_memhotplug.c:248: warning: implicit declaration of function 'add_memory'
> > drivers/acpi/acpi_memhotplug.c:312: warning: implicit declaration of function 'remove_memory'
> >
> > Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
> > ---
> > linsrc/linux-2616-mm2/include/linux/memory_hotplug.h | 2 +-
> > 1 files changed, 1 insertion(+), 1 deletion(-)
> >
> > --- rddunlap.orig/linsrc/linux-2616-mm2/include/linux/memory_hotplug.h
> > +++ rddunlap/linsrc/linux-2616-mm2/include/linux/memory_hotplug.h
> > @@ -105,7 +105,7 @@ static inline int __remove_pages(struct
> > }
> >
> > #if defined(CONFIG_MEMORY_HOTPLUG) || defined(CONFIG_ACPI_HOTPLUG_MEMORY) \
> > - || defined(CONFIG_ACPI_MEMORY_HOTPLUG_MODULE)
> > + || defined(CONFIG_ACPI_HOTPLUG_MEMORY_MODULE)
> > extern int add_memory(u64 start, u64 size);
> > extern int remove_memory(u64 start, u64 size);
> > #endif
>
> What about simply offering the prototypes unconditionally?
duh, yes, that should be OK AFAIK. Could you do that?
---
~Randy
next prev parent reply other threads:[~2006-04-02 0:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-28 19:46 Randy.Dunlap
2006-04-01 22:16 ` Adrian Bunk
2006-04-02 0:08 ` Randy.Dunlap [this message]
2006-04-02 8:56 ` [-mm patch] memory_hotplug.h: no need to #if guard the {add,remove}_memory() prototypes Adrian Bunk
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=20060401160818.b9777586.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=akpm@osdl.org \
--cc=bunk@stusta.de \
--cc=linux-acpi@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 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®