* [PATCH -rt] 2.6.19-4c6-rt9 build problem
@ 2006-11-29 19:48 Paul E. McKenney
2006-11-29 20:03 ` Ingo Molnar
0 siblings, 1 reply; 5+ messages in thread
From: Paul E. McKenney @ 2006-11-29 19:48 UTC (permalink / raw)
To: mingo; +Cc: linux-kernel
Hello!
Got a compiler error building 1.6.19-rc6-rt9 on NUMA-Q, admittedly
with unusual config. The patch below solves it, though I cannot say
that I am an ACPI expert.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---
acpi_pmtmr.h | 2 ++
1 files changed, 2 insertions(+)
diff -urpNa -X dontdiff linux-2.6.19-rc6-rt9/include/linux/acpi_pmtmr.h linux-2.6.19-rc6-rt9.tscbug/include/linux/acpi_pmtmr.h
--- linux-2.6.19-rc6-rt9/include/linux/acpi_pmtmr.h 2006-11-28 17:21:55.000000000 -0800
+++ linux-2.6.19-rc6-rt9.tscbug/include/linux/acpi_pmtmr.h 2006-11-29 08:09:07.000000000 -0800
@@ -27,6 +27,8 @@ static inline u32 acpi_pm_read_early(voi
#else
+#define pmtmr_ioport 0
+
static inline u32 acpi_pm_read_early(void)
{
return 0;
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH -rt] 2.6.19-4c6-rt9 build problem 2006-11-29 19:48 [PATCH -rt] 2.6.19-4c6-rt9 build problem Paul E. McKenney @ 2006-11-29 20:03 ` Ingo Molnar 2006-11-29 22:44 ` Paul E. McKenney 0 siblings, 1 reply; 5+ messages in thread From: Ingo Molnar @ 2006-11-29 20:03 UTC (permalink / raw) To: Paul E. McKenney; +Cc: linux-kernel * Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote: > Hello! > > Got a compiler error building 1.6.19-rc6-rt9 on NUMA-Q, admittedly > with unusual config. The patch below solves it, though I cannot say > that I am an ACPI expert. thanks, applied. Have you tried to boot the resulting kernel as well? Ingo ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH -rt] 2.6.19-4c6-rt9 build problem 2006-11-29 20:03 ` Ingo Molnar @ 2006-11-29 22:44 ` Paul E. McKenney 2006-11-29 23:15 ` Paul E. McKenney 0 siblings, 1 reply; 5+ messages in thread From: Paul E. McKenney @ 2006-11-29 22:44 UTC (permalink / raw) To: Ingo Molnar; +Cc: Paul E. McKenney, linux-kernel On Wed, Nov 29, 2006 at 09:03:07PM +0100, Ingo Molnar wrote: > > * Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote: > > > Hello! > > > > Got a compiler error building 1.6.19-rc6-rt9 on NUMA-Q, admittedly > > with unusual config. The patch below solves it, though I cannot say > > that I am an ACPI expert. > > thanks, applied. Have you tried to boot the resulting kernel as well? Hit another build error. :-/ The following combined (crude) patch makes the build succeed. Rebooting now, with fingers firmly crossed... Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> include/linux/acpi_pmtmr.h | 2 ++ mm/page_alloc.c | 2 ++ 2 files changed, 4 insertions(+) diff -urpNa -X dontdiff linux-2.6.19-rc6-rt9/include/linux/acpi_pmtmr.h linux-2.6.19-rc6-rt9.tscbug/include/linux/acpi_pmtmr.h --- linux-2.6.19-rc6-rt9/include/linux/acpi_pmtmr.h 2006-11-28 17:21:55.000000000 -0800 +++ linux-2.6.19-rc6-rt9.tscbug/include/linux/acpi_pmtmr.h 2006-11-29 08:09:07.000000000 -0800 @@ -27,6 +27,8 @@ static inline u32 acpi_pm_read_early(voi #else +#define pmtmr_ioport 0 + static inline u32 acpi_pm_read_early(void) { return 0; diff -urpNa -X dontdiff linux-2.6.19-rc6-rt9/mm/page_alloc.c linux-2.6.19-rc6-rt9.tscbug/mm/page_alloc.c --- linux-2.6.19-rc6-rt9/mm/page_alloc.c 2006-11-28 17:21:56.000000000 -0800 +++ linux-2.6.19-rc6-rt9.tscbug/mm/page_alloc.c 2006-11-29 14:14:09.000000000 -0800 @@ -2790,7 +2790,9 @@ static int page_alloc_cpu_notify(struct __lock_cpu_pcp(&flags, cpu); WARN_ON_ONCE(cpu == raw_smp_processor_id()); +#ifdef CONFIG_PM __drain_pages(cpu); +#endif /* #ifdef CONFIG_PM */ vm_events_fold_cpu(cpu); refresh_cpu_vm_stats(cpu); unlock_cpu_pcp(flags, cpu); ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH -rt] 2.6.19-4c6-rt9 build problem 2006-11-29 22:44 ` Paul E. McKenney @ 2006-11-29 23:15 ` Paul E. McKenney 2006-11-30 7:19 ` Ingo Molnar 0 siblings, 1 reply; 5+ messages in thread From: Paul E. McKenney @ 2006-11-29 23:15 UTC (permalink / raw) To: Paul E. McKenney; +Cc: Ingo Molnar, linux-kernel On Wed, Nov 29, 2006 at 02:44:52PM -0800, Paul E. McKenney wrote: > On Wed, Nov 29, 2006 at 09:03:07PM +0100, Ingo Molnar wrote: > > > > * Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote: > > > > > Hello! > > > > > > Got a compiler error building 1.6.19-rc6-rt9 on NUMA-Q, admittedly > > > with unusual config. The patch below solves it, though I cannot say > > > that I am an ACPI expert. > > > > thanks, applied. Have you tried to boot the resulting kernel as well? And with these two changes, it does boot! Thanx, Paul > Hit another build error. :-/ > > The following combined (crude) patch makes the build succeed. Rebooting now, > with fingers firmly crossed... > > Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> > > include/linux/acpi_pmtmr.h | 2 ++ > mm/page_alloc.c | 2 ++ > 2 files changed, 4 insertions(+) > > diff -urpNa -X dontdiff linux-2.6.19-rc6-rt9/include/linux/acpi_pmtmr.h linux-2.6.19-rc6-rt9.tscbug/include/linux/acpi_pmtmr.h > --- linux-2.6.19-rc6-rt9/include/linux/acpi_pmtmr.h 2006-11-28 17:21:55.000000000 -0800 > +++ linux-2.6.19-rc6-rt9.tscbug/include/linux/acpi_pmtmr.h 2006-11-29 08:09:07.000000000 -0800 > @@ -27,6 +27,8 @@ static inline u32 acpi_pm_read_early(voi > > #else > > +#define pmtmr_ioport 0 > + > static inline u32 acpi_pm_read_early(void) > { > return 0; > diff -urpNa -X dontdiff linux-2.6.19-rc6-rt9/mm/page_alloc.c linux-2.6.19-rc6-rt9.tscbug/mm/page_alloc.c > --- linux-2.6.19-rc6-rt9/mm/page_alloc.c 2006-11-28 17:21:56.000000000 -0800 > +++ linux-2.6.19-rc6-rt9.tscbug/mm/page_alloc.c 2006-11-29 14:14:09.000000000 -0800 > @@ -2790,7 +2790,9 @@ static int page_alloc_cpu_notify(struct > __lock_cpu_pcp(&flags, cpu); > WARN_ON_ONCE(cpu == raw_smp_processor_id()); > > +#ifdef CONFIG_PM > __drain_pages(cpu); > +#endif /* #ifdef CONFIG_PM */ > vm_events_fold_cpu(cpu); > refresh_cpu_vm_stats(cpu); > unlock_cpu_pcp(flags, cpu); ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH -rt] 2.6.19-4c6-rt9 build problem 2006-11-29 23:15 ` Paul E. McKenney @ 2006-11-30 7:19 ` Ingo Molnar 0 siblings, 0 replies; 5+ messages in thread From: Ingo Molnar @ 2006-11-30 7:19 UTC (permalink / raw) To: Paul E. McKenney; +Cc: linux-kernel * Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote: > > > thanks, applied. Have you tried to boot the resulting kernel as > > > well? > > And with these two changes, it does boot! great! Applied both of them. Ingo ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-11-30 7:21 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-11-29 19:48 [PATCH -rt] 2.6.19-4c6-rt9 build problem Paul E. McKenney 2006-11-29 20:03 ` Ingo Molnar 2006-11-29 22:44 ` Paul E. McKenney 2006-11-29 23:15 ` Paul E. McKenney 2006-11-30 7:19 ` Ingo Molnar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox