From: Andrew Morton <akpm@osdl.org>
To: Joe Perches <joe@perches.com>
Cc: rlrevell@joe-job.com, linux-kernel@vger.kernel.org
Subject: Re: arch/i386/kernel/nmi.c: fix compiler warning
Date: Fri, 27 Jan 2006 15:34:05 -0800 [thread overview]
Message-ID: <20060127153405.62ceceab.akpm@osdl.org> (raw)
In-Reply-To: <1138309701.27471.12.camel@localhost>
Joe Perches <joe@perches.com> wrote:
>
> --- a/include/linux/smp.h
> +++ b/include/linux/smp.h
> @@ -90,12 +90,25 @@ void smp_prepare_boot_cpu(void);
> #else /* !SMP */
>
> /*
> - * These macros fold the SMP functionality into a single CPU system
> + * These macros and inlines fold the SMP functionality
> + * for single CPU systems
> */
> #define raw_smp_processor_id() 0
> #define hard_smp_processor_id() 0
> -#define smp_call_function(func,info,retry,wait) ({ 0; })
> -#define on_each_cpu(func,info,retry,wait) ({ func(info); 0; })
> +
> +static inline int smp_call_function(void (*func) (void *info), void *info,
> + int retry, int wait)
> +{
> + return 0;
> +}
I think we tried this before and it broke things. Because there are
callback functions which are inside CONFIG_SMP. With the macro, they don't
get referred to at all. Wth the inline, the compiler needs to see their
definition and errors out.
prev parent reply other threads:[~2006-01-27 23:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-26 20:33 arch/i386/kernel/nmi.c: fix compiler warning Lee Revell
2006-01-26 21:08 ` Joe Perches
2006-01-27 23:34 ` Andrew Morton [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=20060127153405.62ceceab.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rlrevell@joe-job.com \
/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