From: Bob Gill <gillb4@telusplanet.net>
To: Hugh Dickins <hugh@veritas.com>
Cc: Linux kernel Mailing list <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.15-rc2-git3 build fails at mtrr/ipi_handler undeclared
Date: Thu, 24 Nov 2005 13:19:02 -0700 [thread overview]
Message-ID: <43862036.4060706@telusplanet.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0511240751280.5688@goblin.wat.veritas.com>
Hugh Dickins wrote:
>
>That's one of the things fixed by Andrew's patch below
>(though Linus fixed it differently in the end).
>Or you could just wait for 2.6.15-rc2-git4, should be along soon.
>
>Hugh
>
>diff -puN include/linux/smp.h~smp_call_function-must-be-a-macro include/linux/smp.h
>--- devel/include/linux/smp.h~smp_call_function-must-be-a-macro 2005-11-23 00:14:19.000000000 -0800
>+++ devel-akpm/include/linux/smp.h 2005-11-23 00:20:54.000000000 -0800
>@@ -94,13 +94,7 @@ void smp_prepare_boot_cpu(void);
> */
> #define raw_smp_processor_id() 0
> #define hard_smp_processor_id() 0
>-
>-static inline int smp_call_function(void (*func) (void *info), void *info,
>- int retry, int wait)
>-{
>- return 0;
>-}
>-
>+#define smp_call_function(func,info,retry,wait) ({ 0; })
> #define on_each_cpu(func,info,retry,wait) ({ func(info); 0; })
> static inline void smp_send_reschedule(int cpu) { }
> #define num_booting_cpus() 1
>diff -puN net/core/flow.c~smp_call_function-must-be-a-macro net/core/flow.c
>--- devel/net/core/flow.c~smp_call_function-must-be-a-macro 2005-11-23 00:17:40.000000000 -0800
>+++ devel-akpm/net/core/flow.c 2005-11-23 00:17:47.000000000 -0800
>@@ -292,7 +292,7 @@ void flow_cache_flush(void)
> init_completion(&info.completion);
>
> local_bh_disable();
>- smp_call_function(flow_cache_flush_per_cpu, &info, 1, 0);
>+ (void)smp_call_function(flow_cache_flush_per_cpu, &info, 1, 0);
> flow_cache_flush_tasklet((unsigned long)&info);
> local_bh_enable();
>
>
>
>
Done! Thanks for your reply. I built 2.6.15-rc2-git4 and its running
it as I type this. Linus' final looks very much like the patch above,
except for the void typecast in smp_call_funciton.
Thanks again,
Bob
prev parent reply other threads:[~2005-11-24 20:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-24 7:17 2.6.15-rc2-git3 build fails at mtrr/ipi_handler undeclared Bob Gill
2005-11-24 7:52 ` Hugh Dickins
2005-11-24 20:19 ` Bob Gill [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=43862036.4060706@telusplanet.net \
--to=gillb4@telusplanet.net \
--cc=hugh@veritas.com \
--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