* linux-next: origin tree build failure
@ 2008-07-25 0:30 Stephen Rothwell
0 siblings, 0 replies; 39+ messages in thread
From: Stephen Rothwell @ 2008-07-25 0:30 UTC (permalink / raw)
To: Linus Torvalds
Cc: ppc-dev, Steven Whitehouse, linux-next, LKML, Trond Myklebust
[-- Attachment #1: Type: text/plain, Size: 511 bytes --]
Hi all,
Today's linux-next (really just Linus' tree) build (powerpc
ppc64_defconfig) failed like this:
fs/nfs/nfsroot.c:130: error: tokens causes a section type conflict
"tokens" is a match_table_t which has const added to it in commit
f9247273cb69ba101877e946d2d83044409cc8c5 "UFS: add const to parser token
table". But "tokens" is also marked __initdata. I changed it to
__initconst.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 39+ messages in thread
* linux-next: origin tree build failure
@ 2008-12-29 0:00 Stephen Rothwell
0 siblings, 0 replies; 39+ messages in thread
From: Stephen Rothwell @ 2008-12-29 0:00 UTC (permalink / raw)
To: David S. Miller, Neil Horman; +Cc: netdev, linux-next, Linus, LKML, ppc-dev
Hi Dave, Neil,
Today's linux-next build (powerpc ppc64_defconfig) failed like this:
drivers/net/ibmveth.c: In function 'ibmveth_poll':
drivers/net/ibmveth.c:1034: warning: passing argument 1 of 'netif_rx_reschedule' from incompatible pointer type
drivers/net/ibmveth.c:1034: error: too many arguments to function 'netif_rx_reschedule'
Another miss in commit 908a7a16b852ffd618a9127be8d62432182d81b4 ("net: Remove
unused netdev arg from some NAPI interfaces").
I have added the following patch for today.
(I wonder how many more there will be? :-()
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 29 Dec 2008 10:56:00 +1100
Subject: [PATCH] net: ibmveth NAPI interface cleanup fix
Commit 908a7a16b852ffd618a9127be8d62432182d81b4 ("net: Remove unused
netdev arg from some NAPI interfaces") missed one spot.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
drivers/net/ibmveth.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c
index 1f055a9..9bc0f17 100644
--- a/drivers/net/ibmveth.c
+++ b/drivers/net/ibmveth.c
@@ -1031,7 +1031,7 @@ static int ibmveth_poll(struct napi_struct *napi, int budget)
netif_rx_complete(napi);
if (ibmveth_rxq_pending_buffer(adapter) &&
- netif_rx_reschedule(netdev, napi)) {
+ netif_rx_reschedule(napi)) {
lpar_rc = h_vio_signal(adapter->vdev->unit_address,
VIO_IRQ_DISABLE);
goto restart_poll;
--
1.6.0.5
^ permalink raw reply related [flat|nested] 39+ messages in thread
* linux-next: origin tree build failure
@ 2009-01-11 23:48 Stephen Rothwell
2009-01-12 0:10 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 39+ messages in thread
From: Stephen Rothwell @ 2009-01-11 23:48 UTC (permalink / raw)
To: Linus Torvalds
Cc: Mike, David S. Miller, Rusty Russell, LKML, Travis, linuxppc-dev,
linux-next, Paul Mackerras, Andrew Morton, Ingo Molnar
[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]
Hi Linus,
Today's linux-next build (powerpc ppc64_defconfig) failed like this:
arch/powerpc/platforms/pasemi/cpufreq.c: In function 'pas_cpufreq_cpu_init':
arch/powerpc/platforms/pasemi/cpufreq.c:216: error: incompatible types in assignment
arch/powerpc/platforms/powermac/cpufreq_64.c: In function 'g5_cpufreq_cpu_init':
arch/powerpc/platforms/powermac/cpufreq_64.c:365: error: incompatible types in assignment
arch/powerpc/platforms/cell/cbe_cpufreq.c: In function 'cbe_cpufreq_cpu_init':
arch/powerpc/platforms/cell/cbe_cpufreq.c:121: error: incompatible types in assignment
Caused by commit 835481d9bcd65720b473db6b38746a74a3964218 ("cpumask:
convert struct cpufreq_policy to cpumask_var_t") which missed updating
all the powerpc (at least) cpufreq drivers.
Reverting that one commit required fixups, so I reverted merge commit
4e9b1c184cadbece3694603de5f880b6e35bd7a7 ("Merge branch 'cpus4096-for-linus'
of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip")
instead.
I am hoping that this will be fixed soon and that revert doesn't
propagate more pain through today's linux-next.
This branch was last committed to in the tip tree on Jan 7 (the patch
above was committed on Jan 6) but was never propagated to linux-next
before being merged into your tree yesterday.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-01-11 23:48 linux-next: origin tree build failure Stephen Rothwell
@ 2009-01-12 0:10 ` Benjamin Herrenschmidt
2009-01-12 0:22 ` [PATCH] powerpc: Fix cpufreq drivers after cpufreq core changes Benjamin Herrenschmidt
2009-01-12 9:05 ` linux-next: origin tree build failure Ingo Molnar
0 siblings, 2 replies; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-01-12 0:10 UTC (permalink / raw)
To: Stephen Rothwell
Cc: David S. Miller, Rusty Russell, LKML, Mike Travis, linuxppc-dev,
linux-next, Paul Mackerras, Ingo Molnar, Linus Torvalds,
Andrew Morton
On Mon, 2009-01-12 at 10:48 +1100, Stephen Rothwell wrote:
> Hi Linus,
>
> Today's linux-next build (powerpc ppc64_defconfig) failed like this:
>
> arch/powerpc/platforms/pasemi/cpufreq.c: In function 'pas_cpufreq_cpu_init':
> arch/powerpc/platforms/pasemi/cpufreq.c:216: error: incompatible types in assignment
> arch/powerpc/platforms/powermac/cpufreq_64.c: In function 'g5_cpufreq_cpu_init':
> arch/powerpc/platforms/powermac/cpufreq_64.c:365: error: incompatible types in assignment
> arch/powerpc/platforms/cell/cbe_cpufreq.c: In function 'cbe_cpufreq_cpu_init':
> arch/powerpc/platforms/cell/cbe_cpufreq.c:121: error: incompatible types in assignment
>
> Caused by commit 835481d9bcd65720b473db6b38746a74a3964218 ("cpumask:
> convert struct cpufreq_policy to cpumask_var_t") which missed updating
> all the powerpc (at least) cpufreq drivers.
Yeah, it only updates x86 it seems ...
> Reverting that one commit required fixups, so I reverted merge commit
> 4e9b1c184cadbece3694603de5f880b6e35bd7a7 ("Merge branch 'cpus4096-for-linus'
> of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip")
> instead.
>
> I am hoping that this will be fixed soon and that revert doesn't
> propagate more pain through today's linux-next.
I've just made a patch, testing it now, will send it in a few minutes
Cheers,
Ben.
^ permalink raw reply [flat|nested] 39+ messages in thread
* [PATCH] powerpc: Fix cpufreq drivers after cpufreq core changes
2009-01-12 0:10 ` Benjamin Herrenschmidt
@ 2009-01-12 0:22 ` Benjamin Herrenschmidt
2009-01-12 8:34 ` Ingo Molnar
2009-01-12 17:44 ` Olof Johansson
2009-01-12 9:05 ` linux-next: origin tree build failure Ingo Molnar
1 sibling, 2 replies; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-01-12 0:22 UTC (permalink / raw)
To: Linus Torvalds
Cc: Stephen Rothwell, David S. Miller, arndb, Rusty Russell, LKML,
Mike Travis, linuxppc-dev, linux-next, Paul Mackerras,
Olof Johansson, Ingo Molnar, Andrew Morton
This updates the cpufreq drivers in arch/powerpc so they build again
after the core cpufreq changes that broke them in commit
in835481d9bcd65720b473db6b38746a74a3964218.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
Tested on a G5. Olof, Arnd, any chance you can test the cell and pasemi
drivers still work ?
Linus, you can probably merge this now to fix the build problems.
diff --git a/arch/powerpc/platforms/cell/cbe_cpufreq.c b/arch/powerpc/platforms/cell/cbe_cpufreq.c
index ec7c8f4..e6506cd 100644
--- a/arch/powerpc/platforms/cell/cbe_cpufreq.c
+++ b/arch/powerpc/platforms/cell/cbe_cpufreq.c
@@ -118,7 +118,7 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy)
policy->cur = cbe_freqs[cur_pmode].frequency;
#ifdef CONFIG_SMP
- policy->cpus = per_cpu(cpu_sibling_map, policy->cpu);
+ cpumask_copy(policy->cpus, &per_cpu(cpu_sibling_map, policy->cpu));
#endif
cpufreq_frequency_table_get_attr(cbe_freqs, policy->cpu);
diff --git a/arch/powerpc/platforms/cell/cpufreq_spudemand.c b/arch/powerpc/platforms/cell/cpufreq_spudemand.c
index a3c6c01..968c1c0 100644
--- a/arch/powerpc/platforms/cell/cpufreq_spudemand.c
+++ b/arch/powerpc/platforms/cell/cpufreq_spudemand.c
@@ -110,7 +110,7 @@ static int spu_gov_govern(struct cpufreq_policy *policy, unsigned int event)
}
/* initialize spu_gov_info for all affected cpus */
- for_each_cpu_mask(i, policy->cpus) {
+ for_each_cpu(i, policy->cpus) {
affected_info = &per_cpu(spu_gov_info, i);
affected_info->policy = policy;
}
@@ -127,7 +127,7 @@ static int spu_gov_govern(struct cpufreq_policy *policy, unsigned int event)
spu_gov_cancel_work(info);
/* clean spu_gov_info for all affected cpus */
- for_each_cpu_mask (i, policy->cpus) {
+ for_each_cpu (i, policy->cpus) {
info = &per_cpu(spu_gov_info, i);
info->policy = NULL;
}
diff --git a/arch/powerpc/platforms/pasemi/cpufreq.c b/arch/powerpc/platforms/pasemi/cpufreq.c
index 86db47c..be2527a 100644
--- a/arch/powerpc/platforms/pasemi/cpufreq.c
+++ b/arch/powerpc/platforms/pasemi/cpufreq.c
@@ -213,7 +213,7 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
pr_debug("current astate is at %d\n",cur_astate);
policy->cur = pas_freqs[cur_astate].frequency;
- policy->cpus = cpu_online_map;
+ cpumask_copy(policy->cpus, &cpu_online_map);
ppc_proc_freq = policy->cur * 1000ul;
diff --git a/arch/powerpc/platforms/powermac/cpufreq_64.c b/arch/powerpc/platforms/powermac/cpufreq_64.c
index 4dfb4bc..beb3833 100644
--- a/arch/powerpc/platforms/powermac/cpufreq_64.c
+++ b/arch/powerpc/platforms/powermac/cpufreq_64.c
@@ -362,7 +362,7 @@ static int g5_cpufreq_cpu_init(struct cpufreq_policy *policy)
/* secondary CPUs are tied to the primary one by the
* cpufreq core if in the secondary policy we tell it that
* it actually must be one policy together with all others. */
- policy->cpus = cpu_online_map;
+ cpumask_copy(policy->cpus, &cpu_online_map);
cpufreq_frequency_table_get_attr(g5_cpu_freqs, policy->cpu);
return cpufreq_frequency_table_cpuinfo(policy,
^ permalink raw reply related [flat|nested] 39+ messages in thread
* Re: [PATCH] powerpc: Fix cpufreq drivers after cpufreq core changes
2009-01-12 0:22 ` [PATCH] powerpc: Fix cpufreq drivers after cpufreq core changes Benjamin Herrenschmidt
@ 2009-01-12 8:34 ` Ingo Molnar
2009-01-12 21:45 ` Benjamin Herrenschmidt
2009-01-12 17:44 ` Olof Johansson
1 sibling, 1 reply; 39+ messages in thread
From: Ingo Molnar @ 2009-01-12 8:34 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Stephen Rothwell, arndb, Rusty Russell, LKML, Mike Travis,
linuxppc-dev, linux-next, Paul Mackerras, Olof Johansson,
Andrew Morton, Linus Torvalds, David S. Miller
* Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> This updates the cpufreq drivers in arch/powerpc so they build again
> after the core cpufreq changes that broke them in commit
> in835481d9bcd65720b473db6b38746a74a3964218.
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
>
> Tested on a G5. Olof, Arnd, any chance you can test the cell and pasemi
> drivers still work ?
>
> Linus, you can probably merge this now to fix the build problems.
Thanks Ben!
The powerpc defconfig built fine - you might wan to turn on cpufreq in the
powerpc defconfig so that cross-build tests can catch problems like this.
Ingo
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-01-12 0:10 ` Benjamin Herrenschmidt
2009-01-12 0:22 ` [PATCH] powerpc: Fix cpufreq drivers after cpufreq core changes Benjamin Herrenschmidt
@ 2009-01-12 9:05 ` Ingo Molnar
2009-01-12 9:24 ` Stephen Rothwell
2009-01-12 9:49 ` Michael Ellerman
1 sibling, 2 replies; 39+ messages in thread
From: Ingo Molnar @ 2009-01-12 9:05 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Stephen Rothwell, Rusty Russell, LKML, Mike Travis, linuxppc-dev,
linux-next, Paul Mackerras, Andrew Morton, Linus Torvalds,
David S. Miller
* Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Mon, 2009-01-12 at 10:48 +1100, Stephen Rothwell wrote:
> > Hi Linus,
> >
> > Today's linux-next build (powerpc ppc64_defconfig) failed like this:
> >
> > arch/powerpc/platforms/pasemi/cpufreq.c: In function 'pas_cpufreq_cpu_init':
> > arch/powerpc/platforms/pasemi/cpufreq.c:216: error: incompatible types in assignment
> > arch/powerpc/platforms/powermac/cpufreq_64.c: In function 'g5_cpufreq_cpu_init':
> > arch/powerpc/platforms/powermac/cpufreq_64.c:365: error: incompatible types in assignment
> > arch/powerpc/platforms/cell/cbe_cpufreq.c: In function 'cbe_cpufreq_cpu_init':
> > arch/powerpc/platforms/cell/cbe_cpufreq.c:121: error: incompatible types in assignment
> >
> > Caused by commit 835481d9bcd65720b473db6b38746a74a3964218 ("cpumask:
> > convert struct cpufreq_policy to cpumask_var_t") which missed updating
> > all the powerpc (at least) cpufreq drivers.
>
> Yeah, it only updates x86 it seems ...
Yeah - and that build bug was stupid too - when touching a generic file
that is called include/linux/cpufreq.h and changing a key data field one
should at minimum get the idea that it's generic for a reason and should
start grepping the tree ...
It slipped through because it didnt get caught in build tests because
cpufreq isnt enabled in the powerpc defconfig.
Ingo
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-01-12 9:05 ` linux-next: origin tree build failure Ingo Molnar
@ 2009-01-12 9:24 ` Stephen Rothwell
2009-01-12 9:32 ` Ingo Molnar
2009-01-12 9:49 ` Michael Ellerman
1 sibling, 1 reply; 39+ messages in thread
From: Stephen Rothwell @ 2009-01-12 9:24 UTC (permalink / raw)
To: Ingo Molnar
Cc: Rusty Russell, LKML, Mike Travis, linuxppc-dev, linux-next,
Paul Mackerras, Andrew Morton, Linus Torvalds, David S. Miller
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]
Hi Ingo,
On Mon, 12 Jan 2009 10:05:52 +0100 Ingo Molnar <mingo@elte.hu> wrote:
>
> Yeah - and that build bug was stupid too - when touching a generic file
> that is called include/linux/cpufreq.h and changing a key data field one
> should at minimum get the idea that it's generic for a reason and should
> start grepping the tree ...
>
> It slipped through because it didnt get caught in build tests because
> cpufreq isnt enabled in the powerpc defconfig.
Which is one of the reasons we have linux-next: "integration testing".
This way not every developer/maintainer has to have/use cross compilers
for every (or even many) non-native (from their point of view)
architectures.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-01-12 9:24 ` Stephen Rothwell
@ 2009-01-12 9:32 ` Ingo Molnar
2009-01-13 16:31 ` Stephen Rothwell
0 siblings, 1 reply; 39+ messages in thread
From: Ingo Molnar @ 2009-01-12 9:32 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Rusty Russell, LKML, Mike Travis, linuxppc-dev, linux-next,
Paul Mackerras, Andrew Morton, Linus Torvalds, David S. Miller
* Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> > It slipped through because it didnt get caught in build tests because
> > cpufreq isnt enabled in the powerpc defconfig.
>
> Which is one of the reasons we have linux-next: "integration testing".
Build bugs slipped through that net too in the past.
And we dont really want developers and maintainers to rely on an external
middle man facility to be able to submit patches. So the best method is to
make the defconfigs good enough to catch everyday build bugs. Random
testing and linux-next can then catch the weird special cases as well.
Ingo
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-01-12 9:05 ` linux-next: origin tree build failure Ingo Molnar
2009-01-12 9:24 ` Stephen Rothwell
@ 2009-01-12 9:49 ` Michael Ellerman
2009-01-12 10:44 ` Ingo Molnar
1 sibling, 1 reply; 39+ messages in thread
From: Michael Ellerman @ 2009-01-12 9:49 UTC (permalink / raw)
To: Ingo Molnar
Cc: Stephen Rothwell, Rusty Russell, LKML, Mike Travis, linuxppc-dev,
linux-next, Paul Mackerras, Andrew Morton, Linus Torvalds,
David S. Miller
[-- Attachment #1: Type: text/plain, Size: 1907 bytes --]
On Mon, 2009-01-12 at 10:05 +0100, Ingo Molnar wrote:
> * Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
>
> > On Mon, 2009-01-12 at 10:48 +1100, Stephen Rothwell wrote:
> > > Hi Linus,
> > >
> > > Today's linux-next build (powerpc ppc64_defconfig) failed like this:
> > >
> > > arch/powerpc/platforms/pasemi/cpufreq.c: In function 'pas_cpufreq_cpu_init':
> > > arch/powerpc/platforms/pasemi/cpufreq.c:216: error: incompatible types in assignment
> > > arch/powerpc/platforms/powermac/cpufreq_64.c: In function 'g5_cpufreq_cpu_init':
> > > arch/powerpc/platforms/powermac/cpufreq_64.c:365: error: incompatible types in assignment
> > > arch/powerpc/platforms/cell/cbe_cpufreq.c: In function 'cbe_cpufreq_cpu_init':
> > > arch/powerpc/platforms/cell/cbe_cpufreq.c:121: error: incompatible types in assignment
> > >
> > > Caused by commit 835481d9bcd65720b473db6b38746a74a3964218 ("cpumask:
> > > convert struct cpufreq_policy to cpumask_var_t") which missed updating
> > > all the powerpc (at least) cpufreq drivers.
> >
> > Yeah, it only updates x86 it seems ...
>
> Yeah - and that build bug was stupid too - when touching a generic file
> that is called include/linux/cpufreq.h and changing a key data field one
> should at minimum get the idea that it's generic for a reason and should
> start grepping the tree ...
>
> It slipped through because it didnt get caught in build tests because
> cpufreq isnt enabled in the powerpc defconfig.
Which defconfig?
powerpc(master) $ git grep CPU_FREQ=y arch/powerpc/configs/ppc64_defconfig
arch/powerpc/configs/ppc64_defconfig:CONFIG_CPU_FREQ=y
cheers
--
Michael Ellerman
OzLabs, IBM Australia Development Lab
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-01-12 9:49 ` Michael Ellerman
@ 2009-01-12 10:44 ` Ingo Molnar
0 siblings, 0 replies; 39+ messages in thread
From: Ingo Molnar @ 2009-01-12 10:44 UTC (permalink / raw)
To: Michael Ellerman
Cc: Stephen Rothwell, Rusty Russell, LKML, Mike Travis, linuxppc-dev,
linux-next, Paul Mackerras, Andrew Morton, Linus Torvalds,
David S. Miller
* Michael Ellerman <michael@ellerman.id.au> wrote:
> On Mon, 2009-01-12 at 10:05 +0100, Ingo Molnar wrote:
> > * Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> >
> > > On Mon, 2009-01-12 at 10:48 +1100, Stephen Rothwell wrote:
> > > > Hi Linus,
> > > >
> > > > Today's linux-next build (powerpc ppc64_defconfig) failed like this:
> > > >
> > > > arch/powerpc/platforms/pasemi/cpufreq.c: In function 'pas_cpufreq_cpu_init':
> > > > arch/powerpc/platforms/pasemi/cpufreq.c:216: error: incompatible types in assignment
> > > > arch/powerpc/platforms/powermac/cpufreq_64.c: In function 'g5_cpufreq_cpu_init':
> > > > arch/powerpc/platforms/powermac/cpufreq_64.c:365: error: incompatible types in assignment
> > > > arch/powerpc/platforms/cell/cbe_cpufreq.c: In function 'cbe_cpufreq_cpu_init':
> > > > arch/powerpc/platforms/cell/cbe_cpufreq.c:121: error: incompatible types in assignment
> > > >
> > > > Caused by commit 835481d9bcd65720b473db6b38746a74a3964218 ("cpumask:
> > > > convert struct cpufreq_policy to cpumask_var_t") which missed updating
> > > > all the powerpc (at least) cpufreq drivers.
> > >
> > > Yeah, it only updates x86 it seems ...
> >
> > Yeah - and that build bug was stupid too - when touching a generic file
> > that is called include/linux/cpufreq.h and changing a key data field one
> > should at minimum get the idea that it's generic for a reason and should
> > start grepping the tree ...
> >
> > It slipped through because it didnt get caught in build tests because
> > cpufreq isnt enabled in the powerpc defconfig.
>
> Which defconfig?
>
> powerpc(master) $ git grep CPU_FREQ=y arch/powerpc/configs/ppc64_defconfig
> arch/powerpc/configs/ppc64_defconfig:CONFIG_CPU_FREQ=y
ah, indeed - you are right.
Ingo
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: [PATCH] powerpc: Fix cpufreq drivers after cpufreq core changes
2009-01-12 0:22 ` [PATCH] powerpc: Fix cpufreq drivers after cpufreq core changes Benjamin Herrenschmidt
2009-01-12 8:34 ` Ingo Molnar
@ 2009-01-12 17:44 ` Olof Johansson
1 sibling, 0 replies; 39+ messages in thread
From: Olof Johansson @ 2009-01-12 17:44 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Stephen Rothwell, David S. Miller, arndb, Rusty Russell, LKML,
Mike Travis, linuxppc-dev, linux-next, Paul Mackerras,
Ingo Molnar, Linus Torvalds, Andrew Morton
On Mon, Jan 12, 2009 at 11:22:01AM +1100, Benjamin Herrenschmidt wrote:
> This updates the cpufreq drivers in arch/powerpc so they build again
> after the core cpufreq changes that broke them in commit
> in835481d9bcd65720b473db6b38746a74a3964218.
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
>
> Tested on a G5. Olof, Arnd, any chance you can test the cell and pasemi
> drivers still work ?
Tested fine on pasemi.
-Olof
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: [PATCH] powerpc: Fix cpufreq drivers after cpufreq core changes
2009-01-12 8:34 ` Ingo Molnar
@ 2009-01-12 21:45 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-01-12 21:45 UTC (permalink / raw)
To: Ingo Molnar
Cc: Stephen Rothwell, arndb, Rusty Russell, LKML, Mike Travis,
linuxppc-dev, linux-next, Paul Mackerras, Olof Johansson,
Andrew Morton, Linus Torvalds, David S. Miller
On Mon, 2009-01-12 at 09:34 +0100, Ingo Molnar wrote:
> * Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
>
> > This updates the cpufreq drivers in arch/powerpc so they build again
> > after the core cpufreq changes that broke them in commit
> > in835481d9bcd65720b473db6b38746a74a3964218.
> >
> > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > ---
> >
> > Tested on a G5. Olof, Arnd, any chance you can test the cell and pasemi
> > drivers still work ?
> >
> > Linus, you can probably merge this now to fix the build problems.
>
> Thanks Ben!
>
> The powerpc defconfig built fine - you might wan to turn on cpufreq in the
> powerpc defconfig so that cross-build tests can catch problems like this.
Hrm... which config are you using ? ppc64_defconfig has them all on.
Cheers,
Ben.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-01-12 9:32 ` Ingo Molnar
@ 2009-01-13 16:31 ` Stephen Rothwell
0 siblings, 0 replies; 39+ messages in thread
From: Stephen Rothwell @ 2009-01-13 16:31 UTC (permalink / raw)
To: Ingo Molnar
Cc: Rusty Russell, LKML, Mike Travis, linuxppc-dev, linux-next,
Paul Mackerras, Andrew Morton, Linus Torvalds, David S. Miller
[-- Attachment #1: Type: text/plain, Size: 933 bytes --]
Hi Ingo,
On Mon, 12 Jan 2009 10:32:14 +0100 Ingo Molnar <mingo@elte.hu> wrote:
>
> * Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> > > It slipped through because it didnt get caught in build tests because
> > > cpufreq isnt enabled in the powerpc defconfig.
> >
> > Which is one of the reasons we have linux-next: "integration testing".
>
> Build bugs slipped through that net too in the past.
Of course they have.
> And we dont really want developers and maintainers to rely on an external
> middle man facility to be able to submit patches. So the best method is to
> make the defconfigs good enough to catch everyday build bugs. Random
> testing and linux-next can then catch the weird special cases as well.
linux-next is merely a tool - it can't catch anything if you don't use it.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 39+ messages in thread
* linux-next: origin tree build failure
@ 2009-06-12 0:24 Stephen Rothwell
2009-06-12 0:53 ` Paul Mackerras
2009-06-12 1:00 ` Benjamin Herrenschmidt
0 siblings, 2 replies; 39+ messages in thread
From: Stephen Rothwell @ 2009-06-12 0:24 UTC (permalink / raw)
To: Linus
Cc: Peter Zijlstra, linux-kernel, linux-next, paulus, Ingo Molnar,
ppc-dev
Hi all,
Today's linux-next build (powerpc ppc64_defconfig) failed like this:
include/linux/perf_counter.h:677: error: redefinition of 'perf_counter_do_pending'
arch/powerpc/include/asm/hw_irq.h:170: note: previous definition of 'perf_counter_do_pending' was here
Caused by commit 925d519ab82b6dd7aca9420d809ee83819c08db2 ("perf_counter:
unify and fix delayed counter wakeup") which added the former definitions
but forgot the remove the latter.
I applied the following patch.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 12 Jun 2009 10:14:22 +1000
Subject: [PATCH] perfcounters: remove powerpc definitions of perf_counter_do_pending
Commit 925d519ab82b6dd7aca9420d809ee83819c08db2 ("perf_counter:
unify and fix delayed counter wakeup") added global definitions.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/powerpc/include/asm/hw_irq.h | 3 ---
arch/powerpc/kernel/irq.c | 1 +
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/include/asm/hw_irq.h b/arch/powerpc/include/asm/hw_irq.h
index 20a44d0..5351237 100644
--- a/arch/powerpc/include/asm/hw_irq.h
+++ b/arch/powerpc/include/asm/hw_irq.h
@@ -156,8 +156,6 @@ static inline void clear_perf_counter_pending(void)
"i" (offsetof(struct paca_struct, perf_counter_pending)));
}
-extern void perf_counter_do_pending(void);
-
#else
static inline unsigned long test_perf_counter_pending(void)
@@ -167,7 +165,6 @@ static inline unsigned long test_perf_counter_pending(void)
static inline void set_perf_counter_pending(void) {}
static inline void clear_perf_counter_pending(void) {}
-static inline void perf_counter_do_pending(void) {}
#endif /* CONFIG_PERF_COUNTERS */
#endif /* __KERNEL__ */
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index feff792..844d3f8 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -53,6 +53,7 @@
#include <linux/bootmem.h>
#include <linux/pci.h>
#include <linux/debugfs.h>
+#include <linux/perf_counter.h>
#include <asm/uaccess.h>
#include <asm/system.h>
--
1.6.3.1
^ permalink raw reply related [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 0:24 Stephen Rothwell
@ 2009-06-12 0:53 ` Paul Mackerras
2009-06-12 1:00 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 39+ messages in thread
From: Paul Mackerras @ 2009-06-12 0:53 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Peter Zijlstra, Linus, linux-kernel, linux-next, Ingo Molnar,
ppc-dev
Stephen Rothwell writes:
> Subject: [PATCH] perfcounters: remove powerpc definitions of perf_counter_do_pending
>
> Commit 925d519ab82b6dd7aca9420d809ee83819c08db2 ("perf_counter:
> unify and fix delayed counter wakeup") added global definitions.
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Paul Mackerras <paulus@samba.org>
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 0:24 Stephen Rothwell
2009-06-12 0:53 ` Paul Mackerras
@ 2009-06-12 1:00 ` Benjamin Herrenschmidt
2009-06-12 9:20 ` Ingo Molnar
1 sibling, 1 reply; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-06-12 1:00 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Peter Zijlstra, ppc-dev, linux-kernel, linux-next, paulus,
Ingo Molnar, Linus
On Fri, 2009-06-12 at 10:24 +1000, Stephen Rothwell wrote:
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Fri, 12 Jun 2009 10:14:22 +1000
> Subject: [PATCH] perfcounters: remove powerpc definitions of perf_counter_do_pending
>
> Commit 925d519ab82b6dd7aca9420d809ee83819c08db2 ("perf_counter:
> unify and fix delayed counter wakeup") added global definitions.
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
Linus, please apply. BTW, This is _EXACTLY_ why this should have been in
-next for a few days before being merged :-(
Cheers,
Ben.
> ---
> arch/powerpc/include/asm/hw_irq.h | 3 ---
> arch/powerpc/kernel/irq.c | 1 +
> 2 files changed, 1 insertions(+), 3 deletions(-)
>
> diff --git a/arch/powerpc/include/asm/hw_irq.h b/arch/powerpc/include/asm/hw_irq.h
> index 20a44d0..5351237 100644
> --- a/arch/powerpc/include/asm/hw_irq.h
> +++ b/arch/powerpc/include/asm/hw_irq.h
> @@ -156,8 +156,6 @@ static inline void clear_perf_counter_pending(void)
> "i" (offsetof(struct paca_struct, perf_counter_pending)));
> }
>
> -extern void perf_counter_do_pending(void);
> -
> #else
>
> static inline unsigned long test_perf_counter_pending(void)
> @@ -167,7 +165,6 @@ static inline unsigned long test_perf_counter_pending(void)
>
> static inline void set_perf_counter_pending(void) {}
> static inline void clear_perf_counter_pending(void) {}
> -static inline void perf_counter_do_pending(void) {}
> #endif /* CONFIG_PERF_COUNTERS */
>
> #endif /* __KERNEL__ */
> diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
> index feff792..844d3f8 100644
> --- a/arch/powerpc/kernel/irq.c
> +++ b/arch/powerpc/kernel/irq.c
> @@ -53,6 +53,7 @@
> #include <linux/bootmem.h>
> #include <linux/pci.h>
> #include <linux/debugfs.h>
> +#include <linux/perf_counter.h>
>
> #include <asm/uaccess.h>
> #include <asm/system.h>
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 1:00 ` Benjamin Herrenschmidt
@ 2009-06-12 9:20 ` Ingo Molnar
2009-06-12 9:33 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 39+ messages in thread
From: Ingo Molnar @ 2009-06-12 9:20 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
* Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Fri, 2009-06-12 at 10:24 +1000, Stephen Rothwell wrote:
>
> > From: Stephen Rothwell <sfr@canb.auug.org.au>
> > Date: Fri, 12 Jun 2009 10:14:22 +1000
> > Subject: [PATCH] perfcounters: remove powerpc definitions of perf_counter_do_pending
> >
> > Commit 925d519ab82b6dd7aca9420d809ee83819c08db2 ("perf_counter:
> > unify and fix delayed counter wakeup") added global definitions.
> >
> > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
>
> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Ah - thanks. The bug was caused by me being a bit too optimistic in
applying the shiny-new Power7 support patches on the last day. (nice
CPU btw.)
> Linus, please apply. BTW, This is _EXACTLY_ why this should have
> been in -next for a few days before being merged :-(
Not really: for example current upstream is build-broken on x86 due
to an integration artifact via the kmemleak tree - despite it having
been in linux-next for months.
Paulus was building and booting powerpc on a daily basis and i ran
cross-builds as well.
Such bugs happen, and they are easy enough to fix. What matters
arent the 1-2 short-lived bugs that do happen when a new combination
of trees is created, but the long-lived combination bugs and
conflicts.
Ingo
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 9:20 ` Ingo Molnar
@ 2009-06-12 9:33 ` Benjamin Herrenschmidt
2009-06-12 9:43 ` Peter Zijlstra
2009-06-12 12:53 ` Ingo Molnar
0 siblings, 2 replies; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-06-12 9:33 UTC (permalink / raw)
To: Ingo Molnar
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
> Ah - thanks. The bug was caused by me being a bit too optimistic in
> applying the shiny-new Power7 support patches on the last day. (nice
> CPU btw.)
In that case paulus tells me it's actually Peter screwing up moving
something from the powerpc code to generic :-)
.../...
> Such bugs happen, and they are easy enough to fix. What matters
> arent the 1-2 short-lived bugs that do happen when a new combination
> of trees is created, but the long-lived combination bugs and
> conflicts.
I'm not saying -next would fix world hunger ... but in this case we have
two sets of issues, perfctr and the init ordering change which both got
merged totally bypassing -next... We should at least -try- to follow the
process we've defined, don't you think ?
Cheers,
Ben.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 9:33 ` Benjamin Herrenschmidt
@ 2009-06-12 9:43 ` Peter Zijlstra
2009-06-12 9:55 ` Ingo Molnar
2009-06-12 9:57 ` Benjamin Herrenschmidt
2009-06-12 12:53 ` Ingo Molnar
1 sibling, 2 replies; 39+ messages in thread
From: Peter Zijlstra @ 2009-06-12 9:43 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Stephen Rothwell, ppc-dev, linux-kernel, linux-next, paulus,
Ingo Molnar, Linus
On Fri, 2009-06-12 at 19:33 +1000, Benjamin Herrenschmidt wrote:
> We should at least -try- to follow the
> process we've defined, don't you think ?
So you're saying -next should include whole new subsystems even though
its not clear they will be merged?
That'll invariably create the opposite case where a tree doesn't get
pulled and breaks bits due to its absence.
-next does a great job of sorting the existing subsystem trees, but I
don't think its Stephens job to decide if things will get merged.
Therefore when things are in limbo (there was no definite ACK from Linus
on perf counters) both inclusion and exclusion from -next can lead to
trouble.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 9:43 ` Peter Zijlstra
@ 2009-06-12 9:55 ` Ingo Molnar
2009-06-12 9:57 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 39+ messages in thread
From: Ingo Molnar @ 2009-06-12 9:55 UTC (permalink / raw)
To: Peter Zijlstra
Cc: Stephen Rothwell, ppc-dev, linux-kernel, linux-next, paulus,
Linus
* Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
> On Fri, 2009-06-12 at 19:33 +1000, Benjamin Herrenschmidt wrote:
> > We should at least -try- to follow the
> > process we've defined, don't you think ?
>
> So you're saying -next should include whole new subsystems even
> though its not clear they will be merged?
>
> That'll invariably create the opposite case where a tree doesn't
> get pulled and breaks bits due to its absence.
>
> -next does a great job of sorting the existing subsystem trees,
> but I don't think its Stephens job to decide if things will get
> merged.
>
> Therefore when things are in limbo (there was no definite ACK from
> Linus on perf counters) both inclusion and exclusion from -next
> can lead to trouble.
Precisely. linux-next is for the uncontroversial stuff from existing
subsystems. Sometimes for features pushed by or approved by existing
subsystem maintainers. But it is not for controversial stuff - Linus
is the upstream maintainer, not Stephen.
We had a real mess with perfmon3 which was included into linux-next
in a rouge way without Cc:-ing the affected maintainers and against
the maintainers. There was a repeat incident recently as well, where
a tree was included into linux-next without the approval (and
without the Cc:) of affected maintainers. linux-next needs to be
more careful about adding trees.
All in one, we did the same with perfcounters that we expected of
perfmonv3. No double standard.
Nor is there any real issue here. The bug was my fault, it was
trivial to fix, it affects a small subset of testers and it is
already upstream, applied on the same day perfcounters were pulled.
Ingo
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 9:43 ` Peter Zijlstra
2009-06-12 9:55 ` Ingo Molnar
@ 2009-06-12 9:57 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-06-12 9:57 UTC (permalink / raw)
To: Peter Zijlstra
Cc: Stephen Rothwell, ppc-dev, linux-kernel, linux-next, paulus,
Ingo Molnar, Linus
On Fri, 2009-06-12 at 11:43 +0200, Peter Zijlstra wrote:
> On Fri, 2009-06-12 at 19:33 +1000, Benjamin Herrenschmidt wrote:
> > We should at least -try- to follow the
> > process we've defined, don't you think ?
>
> So you're saying -next should include whole new subsystems even though
> its not clear they will be merged?
Maybe yes. And if there's some debate as to whether it should be merged
or not, maybe Linus should make the decision, let -next carry it for a
few days to iron out those problems, and -then- merge it.
> That'll invariably create the opposite case where a tree doesn't get
> pulled and breaks bits due to its absence.
>
> -next does a great job of sorting the existing subsystem trees, but I
> don't think its Stephens job to decide if things will get merged.
No, it's not, but then, maybe Linus could play the game and -tell- us
whether he intend to merge or not at least a few days in advance :-)
> Therefore when things are in limbo (there was no definite ACK from Linus
> on perf counters) both inclusion and exclusion from -next can lead to
> trouble.
Well, Linus did ACK by merging :-) So he should have been able to give
that ack a few days in advance too..
Cheers,
Ben.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 9:33 ` Benjamin Herrenschmidt
2009-06-12 9:43 ` Peter Zijlstra
@ 2009-06-12 12:53 ` Ingo Molnar
2009-06-12 13:10 ` Benjamin Herrenschmidt
1 sibling, 1 reply; 39+ messages in thread
From: Ingo Molnar @ 2009-06-12 12:53 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
* Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> > Ah - thanks. The bug was caused by me being a bit too optimistic
> > in applying the shiny-new Power7 support patches on the last
> > day. (nice CPU btw.)
>
> In that case paulus tells me it's actually Peter screwing up
> moving something from the powerpc code to generic :-)
Yes, but i committed it and it's my task to make sure that the thing
works as a whole so it's my fault still :)
> .../...
>
> > Such bugs happen, and they are easy enough to fix. What matters
> > arent the 1-2 short-lived bugs that do happen when a new
> > combination of trees is created, but the long-lived combination
> > bugs and conflicts.
>
> I'm not saying -next would fix world hunger ... but in this case
> we have two sets of issues, perfctr and the init ordering change
> which both got merged totally bypassing -next... We should at
> least -try- to follow the process we've defined, don't you think ?
You are trying to define a process that does not exist in that form
and which never existed in that form.
It was never true that new code _MUST_ go via linux-next - and i
hope it will never be true.
linux-next has integration testing so that interactions between
maintainer trees are mapped and that architectures that otherwise
few people use get build-tested too (well beyond their practical
relevance, i have to add) - but there's little critical review done
in linux-next. Nor should it be the forum for that, it simply
contains way too much stuff and has a weird history format with
daily rebases that makes review hard and expensive in that form.
linux-next should not be second-guessing maintainers and should not
act as an "approval forum" for controversial features, increasing
the (already quite substantial) pressure on maintainers to apply
more crap.
And that is true even if it's a new feature that i happen to support
- as in this case - it sure would have been handy to have more
perfcounters test coverage, every little bit of extra testing helps.
If linux-next wants to do that then it should be renamed to
something else and not called linux-next.
Ingo
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 12:53 ` Ingo Molnar
@ 2009-06-12 13:10 ` Benjamin Herrenschmidt
2009-06-12 13:29 ` Benjamin Herrenschmidt
2009-06-12 13:44 ` Ingo Molnar
0 siblings, 2 replies; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-06-12 13:10 UTC (permalink / raw)
To: Ingo Molnar
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
On Fri, 2009-06-12 at 14:53 +0200, Ingo Molnar wrote:
> * Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> linux-next has integration testing so that interactions between
> maintainer trees are mapped and that architectures that otherwise
> few people use get build-tested too (well beyond their practical
> relevance, i have to add) - but there's little critical review done
> in linux-next. Nor should it be the forum for that, it simply
> contains way too much stuff and has a weird history format with
> daily rebases that makes review hard and expensive in that form.
I think you are mixing several issues. One is integration testing, one
is the problem of remote architecture of subsystems testing...
> linux-next should not be second-guessing maintainers and should not
> act as an "approval forum" for controversial features, increasing
> the (already quite substantial) pressure on maintainers to apply
> more crap.
I agree here. That's not the point. The idea is that for things that
-are- approved by their respective maintainers, to get some integration
testing and ironing of those mechanical bugs so that by the time they
hit mainstream, they don't break bisection among others.
Yes, next is -not- the place to debate controversial features. That's
not, I believe, why it was initiated (I may be wrong, Stephen will
correct me if I am), but the way I see things is that stuff that is
meant to be merged gets a chance to get some of that integration testing
against all the other stuff that is also meant to be merged to limit the
amount of clash and problems once we hit Linus tree.
> And that is true even if it's a new feature that i happen to support
> - as in this case - it sure would have been handy to have more
> perfcounters test coverage, every little bit of extra testing helps.
That doesn't invalidate my point. We are not talking about whether
perfcounters is worth merging or not, testing more or not, but strictly,
imho, about getting a chance (a couple of days at least) to do that
integration testing and catch the simple issues like the one that
triggered my initial rant -before- they hit mainline.
To some extent, here, the issue is on Linus side and it's up to him (Hey
Linus ! still listening ?) to maybe be more proactive at giving an ack
or nack so that we can get a chance to do that final pass of ironing out
the mechanical bugs before we hit the main tree.
Cheers,
Ben.
> If linux-next wants to do that then it should be renamed to
> something else and not called linux-next.
>
> Ingo
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 13:10 ` Benjamin Herrenschmidt
@ 2009-06-12 13:29 ` Benjamin Herrenschmidt
2009-06-12 13:49 ` Ingo Molnar
2009-06-12 13:44 ` Ingo Molnar
1 sibling, 1 reply; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-06-12 13:29 UTC (permalink / raw)
To: Ingo Molnar
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
On Fri, 2009-06-12 at 23:10 +1000, Benjamin Herrenschmidt wrote:
> On Fri, 2009-06-12 at 14:53 +0200, Ingo Molnar wrote:
> To some extent, here, the issue is on Linus side and it's up to him (Hey
> Linus ! still listening ?) to maybe be more proactive at giving an ack
> or nack so that we can get a chance to do that final pass of ironing out
> the mechanical bugs before we hit the main tree.
Let me add a little bit more background to my reasoning here and why I
think having this integration testing step is so valuable...
It all boils down to bisection and having a bisectable tree.
Yes, I hate bisecting and I'm sure you are the same. It's a major PITA
and in most cases, I'm better off tracking down the actual bug and then
finding how it came into being.
However, what the ability to have a reasonably bisectable tree buys us
is all those users, testers, good wills, etc... people who do not have
the knowledge, skill, familiarity with the code etc... to track the bug
down, to be able to still find out what precise patch brought that pesky
regression that doesn't happen on anybody else machine, and thus brings
us some useful material to work with when we cannot reproduce the exact
same setup on our own machines.
Yes, I and I'm sure you can deal with a bisection breakage caused by a
minor screweup like the one we are talking about. But our testers often
can't and will just give up.
It has -nothing- to do with whether the patches are controversial or
not, it is purely about trying to make sure that things going into linus
tree had at least a few days of churning by the various involved parties
to try to get closer to the graal of a fully bisectable tree.
At least that's how I see it.
Now, we may disagree and I'm happy to discuss that more around a beer at
next KS, and to some extent, what is done is done, and if we screwed up
with -next vs. perfmon, then so be it and let's learn from our mistakes,
but I believe it makes a lot of sense to have that staging area that
helps us making sure that within a merge window with gazillion things
being merged pretty much at once, we keep this ability for our users and
testers to track down which individual patch broke something.
Cheers,
Ben.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 13:10 ` Benjamin Herrenschmidt
2009-06-12 13:29 ` Benjamin Herrenschmidt
@ 2009-06-12 13:44 ` Ingo Molnar
2009-06-12 13:56 ` Benjamin Herrenschmidt
2009-06-13 4:54 ` Stephen Rothwell
1 sibling, 2 replies; 39+ messages in thread
From: Ingo Molnar @ 2009-06-12 13:44 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
* Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> > linux-next should not be second-guessing maintainers and should
> > not act as an "approval forum" for controversial features,
> > increasing the (already quite substantial) pressure on
> > maintainers to apply more crap.
>
> I agree here. That's not the point. The idea is that for things
> that -are- approved by their respective maintainers, to get some
> integration testing and ironing of those mechanical bugs so that
> by the time they hit mainstream, they don't break bisection among
> others.
This is certainly doable for agreeable features - which is the bulk
- and it is being done.
But this is a catch-22 for _controversial_ new features - which
perfcounters clearly was, in case you turned off your lkml
subscription ;-)
And if you hit that build breakage during bisection you can do:
git cherry-pick e14112d
Also, you seem to brush off the notion that far more bugs slip
through linux-next than get caught by it.
So if you think linux-next matters in terms of _regression_ testing,
the numbers dont seem to support that notion. This particular
incident does support that notion though, granted - but it's taken
out of context IMHO:
In terms of test coverage, at least for our trees, less than 1% of
the bugs we handle get reported in a linux-next context - and most
of the bugs that get reported (against say the scheduler tree) are
related to rare architectures.
In fact, i checked, there were _zero_ x86 bugs reported against
linux-next and solved against it between v2.6.30-rc1 and v2.6.30:
git log --grep=next -i v2.6.30-rc1..v2.6.30 arch/x86/
Doing it over the full cycle shows one commit altogether - a Xen
build failure. In fact, i just checked the whole stabilization cycle
for the whole kernel (v2.6.30-rc1..v2.6.30-final), and there were
only 5 linux-next originated patches, most of them build failures.
I did this by looking at all occurances of 'next', in all commit
logs:
git log --grep=next -i v2.6.30-rc1..v2.6.30
and then manually checking the context of all 'next' matches and
counting the linux-next related commits.
So lets be generous and say that because some people dont put the
bug report originator into the changelog it was four times as many,
20 - but that's still dwarved by the sheer amount of post-rc1
changes: thousands of changes and hundreds of regressions.
linux-next is mostly useful (to me at least) not for the
cross-builds it does, but in terms of mapping out upcoming conflicts
- which also drives early detection of problematic patches and
problematic conflicts.
Ingo
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 13:29 ` Benjamin Herrenschmidt
@ 2009-06-12 13:49 ` Ingo Molnar
2009-06-12 14:06 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 39+ messages in thread
From: Ingo Molnar @ 2009-06-12 13:49 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
* Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Fri, 2009-06-12 at 23:10 +1000, Benjamin Herrenschmidt wrote:
> > On Fri, 2009-06-12 at 14:53 +0200, Ingo Molnar wrote:
>
> > To some extent, here, the issue is on Linus side and it's up to him (Hey
> > Linus ! still listening ?) to maybe be more proactive at giving an ack
> > or nack so that we can get a chance to do that final pass of ironing out
> > the mechanical bugs before we hit the main tree.
>
> Let me add a little bit more background to my reasoning here and why I
> think having this integration testing step is so valuable...
>
> It all boils down to bisection and having a bisectable tree.
I think you are way too concentrated on this particular incident,
and you are generalizing it into something that is not so in
practice.
Even in this particular case, there's just 3 other commit points in
the Git tree between commit 8a1ca8c (the breakage on PowerPC) and
e14112d (the fix). We'll have up to 10,000 commits.
I bisect on an almost daily basis, and i'm not seeing unreasonable
problems.
Ingo
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 13:44 ` Ingo Molnar
@ 2009-06-12 13:56 ` Benjamin Herrenschmidt
2009-06-12 14:07 ` Ingo Molnar
2009-06-13 4:54 ` Stephen Rothwell
1 sibling, 1 reply; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-06-12 13:56 UTC (permalink / raw)
To: Ingo Molnar
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
On Fri, 2009-06-12 at 15:44 +0200, Ingo Molnar wrote:
> This is certainly doable for agreeable features - which is the bulk
> - and it is being done.
>
> But this is a catch-22 for _controversial_ new features - which
> perfcounters clearly was, in case you turned off your lkml
> subscription ;-)
I didn't :-) My point here is that Linus can make a decision with an
email -before- merging so that -next gets a chance, at least for a
couple of days, to do the integration testing once the controversy has
been sorted by his highness.
> And if you hit that build breakage during bisection you can do:
>
> git cherry-pick e14112d
Right, I can, you can, but can random tester who wants to track down
what his problem is ? I'm not sure...
> Also, you seem to brush off the notion that far more bugs slip
> through linux-next than get caught by it.
Less than without linux-next. We aren't perfect and no process will
solve everything. But this could have been easily avoided.
> So if you think linux-next matters in terms of _regression_ testing,
> the numbers dont seem to support that notion. This particular
> incident does support that notion though, granted - but it's taken
> out of context IMHO:
>
> In terms of test coverage, at least for our trees, less than 1% of
> the bugs we handle get reported in a linux-next context - and most
> of the bugs that get reported (against say the scheduler tree) are
> related to rare architectures.
But most obvious bugs will have been caught way before that, which
leaves the hard to catch ones or the configuration-specific ones. Those
will pass linux-next, I agree. But that isn't my point and that isn't
what linux-next will catch. What is will catch is that kind of really
simple mechanical problems, such as build breakage for other archs.
If perfcounters had been 1 or 2 days in -next before being merged, we
would have avoided that problem and made everybody's bisecting life
easier.
> In fact, i checked, there were _zero_ x86 bugs reported against
> linux-next and solved against it between v2.6.30-rc1 and v2.6.30:
No but Stephen caught a bunch of mechanical compile fails due to
integration problems.
> git log --grep=next -i v2.6.30-rc1..v2.6.30 arch/x86/
>
> Doing it over the full cycle shows one commit altogether - a Xen
> build failure. In fact, i just checked the whole stabilization cycle
> for the whole kernel (v2.6.30-rc1..v2.6.30-final), and there were
> only 5 linux-next originated patches, most of them build failures.
>
> I did this by looking at all occurances of 'next', in all commit
> logs:
>
> git log --grep=next -i v2.6.30-rc1..v2.6.30
>
> and then manually checking the context of all 'next' matches and
> counting the linux-next related commits.
>
> So lets be generous and say that because some people dont put the
> bug report originator into the changelog it was four times as many,
> 20 - but that's still dwarved by the sheer amount of post-rc1
> changes: thousands of changes and hundreds of regressions.
>
> linux-next is mostly useful (to me at least) not for the
> cross-builds it does, but in terms of mapping out upcoming conflicts
> - which also drives early detection of problematic patches and
> problematic conflicts.
Yes, it does. The problem is that it helps -you- that way, but won't
help -us- vs. that kind of mechanical problems unless -you- also play
the game and get your stuff in there for a little while before merging
it :-)
Cheers,
Ben.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 13:49 ` Ingo Molnar
@ 2009-06-12 14:06 ` Benjamin Herrenschmidt
2009-06-12 14:11 ` Ingo Molnar
0 siblings, 1 reply; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-06-12 14:06 UTC (permalink / raw)
To: Ingo Molnar
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
On Fri, 2009-06-12 at 15:49 +0200, Ingo Molnar wrote:
> * Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
>
> > On Fri, 2009-06-12 at 23:10 +1000, Benjamin Herrenschmidt wrote:
> > > On Fri, 2009-06-12 at 14:53 +0200, Ingo Molnar wrote:
> >
> > > To some extent, here, the issue is on Linus side and it's up to him (Hey
> > > Linus ! still listening ?) to maybe be more proactive at giving an ack
> > > or nack so that we can get a chance to do that final pass of ironing out
> > > the mechanical bugs before we hit the main tree.
> >
> > Let me add a little bit more background to my reasoning here and why I
> > think having this integration testing step is so valuable...
> >
> > It all boils down to bisection and having a bisectable tree.
>
> I think you are way too concentrated on this particular incident,
> and you are generalizing it into something that is not so in
> practice.
Maybe. But maybe it's representative... so far in this merge window,
100% of the powerpc build and runtime breakage upstream comes from stuff
that didn't get into -next before.
Some of the runtime breakage in powerpc-next comes from my own bugs,
indeed, and fortunately I caught it before I asked Linus to pull.
Cheers,
Ben.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 13:56 ` Benjamin Herrenschmidt
@ 2009-06-12 14:07 ` Ingo Molnar
2009-06-12 14:19 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 39+ messages in thread
From: Ingo Molnar @ 2009-06-12 14:07 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
* Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Fri, 2009-06-12 at 15:44 +0200, Ingo Molnar wrote:
>
> > This is certainly doable for agreeable features - which is the bulk
> > - and it is being done.
> >
> > But this is a catch-22 for _controversial_ new features - which
> > perfcounters clearly was, in case you turned off your lkml
> > subscription ;-)
>
> I didn't :-) My point here is that Linus can make a decision with
> an email -before- merging so that -next gets a chance, at least
> for a couple of days, to do the integration testing once the
> controversy has been sorted by his highness.
Uhm, the bug you are making a big deal of would have been found and
fixed by Paulus a few hours after any such mail - and probably by me
too as i do daily cross builds to Power.
So yes, we had a bug, but any extra linux-next hoops would not have
prevented it: i could still have messed up by getting lured by that
nice piece of Power7 hardware enablement patch on the last day ;-)
So the bug was my fault for being too fast-and-loose with that
particular patch, creating a ~5-commits-hop build breakage bisection
window on Power.
Now that i'm sufficiently chastised, can we now move on please? :)
Ingo
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 14:06 ` Benjamin Herrenschmidt
@ 2009-06-12 14:11 ` Ingo Molnar
2009-06-12 14:23 ` Benjamin Herrenschmidt
2009-06-13 5:06 ` Stephen Rothwell
0 siblings, 2 replies; 39+ messages in thread
From: Ingo Molnar @ 2009-06-12 14:11 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
* Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Fri, 2009-06-12 at 15:49 +0200, Ingo Molnar wrote:
> > * Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> >
> > > On Fri, 2009-06-12 at 23:10 +1000, Benjamin Herrenschmidt wrote:
> > > > On Fri, 2009-06-12 at 14:53 +0200, Ingo Molnar wrote:
> > >
> > > > To some extent, here, the issue is on Linus side and it's up to him (Hey
> > > > Linus ! still listening ?) to maybe be more proactive at giving an ack
> > > > or nack so that we can get a chance to do that final pass of ironing out
> > > > the mechanical bugs before we hit the main tree.
> > >
> > > Let me add a little bit more background to my reasoning here and why I
> > > think having this integration testing step is so valuable...
> > >
> > > It all boils down to bisection and having a bisectable tree.
> >
> > I think you are way too concentrated on this particular incident,
> > and you are generalizing it into something that is not so in
> > practice.
>
> Maybe. But maybe it's representative... so far in this merge
> window, 100% of the powerpc build and runtime breakage upstream
> comes from stuff that didn't get into -next before.
But that's axiomatic, isnt it? linux-next build-tests PowerPC as the
first in the row of tests - so no change that was in linux-next can
ever cause a build failure on PowerPC, right?
Ingo
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 14:07 ` Ingo Molnar
@ 2009-06-12 14:19 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-06-12 14:19 UTC (permalink / raw)
To: Ingo Molnar
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
> Uhm, the bug you are making a big deal of would have been found and
> fixed by Paulus a few hours after any such mail - and probably by me
> too as i do daily cross builds to Power.
>
> So yes, we had a bug, but any extra linux-next hoops would not have
> prevented it: i could still have messed up by getting lured by that
> nice piece of Power7 hardware enablement patch on the last day ;-)
>
> So the bug was my fault for being too fast-and-loose with that
> particular patch, creating a ~5-commits-hop build breakage bisection
> window on Power.
>
> Now that i'm sufficiently chastised, can we now move on please? :)
Sure we can :-) My point is, get a break before you merge upstream :-)
Cheers,
Ben.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 14:11 ` Ingo Molnar
@ 2009-06-12 14:23 ` Benjamin Herrenschmidt
2009-06-13 5:06 ` Stephen Rothwell
1 sibling, 0 replies; 39+ messages in thread
From: Benjamin Herrenschmidt @ 2009-06-12 14:23 UTC (permalink / raw)
To: Ingo Molnar
Cc: Stephen Rothwell, Peter Zijlstra, ppc-dev, linux-kernel,
linux-next, paulus, Linus
On Fri, 2009-06-12 at 16:11 +0200, Ingo Molnar wrote:
> > Maybe. But maybe it's representative... so far in this merge
> > window, 100% of the powerpc build and runtime breakage upstream
> > comes from stuff that didn't get into -next before.
>
> But that's axiomatic, isnt it? linux-next build-tests PowerPC as the
> first in the row of tests - so no change that was in linux-next can
> ever cause a build failure on PowerPC, right?
I'd have to check with Stephen but I think linux-next tests a whole
bunch of archs each round. Anyway, the idea is, just don't get things
upstream before the at least had a chance to go through that little bit
of integration testing .. Is it -that- hard ?
Oh and before you ask me, yes, I do the same mistakes, and I have been
caught too merging things at the last minute that ended up broken and
that could have been caught by -next... I'm just trying to advocate the
idea that we all try to improve in that area :-)
Cheers,
Ben.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 13:44 ` Ingo Molnar
2009-06-12 13:56 ` Benjamin Herrenschmidt
@ 2009-06-13 4:54 ` Stephen Rothwell
1 sibling, 0 replies; 39+ messages in thread
From: Stephen Rothwell @ 2009-06-13 4:54 UTC (permalink / raw)
To: Ingo Molnar
Cc: Peter Zijlstra, ppc-dev, linux-kernel, linux-next, paulus, Linus
[-- Attachment #1: Type: text/plain, Size: 1738 bytes --]
Hi Ingo,
On Fri, 12 Jun 2009 15:44:28 +0200 Ingo Molnar <mingo@elte.hu> wrote:
>
> In terms of test coverage, at least for our trees, less than 1% of
> the bugs we handle get reported in a linux-next context - and most
> of the bugs that get reported (against say the scheduler tree) are
> related to rare architectures.
I expect that most bugs get reported and fixed before code gets to
linux-next (in fact one of the prerequisites for being in linux-next is
that code has been tested as well as possible).
> In fact, i checked, there were _zero_ x86 bugs reported against
> linux-next and solved against it between v2.6.30-rc1 and v2.6.30:
>
> git log --grep=next -i v2.6.30-rc1..v2.6.30 arch/x86/
>
> Doing it over the full cycle shows one commit altogether - a Xen
> build failure. In fact, i just checked the whole stabilization cycle
> for the whole kernel (v2.6.30-rc1..v2.6.30-final), and there were
> only 5 linux-next originated patches, most of them build failures.
Nice set of figures. For some other context, between April 6 and June 9
(2.6.30-rc1 to 2.6.30) I sent 50 emails with subjects like "linux-next:
xxx tree build failure". What results from those emails? I sometimes
don't even hear back. Almost all of the failures get fixed.
A lot of these probably also get discovered independently. I don't
really care as long as they do get fixed.
One of those failures was a sparc build failure due to a change in the
tip-core tree (see commit d2de688891909b148efe83a6fc9520a9cd6015f0).
Another report produced commit 27b19565fe4ca5b0e9d2ae98ce4b81ca728bf445.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2009-06-12 14:11 ` Ingo Molnar
2009-06-12 14:23 ` Benjamin Herrenschmidt
@ 2009-06-13 5:06 ` Stephen Rothwell
1 sibling, 0 replies; 39+ messages in thread
From: Stephen Rothwell @ 2009-06-13 5:06 UTC (permalink / raw)
To: Ingo Molnar
Cc: Peter Zijlstra, ppc-dev, linux-kernel, linux-next, paulus, Linus
[-- Attachment #1: Type: text/plain, Size: 1068 bytes --]
Hi Ingo,
On Fri, 12 Jun 2009 16:11:18 +0200 Ingo Molnar <mingo@elte.hu> wrote:
>
> But that's axiomatic, isnt it? linux-next build-tests PowerPC as the
> first in the row of tests - so no change that was in linux-next can
> ever cause a build failure on PowerPC, right?
Not really. I build a powerpc ppc64_defconfig and an x86_64 allmodconfig
between merging most trees. At the end of the day, I do the following
builds before releasing linux-next:
powerpc allnoconfig
powerpc64 allnoconfig
powerpc ppc44x_defconfig
powerpc allyesconfig
i386 defconfig
sparc64 defconfig
sparc defconfig
Which clearly doesn't cover all possible configs, but is a start and
catches a lot (the powerpc allyesconfig is only 64 bit).
Then after release, linux-next gets built for a lot of architectures and
configs (see http://kisskb.ellerman.id.au/kisskb/branch/9/). A couple of
people also do randconfig builds which find all sorts of things.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 39+ messages in thread
* linux-next: origin tree build failure
@ 2009-06-19 6:30 Stephen Rothwell
0 siblings, 0 replies; 39+ messages in thread
From: Stephen Rothwell @ 2009-06-19 6:30 UTC (permalink / raw)
To: Andrew Morton; +Cc: Uytterhoeven, linux-next, ppc-dev, linux-kernel, Geert
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
Hi all,
Today's linux-next build (powerpc64, gcc 4.1.3) failed like this:
drivers/video/logo/logo_linux_mono.c:11: error: logo_linux_mono_data causes a section type conflict
Caused by commit ae52bb2384f721562f15f719de1acb8e934733cb ("fbdev: move
logo externs to header file") but probably really a compiler bug as gcc
4.3 and 4.4 do not get this error. I have reverted that commit for
today, but we really need some workaround as gcc 4.1.3 is not uncommon.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 39+ messages in thread
* linux-next: origin tree build failure
@ 2010-01-11 23:58 Stephen Rothwell
2010-01-12 0:29 ` Joakim Tjernlund
2010-01-12 12:38 ` Joakim Tjernlund
0 siblings, 2 replies; 39+ messages in thread
From: Stephen Rothwell @ 2010-01-11 23:58 UTC (permalink / raw)
To: Linus; +Cc: linux-kernel, linux-next, Paul Mackerras, Andrew Morton,
linuxppc-dev
Hi all,
Today's linux-next build (powerpc ppc64_defconfig) failed like this:
cc1: error: include/linux/autoconf.h: No such file or directory
(while building the boot wrappers - lots more of the same)
Caused by commit ac4c2a3bbe5db5fc570b1d0ee1e474db7cb22585 ("zlib:
optimize inffast when copying direct from output"). autoconf.h moved
from include/linux to include/generated in commit
264a26838056fc2d759f58bec2e720e01fcb1bdb ("kbuild: move autoconf.h to
include/generated") which was in linux-next since 14 Dec 2009 and in
Linus' tree since 18 Dec 2009.
I added the following patch for today:
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Tue, 12 Jan 2010 10:23:43 +1100
Subject: [PATCH] powerpc: fix boot Makefile for autoconf.h moving
autoconf.h moved from include/linux to include/generated
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/powerpc/boot/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index 826a30a..fb32a8e 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -34,7 +34,7 @@ BOOTCFLAGS += -fno-stack-protector
endif
BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj)
-BOOTCFLAGS += -include include/linux/autoconf.h -Iarch/powerpc/include
+BOOTCFLAGS += -include include/generated/autoconf.h -Iarch/powerpc/include
BOOTCFLAGS += -Iinclude
DTS_FLAGS ?= -p 1024
--
1.6.6
However, this then produced these errors:
arch/powerpc/boot/inffast.c:7:27: error: asm/unaligned.h: No such file or directory
arch/powerpc/boot/inffast.c:8:27: error: asm/byteorder.h: No such file or directory
arch/powerpc/boot/inffast.c: In function 'inflate_fast':
arch/powerpc/boot/inffast.c:263: warning: implicit declaration of function 'get_unaligned'
arch/powerpc/boot/inffast.c:277:2: error: #error __BIG_ENDIAN nor __LITTLE_ENDIAN is defined
So I just reverted the original commit (after removing my fix above).
This latter build problem is probably only noticed if you build with a
separate object directory (i.e. with O=.. on the make command). The
previous PowerPC maintainer tells me that defining __KERNEL__ in the
BOOTFLAGS is wrong and should have been noticed.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
^ permalink raw reply related [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2010-01-11 23:58 Stephen Rothwell
@ 2010-01-12 0:29 ` Joakim Tjernlund
2010-01-12 12:38 ` Joakim Tjernlund
1 sibling, 0 replies; 39+ messages in thread
From: Joakim Tjernlund @ 2010-01-12 0:29 UTC (permalink / raw)
To: Stephen Rothwell
Cc: linux-kernel, Linus, linux-next, Paul Mackerras, Andrew Morton,
linuxppc-dev
Stephen Rothwell <sfr@canb.auug.org.au> wrote on 12/01/2010 00:58:05:
>
> Hi all,
>
> Today's linux-next build (powerpc ppc64_defconfig) failed like this:
>
> cc1: error: include/linux/autoconf.h: No such file or directory
>
> (while building the boot wrappers - lots more of the same)
>
> Caused by commit ac4c2a3bbe5db5fc570b1d0ee1e474db7cb22585 ("zlib:
> optimize inffast when copying direct from output"). autoconf.h moved
> from include/linux to include/generated in commit
> 264a26838056fc2d759f58bec2e720e01fcb1bdb ("kbuild: move autoconf.h to
> include/generated") which was in linux-next since 14 Dec 2009 and in
> Linus' tree since 18 Dec 2009.
>
> I added the following patch for today:
>
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Tue, 12 Jan 2010 10:23:43 +1100
> Subject: [PATCH] powerpc: fix boot Makefile for autoconf.h moving
>
> autoconf.h moved from include/linux to include/generated
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> arch/powerpc/boot/Makefile | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
> index 826a30a..fb32a8e 100644
> --- a/arch/powerpc/boot/Makefile
> +++ b/arch/powerpc/boot/Makefile
> @@ -34,7 +34,7 @@ BOOTCFLAGS += -fno-stack-protector
> endif
>
> BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj)
> -BOOTCFLAGS += -include include/linux/autoconf.h -Iarch/powerpc/include
> +BOOTCFLAGS += -include include/generated/autoconf.h -Iarch/powerpc/include
> BOOTCFLAGS += -Iinclude
>
> DTS_FLAGS ?= -p 1024
> --
> 1.6.6
>
> However, this then produced these errors:
>
> arch/powerpc/boot/inffast.c:7:27: error: asm/unaligned.h: No such file or directory
> arch/powerpc/boot/inffast.c:8:27: error: asm/byteorder.h: No such file or directory
> arch/powerpc/boot/inffast.c: In function 'inflate_fast':
> arch/powerpc/boot/inffast.c:263: warning: implicit declaration of function
> 'get_unaligned'
> arch/powerpc/boot/inffast.c:277:2: error: #error __BIG_ENDIAN nor
> __LITTLE_ENDIAN is defined
>
> So I just reverted the original commit (after removing my fix above).
>
> This latter build problem is probably only noticed if you build with a
> separate object directory (i.e. with O=.. on the make command). The
> previous PowerPC maintainer tells me that defining __KERNEL__ in the
> BOOTFLAGS is wrong and should have been noticed.
I guess that the above problem will fixed by adding $(srctree):
BOOTCFLAGS += -include include/generated/autoconf.h -I$(srctree)/arch/powerpc/include
BOOTCFLAGS += -I$(srctree)/include
But what to do with the __KERNEL__ define. If it isn't allowed I
don't know what to do.
Jocke
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: linux-next: origin tree build failure
2010-01-11 23:58 Stephen Rothwell
2010-01-12 0:29 ` Joakim Tjernlund
@ 2010-01-12 12:38 ` Joakim Tjernlund
1 sibling, 0 replies; 39+ messages in thread
From: Joakim Tjernlund @ 2010-01-12 12:38 UTC (permalink / raw)
To: Stephen Rothwell
Cc: linux-kernel, Linus, linux-next, Paul Mackerras, Andrew Morton,
linuxppc-dev
Stephen Rothwell <sfr@canb.auug.org.au> wrote on 12/01/2010 00:58:05:
>
> Hi all,
>
> Today's linux-next build (powerpc ppc64_defconfig) failed like this:
>
> cc1: error: include/linux/autoconf.h: No such file or directory
>
> (while building the boot wrappers - lots more of the same)
>
> Caused by commit ac4c2a3bbe5db5fc570b1d0ee1e474db7cb22585 ("zlib:
> optimize inffast when copying direct from output"). autoconf.h moved
> from include/linux to include/generated in commit
> 264a26838056fc2d759f58bec2e720e01fcb1bdb ("kbuild: move autoconf.h to
> include/generated") which was in linux-next since 14 Dec 2009 and in
> Linus' tree since 18 Dec 2009.
>
[SNIP]
>
> This latter build problem is probably only noticed if you build with a
> separate object directory (i.e. with O=.. on the make command). The
> previous PowerPC maintainer tells me that defining __KERNEL__ in the
> BOOTFLAGS is wrong and should have been noticed.
Is this any better w.r.t __KERNEL__?
>From 1a79993a42e17be665d3488663d81c0513b8bbfe Mon Sep 17 00:00:00 2001
From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Date: Tue, 12 Jan 2010 13:31:58 +0100
Subject: [PATCH] powerpc: move __KERNEL__ define in bootwrapper.
Apparently using -D__KERNEL__ in BOOTCFLAGS is a bad thing.
Move __KERNEL__ into inffast.c where it is needed.
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
arch/powerpc/boot/Makefile | 2 +-
lib/zlib_inflate/inffast.c | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index 79ebd6f..766fb88 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -20,7 +20,7 @@
all: $(obj)/zImage
BOOTCFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
- -fno-strict-aliasing -Os -msoft-float -pipe -D__KERNEL__\
+ -fno-strict-aliasing -Os -msoft-float -pipe \
-fomit-frame-pointer -fno-builtin -fPIC -nostdinc \
-isystem $(shell $(CROSS32CC) -print-file-name=include)
BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc
diff --git a/lib/zlib_inflate/inffast.c b/lib/zlib_inflate/inffast.c
index 05e1559..919c162 100644
--- a/lib/zlib_inflate/inffast.c
+++ b/lib/zlib_inflate/inffast.c
@@ -2,7 +2,9 @@
* Copyright (C) 1995-2004 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-
+#ifndef __KERNEL__
+#define __KERNEL__
+#endif
#include <linux/zutil.h>
#include <asm/unaligned.h>
#include <asm/byteorder.h>
--
1.6.4.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
end of thread, other threads:[~2010-01-12 12:43 UTC | newest]
Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-11 23:48 linux-next: origin tree build failure Stephen Rothwell
2009-01-12 0:10 ` Benjamin Herrenschmidt
2009-01-12 0:22 ` [PATCH] powerpc: Fix cpufreq drivers after cpufreq core changes Benjamin Herrenschmidt
2009-01-12 8:34 ` Ingo Molnar
2009-01-12 21:45 ` Benjamin Herrenschmidt
2009-01-12 17:44 ` Olof Johansson
2009-01-12 9:05 ` linux-next: origin tree build failure Ingo Molnar
2009-01-12 9:24 ` Stephen Rothwell
2009-01-12 9:32 ` Ingo Molnar
2009-01-13 16:31 ` Stephen Rothwell
2009-01-12 9:49 ` Michael Ellerman
2009-01-12 10:44 ` Ingo Molnar
-- strict thread matches above, loose matches on Subject: below --
2010-01-11 23:58 Stephen Rothwell
2010-01-12 0:29 ` Joakim Tjernlund
2010-01-12 12:38 ` Joakim Tjernlund
2009-06-19 6:30 Stephen Rothwell
2009-06-12 0:24 Stephen Rothwell
2009-06-12 0:53 ` Paul Mackerras
2009-06-12 1:00 ` Benjamin Herrenschmidt
2009-06-12 9:20 ` Ingo Molnar
2009-06-12 9:33 ` Benjamin Herrenschmidt
2009-06-12 9:43 ` Peter Zijlstra
2009-06-12 9:55 ` Ingo Molnar
2009-06-12 9:57 ` Benjamin Herrenschmidt
2009-06-12 12:53 ` Ingo Molnar
2009-06-12 13:10 ` Benjamin Herrenschmidt
2009-06-12 13:29 ` Benjamin Herrenschmidt
2009-06-12 13:49 ` Ingo Molnar
2009-06-12 14:06 ` Benjamin Herrenschmidt
2009-06-12 14:11 ` Ingo Molnar
2009-06-12 14:23 ` Benjamin Herrenschmidt
2009-06-13 5:06 ` Stephen Rothwell
2009-06-12 13:44 ` Ingo Molnar
2009-06-12 13:56 ` Benjamin Herrenschmidt
2009-06-12 14:07 ` Ingo Molnar
2009-06-12 14:19 ` Benjamin Herrenschmidt
2009-06-13 4:54 ` Stephen Rothwell
2008-12-29 0:00 Stephen Rothwell
2008-07-25 0:30 Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).