2004-01-20 12:40:11

by Gerd Knorr

[permalink] [raw]
Subject: [patch] -mm5 has no i2c on amd64

Hi,

trivial fix ...

Gerd

==============================[ cut here ]==============================
--- linux-mm5-2.6.1/arch/x86_64/Kconfig.i2c 2004-01-20 13:14:42.000000000 +0100
+++ linux-mm5-2.6.1/arch/x86_64/Kconfig 2004-01-20 13:15:10.000000000 +0100
@@ -429,6 +429,8 @@

source "drivers/char/Kconfig"

+source "drivers/i2c/Kconfig"
+
source "drivers/misc/Kconfig"

source "drivers/media/Kconfig"


2004-01-20 17:10:27

by Andrew Morton

[permalink] [raw]
Subject: Re: [patch] -mm5 has no i2c on amd64

Gerd Knorr <[email protected]> wrote:
>
> Hi,
>
> trivial fix ...
>
> Gerd
>
> ==============================[ cut here ]==============================
> --- linux-mm5-2.6.1/arch/x86_64/Kconfig.i2c 2004-01-20 13:14:42.000000000 +0100
> +++ linux-mm5-2.6.1/arch/x86_64/Kconfig 2004-01-20 13:15:10.000000000 +0100
> @@ -429,6 +429,8 @@
>
> source "drivers/char/Kconfig"
>
> +source "drivers/i2c/Kconfig"
> +
> source "drivers/misc/Kconfig"
>

Ah-hah! That's why the ppc64 kbuild system is whining about undefined but
used i2c symbols:

drivers/ieee1394/Kconfig:60:warning: enable is only allowed with boolean and tristate symbols
drivers/media/video/Kconfig:13:warning: enable is only allowed with boolean and tristate symbols

So this change needs to be propagated to other architectures as well.

2004-01-20 17:47:36

by Andi Kleen

[permalink] [raw]
Subject: Re: [patch] -mm5 has no i2c on amd64

Gerd Knorr <[email protected]> writes:
>
> ==============================[ cut here ]==============================
> --- linux-mm5-2.6.1/arch/x86_64/Kconfig.i2c 2004-01-20 13:14:42.000000000 +0100
> +++ linux-mm5-2.6.1/arch/x86_64/Kconfig 2004-01-20 13:15:10.000000000 +0100
> @@ -429,6 +429,8 @@
>
> source "drivers/char/Kconfig"
>
> +source "drivers/i2c/Kconfig"
> +

There is no such source in arch/i386/Kconfig. So it's probably wrong.

-Andi

2004-01-20 18:07:42

by Sam Ravnborg

[permalink] [raw]
Subject: Re: [patch] -mm5 has no i2c on amd64

On Tue, Jan 20, 2004 at 09:10:35AM -0800, Andrew Morton wrote:
> > Hi,
> >
> > trivial fix ...
> >
> > Gerd
> >
> > ==============================[ cut here ]==============================
> > --- linux-mm5-2.6.1/arch/x86_64/Kconfig.i2c 2004-01-20 13:14:42.000000000 +0100
> > +++ linux-mm5-2.6.1/arch/x86_64/Kconfig 2004-01-20 13:15:10.000000000 +0100
> > @@ -429,6 +429,8 @@
> >
> > source "drivers/char/Kconfig"
> >
> > +source "drivers/i2c/Kconfig"
> > +
> > source "drivers/misc/Kconfig"
> >
>
> Ah-hah! That's why the ppc64 kbuild system is whining about undefined but
> used i2c symbols:
>
> drivers/ieee1394/Kconfig:60:warning: enable is only allowed with boolean and tristate symbols
> drivers/media/video/Kconfig:13:warning: enable is only allowed with boolean and tristate symbols
>
> So this change needs to be propagated to other architectures as well.

The better approach is to use the generic drivers/Kconfig,
as used by i386, parisc and cris today.

Sam

2004-01-20 18:19:32

by Andrew Morton

[permalink] [raw]
Subject: Re: [patch] -mm5 has no i2c on amd64

Andi Kleen <[email protected]> wrote:
>
> Gerd Knorr <[email protected]> writes:
> >
> > ==============================[ cut here ]==============================
> > --- linux-mm5-2.6.1/arch/x86_64/Kconfig.i2c 2004-01-20 13:14:42.000000000 +0100
> > +++ linux-mm5-2.6.1/arch/x86_64/Kconfig 2004-01-20 13:15:10.000000000 +0100
> > @@ -429,6 +429,8 @@
> >
> > source "drivers/char/Kconfig"
> >
> > +source "drivers/i2c/Kconfig"
> > +
>
> There is no such source in arch/i386/Kconfig. So it's probably wrong.
>

arch/i386/Kconfig sources drivers/Kconfig, which then picks up the i2c stuff.

2004-01-20 18:18:36

by Andrew Morton

[permalink] [raw]
Subject: Re: [patch] -mm5 has no i2c on amd64

Gerd Knorr <[email protected]> wrote:
>
> Hi,
>
> trivial fix ...
>
> Gerd
>
> ==============================[ cut here ]==============================
> --- linux-mm5-2.6.1/arch/x86_64/Kconfig.i2c 2004-01-20 13:14:42.000000000 +0100
> +++ linux-mm5-2.6.1/arch/x86_64/Kconfig 2004-01-20 13:15:10.000000000 +0100
> @@ -429,6 +429,8 @@
>
> source "drivers/char/Kconfig"
>
> +source "drivers/i2c/Kconfig"
> +
> source "drivers/misc/Kconfig"
>
> source "drivers/media/Kconfig"

Apparently architectures should be sourcing the generic drivers/Kconfig
file. But let's run with your fix for now.

2004-01-20 18:52:15

by Andi Kleen

[permalink] [raw]
Subject: Re: [patch] -mm5 has no i2c on amd64

On Tue, 20 Jan 2004 19:32:59 +0100
Gerd Knorr <[email protected]> wrote:

> On Tue, Jan 20, 2004 at 01:59:46PM +0100, Andi Kleen wrote:
> > Gerd Knorr <[email protected]> writes:
> > >
> > > +++ linux-mm5-2.6.1/arch/x86_64/Kconfig 2004-01-20 13:15:10.000000000 +0100
> > > +source "drivers/i2c/Kconfig"
> > > +
> >
> > There is no such source in arch/i386/Kconfig. So it's probably wrong.
>
> i386 includes that indirectly via drivers/Kconfig
> So should the other archs do that too?

Yep. Or at least x86-64 should likely.

But it must have worked until recently because I got a report about I2C on x86-64 for 2.6.0.

-Andi


2004-01-20 18:45:18

by Gerd Hoffmann

[permalink] [raw]
Subject: Re: [patch] -mm5 has no i2c on amd64

On Tue, Jan 20, 2004 at 01:59:46PM +0100, Andi Kleen wrote:
> Gerd Knorr <[email protected]> writes:
> >
> > +++ linux-mm5-2.6.1/arch/x86_64/Kconfig 2004-01-20 13:15:10.000000000 +0100
> > +source "drivers/i2c/Kconfig"
> > +
>
> There is no such source in arch/i386/Kconfig. So it's probably wrong.

i386 includes that indirectly via drivers/Kconfig
So should the other archs do that too?

Gerd

--
"... und auch das ganze Wochenende oll" -- Wetterbericht auf RadioEins

2004-01-21 00:31:09

by Greg KH

[permalink] [raw]
Subject: Re: [patch] -mm5 has no i2c on amd64

On Tue, Jan 20, 2004 at 07:51:32PM +0100, Andi Kleen wrote:
> On Tue, 20 Jan 2004 19:32:59 +0100
> Gerd Knorr <[email protected]> wrote:
>
> > On Tue, Jan 20, 2004 at 01:59:46PM +0100, Andi Kleen wrote:
> > > Gerd Knorr <[email protected]> writes:
> > > >
> > > > +++ linux-mm5-2.6.1/arch/x86_64/Kconfig 2004-01-20 13:15:10.000000000 +0100
> > > > +source "drivers/i2c/Kconfig"
> > > > +
> > >
> > > There is no such source in arch/i386/Kconfig. So it's probably wrong.
> >
> > i386 includes that indirectly via drivers/Kconfig
> > So should the other archs do that too?
>
> Yep. Or at least x86-64 should likely.
>
> But it must have worked until recently because I got a report about I2C on x86-64 for 2.6.0.

Yes, I just moved the i2c Kconfig out of the char menu, and into the
main drivers/Kconfig.

And here I thought all of the archs had switched to using that file,
instead of trying to put together their own drivers menus :)

thanks,

greg k-h