* x86: fix a couple of sparse warnings
@ 2008-04-27 23:15 Dmitri Vorobiev
2008-04-27 23:15 ` [PATCH 1/2] x86: iommu_sac_force can become static Dmitri Vorobiev
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Dmitri Vorobiev @ 2008-04-27 23:15 UTC (permalink / raw)
To: mingo, tglx, hpa, linux-kernel
Hi Ingo, Peter, Thomas,
Here is a couple of patches that fix sparse warnings
produced while compiling defconfig for i386:
<<<<<
arch/x86/kernel/reboot.c:32:5: warning: symbol 'reboot_force' was not declared. Should it be static?
arch/x86/kernel/pci-dma.c:17:5: warning: symbol 'iommu_sac_force' was not declared. Should it be static?
<<<<<
These patches were compile-tested using defconfig for both
i386 and x86_64. Also, a runtime test was successfully
performed by booting i386 and x86_64 boxes up to the shell
prompt.
Patches apply cleanly to current x86.git.
Please consider.
Thanks,
Dmitri Vorobiev
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] x86: iommu_sac_force can become static
2008-04-27 23:15 x86: fix a couple of sparse warnings Dmitri Vorobiev
@ 2008-04-27 23:15 ` Dmitri Vorobiev
2008-04-27 23:15 ` [PATCH 2/2] x86: add proper header for reboot_force Dmitri Vorobiev
2008-04-28 12:38 ` x86: fix a couple of sparse warnings Ingo Molnar
2 siblings, 0 replies; 10+ messages in thread
From: Dmitri Vorobiev @ 2008-04-27 23:15 UTC (permalink / raw)
To: mingo, tglx, hpa, linux-kernel
The iommu_sac_force variable is needlessly defined global,
and this patch makes it static. Additionally, this variable
needs not be explicitly initialized.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
---
arch/x86/kernel/pci-dma.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c
index 50a18e4..81862d0 100644
--- a/arch/x86/kernel/pci-dma.c
+++ b/arch/x86/kernel/pci-dma.c
@@ -14,7 +14,7 @@ EXPORT_SYMBOL(forbid_dac);
const struct dma_mapping_ops *dma_ops;
EXPORT_SYMBOL(dma_ops);
-int iommu_sac_force __read_mostly = 0;
+static int iommu_sac_force __read_mostly;
#ifdef CONFIG_IOMMU_DEBUG
int panic_on_overflow __read_mostly = 1;
--
1.5.3.6
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] x86: add proper header for reboot_force
2008-04-27 23:15 x86: fix a couple of sparse warnings Dmitri Vorobiev
2008-04-27 23:15 ` [PATCH 1/2] x86: iommu_sac_force can become static Dmitri Vorobiev
@ 2008-04-27 23:15 ` Dmitri Vorobiev
2008-04-28 12:38 ` x86: fix a couple of sparse warnings Ingo Molnar
2 siblings, 0 replies; 10+ messages in thread
From: Dmitri Vorobiev @ 2008-04-27 23:15 UTC (permalink / raw)
To: mingo, tglx, hpa, linux-kernel
This patch fixes one sparse warning by including the appropriate
header for the reboot_force symbol.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
---
arch/x86/kernel/reboot.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index 69858e8..5ed6cc9 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -9,6 +9,7 @@
#include <asm/desc.h>
#include <asm/hpet.h>
#include <asm/pgtable.h>
+#include <asm/proto.h>
#include <asm/reboot_fixups.h>
#include <asm/reboot.h>
--
1.5.3.6
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: x86: fix a couple of sparse warnings
2008-04-27 23:15 x86: fix a couple of sparse warnings Dmitri Vorobiev
2008-04-27 23:15 ` [PATCH 1/2] x86: iommu_sac_force can become static Dmitri Vorobiev
2008-04-27 23:15 ` [PATCH 2/2] x86: add proper header for reboot_force Dmitri Vorobiev
@ 2008-04-28 12:38 ` Ingo Molnar
2008-04-28 13:37 ` Adrian Bunk
2 siblings, 1 reply; 10+ messages in thread
From: Ingo Molnar @ 2008-04-28 12:38 UTC (permalink / raw)
To: Dmitri Vorobiev; +Cc: tglx, hpa, linux-kernel
* Dmitri Vorobiev <dmitri.vorobiev@gmail.com> wrote:
> Hi Ingo, Peter, Thomas,
>
> Here is a couple of patches that fix sparse warnings produced while
> compiling defconfig for i386:
thanks Dmitri, applied.
Ingo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: x86: fix a couple of sparse warnings
2008-04-28 12:38 ` x86: fix a couple of sparse warnings Ingo Molnar
@ 2008-04-28 13:37 ` Adrian Bunk
2008-04-28 13:43 ` Dmitri Vorobiev
0 siblings, 1 reply; 10+ messages in thread
From: Adrian Bunk @ 2008-04-28 13:37 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Dmitri Vorobiev, tglx, hpa, linux-kernel
On Mon, Apr 28, 2008 at 02:38:09PM +0200, Ingo Molnar wrote:
>
> * Dmitri Vorobiev <dmitri.vorobiev@gmail.com> wrote:
>
> > Hi Ingo, Peter, Thomas,
> >
> > Here is a couple of patches that fix sparse warnings produced while
> > compiling defconfig for i386:
>
> thanks Dmitri, applied.
/me wonders what was wrong with http://lkml.org/lkml/2008/4/23/131
that contains a superset of the first patch
(and got no response at all)
> Ingo
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: x86: fix a couple of sparse warnings
2008-04-28 13:37 ` Adrian Bunk
@ 2008-04-28 13:43 ` Dmitri Vorobiev
2008-04-28 13:59 ` Adrian Bunk
0 siblings, 1 reply; 10+ messages in thread
From: Dmitri Vorobiev @ 2008-04-28 13:43 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Ingo Molnar, tglx, hpa, linux-kernel
2008/4/28 Adrian Bunk <bunk@kernel.org>:
>
> On Mon, Apr 28, 2008 at 02:38:09PM +0200, Ingo Molnar wrote:
> >
> > * Dmitri Vorobiev <dmitri.vorobiev@gmail.com> wrote:
> >
> > > Hi Ingo, Peter, Thomas,
> > >
> > > Here is a couple of patches that fix sparse warnings produced while
> > > compiling defconfig for i386:
> >
> > thanks Dmitri, applied.
>
> /me wonders what was wrong with http://lkml.org/lkml/2008/4/23/131
> that contains a superset of the first patch
> (and got no response at all)
Adrian, I am sorry for duplicating your work. The clash wasn't intentional: I
did not notice your earlier patch in the high traffic of this mailing list.
Thanks,
Dimitri
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: x86: fix a couple of sparse warnings
2008-04-28 13:43 ` Dmitri Vorobiev
@ 2008-04-28 13:59 ` Adrian Bunk
2008-04-28 15:01 ` Ingo Molnar
0 siblings, 1 reply; 10+ messages in thread
From: Adrian Bunk @ 2008-04-28 13:59 UTC (permalink / raw)
To: Dmitri Vorobiev; +Cc: Ingo Molnar, tglx, hpa, linux-kernel
On Mon, Apr 28, 2008 at 05:43:25PM +0400, Dmitri Vorobiev wrote:
> 2008/4/28 Adrian Bunk <bunk@kernel.org>:
> >
> > On Mon, Apr 28, 2008 at 02:38:09PM +0200, Ingo Molnar wrote:
> > >
> > > * Dmitri Vorobiev <dmitri.vorobiev@gmail.com> wrote:
> > >
> > > > Hi Ingo, Peter, Thomas,
> > > >
> > > > Here is a couple of patches that fix sparse warnings produced while
> > > > compiling defconfig for i386:
> > >
> > > thanks Dmitri, applied.
> >
> > /me wonders what was wrong with http://lkml.org/lkml/2008/4/23/131
> > that contains a superset of the first patch
> > (and got no response at all)
>
> Adrian, I am sorry for duplicating your work. The clash wasn't intentional: I
> did not notice your earlier patch in the high traffic of this mailing list.
No problem, and I'm actually more interested why my patch got lost.
> Thanks,
> Dimitri
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: x86: fix a couple of sparse warnings
2008-04-28 13:59 ` Adrian Bunk
@ 2008-04-28 15:01 ` Ingo Molnar
2008-04-28 18:56 ` Adrian Bunk
0 siblings, 1 reply; 10+ messages in thread
From: Ingo Molnar @ 2008-04-28 15:01 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Dmitri Vorobiev, tglx, hpa, linux-kernel, Alexander Viro
* Adrian Bunk <bunk@kernel.org> wrote:
> On Mon, Apr 28, 2008 at 05:43:25PM +0400, Dmitri Vorobiev wrote:
> > 2008/4/28 Adrian Bunk <bunk@kernel.org>:
> > >
> > > /me wonders what was wrong with http://lkml.org/lkml/2008/4/23/131
> > > that contains a superset of the first patch
> > > (and got no response at all)
> >
> > Adrian, I am sorry for duplicating your work. The clash wasn't
> > intentional: I did not notice your earlier patch in the high traffic
> > of this mailing list.
>
> No problem, and I'm actually more interested why my patch got lost.
It's simple: in this case i had two patches in my backlog, one from a
new person and one from a frequent contributor - doing the very same
change. I preferred the newbie's patch, to encourage Dmitri to keep
contributing to Linux and to help him learn from the experience of
working with various Linux maintainers.
You contributed a lot of similar changes already, and are 1500 similar
patches down the line, and for "trivial" patches like this you probably
aren't going to learn anything new.
That doesn't mean your work is not appreciated - there's 5 of your
patches queued up in x86.git this very moment [one of them is a subset
of the patch you mention above] and a few more in my mbox, but it does
mean that for a case like this, the newbie's change wins. And that
applies to my own changes just as much : often a newbie submits a
cleanup that i have done already but i'll put in the newbie's patch and
drop mine.
Ingo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: x86: fix a couple of sparse warnings
2008-04-28 15:01 ` Ingo Molnar
@ 2008-04-28 18:56 ` Adrian Bunk
2008-04-28 19:13 ` Sam Ravnborg
0 siblings, 1 reply; 10+ messages in thread
From: Adrian Bunk @ 2008-04-28 18:56 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Dmitri Vorobiev, tglx, hpa, linux-kernel, Alexander Viro
On Mon, Apr 28, 2008 at 05:01:56PM +0200, Ingo Molnar wrote:
>
> * Adrian Bunk <bunk@kernel.org> wrote:
>
> > On Mon, Apr 28, 2008 at 05:43:25PM +0400, Dmitri Vorobiev wrote:
> > > 2008/4/28 Adrian Bunk <bunk@kernel.org>:
> > > >
> > > > /me wonders what was wrong with http://lkml.org/lkml/2008/4/23/131
> > > > that contains a superset of the first patch
> > > > (and got no response at all)
> > >
> > > Adrian, I am sorry for duplicating your work. The clash wasn't
> > > intentional: I did not notice your earlier patch in the high traffic
> > > of this mailing list.
> >
> > No problem, and I'm actually more interested why my patch got lost.
>
> It's simple: in this case i had two patches in my backlog, one from a
> new person and one from a frequent contributor - doing the very same
> change. I preferred the newbie's patch, to encourage Dmitri to keep
> contributing to Linux and to help him learn from the experience of
> working with various Linux maintainers.
>...
Every maintainer except you will teach the newbie where to find the
current tree to avoid duplicating work...
But OK, instead of spending my time duplicating later patches I'll put
possible cleanups and bugs for x86 on a list and check 1 or 2 months
later whether they are still present.
> Ingo
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: x86: fix a couple of sparse warnings
2008-04-28 18:56 ` Adrian Bunk
@ 2008-04-28 19:13 ` Sam Ravnborg
0 siblings, 0 replies; 10+ messages in thread
From: Sam Ravnborg @ 2008-04-28 19:13 UTC (permalink / raw)
To: Adrian Bunk
Cc: Ingo Molnar, Dmitri Vorobiev, tglx, hpa, linux-kernel,
Alexander Viro
On Mon, Apr 28, 2008 at 09:56:08PM +0300, Adrian Bunk wrote:
> On Mon, Apr 28, 2008 at 05:01:56PM +0200, Ingo Molnar wrote:
> >
> > * Adrian Bunk <bunk@kernel.org> wrote:
> >
> > > On Mon, Apr 28, 2008 at 05:43:25PM +0400, Dmitri Vorobiev wrote:
> > > > 2008/4/28 Adrian Bunk <bunk@kernel.org>:
> > > > >
> > > > > /me wonders what was wrong with http://lkml.org/lkml/2008/4/23/131
> > > > > that contains a superset of the first patch
> > > > > (and got no response at all)
> > > >
> > > > Adrian, I am sorry for duplicating your work. The clash wasn't
> > > > intentional: I did not notice your earlier patch in the high traffic
> > > > of this mailing list.
> > >
> > > No problem, and I'm actually more interested why my patch got lost.
> >
> > It's simple: in this case i had two patches in my backlog, one from a
> > new person and one from a frequent contributor - doing the very same
> > change. I preferred the newbie's patch, to encourage Dmitri to keep
> > contributing to Linux and to help him learn from the experience of
> > working with various Linux maintainers.
> >...
>
> Every maintainer except you will teach the newbie where to find the
> current tree to avoid duplicating work...
I have seen Ingo referring to his README file countless number of
times which describes where to locate the x86.git tree and
how to pull it. So has you.
Sam
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-04-28 19:13 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-27 23:15 x86: fix a couple of sparse warnings Dmitri Vorobiev
2008-04-27 23:15 ` [PATCH 1/2] x86: iommu_sac_force can become static Dmitri Vorobiev
2008-04-27 23:15 ` [PATCH 2/2] x86: add proper header for reboot_force Dmitri Vorobiev
2008-04-28 12:38 ` x86: fix a couple of sparse warnings Ingo Molnar
2008-04-28 13:37 ` Adrian Bunk
2008-04-28 13:43 ` Dmitri Vorobiev
2008-04-28 13:59 ` Adrian Bunk
2008-04-28 15:01 ` Ingo Molnar
2008-04-28 18:56 ` Adrian Bunk
2008-04-28 19:13 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox