linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: mtd tree build failure
@ 2009-05-27  3:40 Stephen Rothwell
  0 siblings, 0 replies; 10+ messages in thread
From: Stephen Rothwell @ 2009-05-27  3:40 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-next, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 912 bytes --]

Hi David,

Today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/mtd/maps/dilnetpc.c: In function 'init_dnpc':
drivers/mtd/maps/dilnetpc.c:448: error: 'struct mtd_partition' has no member named 'mtdp'
drivers/mtd/maps/dilnetpc.c:449: error: 'struct mtd_partition' has no member named 'mtdp'
drivers/mtd/maps/dilnetpc.c:450: error: 'struct mtd_partition' has no member named 'mtdp'
drivers/mtd/maps/dilnetpc.c:451: error: 'struct mtd_partition' has no member named 'mtdp'

Caused by commit b90cf6681f4f6263920616e7ca2fd09130e4143a ("[MTD] Remove
option for add_mtd_partitions() to not register partitions.").  The
comment in that commit even says that it will cause this breakage, so why
hasn't this been fixed?

I have used the mtd tree from next-20090526 for today.  
-- 
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] 10+ messages in thread

* Re: linux-next: mtd tree build failure
  2008-10-20  8:33   ` Mike Rapoport
@ 2008-10-20  8:48     ` David Woodhouse
  0 siblings, 0 replies; 10+ messages in thread
From: David Woodhouse @ 2008-10-20  8:48 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: Stephen Rothwell, linux-next, Russell King

On Mon, 2008-10-20 at 10:33 +0200, Mike Rapoport wrote:
> You applied the correct version of the patch. It did depend on ARM at the
> beginning, but after discussion it was decided to make it generic so that other
> architecture would be able to use it. I just haven't thought that readsw/writesw
> might be not available on all architectures.

I've made it depend on ARM again for now. For 2.6.29, let's look at
making use ioread8_rep().

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel.com                              Intel Corporation

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux-next: mtd tree build failure
  2008-10-20  7:24 ` David Woodhouse
@ 2008-10-20  8:33   ` Mike Rapoport
  2008-10-20  8:48     ` David Woodhouse
  0 siblings, 1 reply; 10+ messages in thread
From: Mike Rapoport @ 2008-10-20  8:33 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Stephen Rothwell, linux-next, Russell King



David Woodhouse wrote:
> On Mon, 2008-10-20 at 16:35 +1100, Stephen Rothwell wrote:
>> Caused by commit aaf7ea20000436df3cbb397ccb734ad1e2e5164d ("[MTD]
>> [NAND] GPIO NAND flash driver").  I assume this needs to depend on
>> some architecture/platform so I reverted it for now.
> 
> Hm, indeed. I thought it _did_ depend on ARM -- did I apply the wrong
> version of the patch?
> 

You applied the correct version of the patch. It did depend on ARM at the
beginning, but after discussion it was decided to make it generic so that other
architecture would be able to use it. I just haven't thought that readsw/writesw
might be not available on all architectures.


-- 
Sincerely yours,
Mike.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux-next: mtd tree build failure
  2008-10-20  5:35 Stephen Rothwell
@ 2008-10-20  7:24 ` David Woodhouse
  2008-10-20  8:33   ` Mike Rapoport
  0 siblings, 1 reply; 10+ messages in thread
From: David Woodhouse @ 2008-10-20  7:24 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, Mike Rapoport, Russell King

On Mon, 2008-10-20 at 16:35 +1100, Stephen Rothwell wrote:
> Caused by commit aaf7ea20000436df3cbb397ccb734ad1e2e5164d ("[MTD]
> [NAND] GPIO NAND flash driver").  I assume this needs to depend on
> some architecture/platform so I reverted it for now.

Hm, indeed. I thought it _did_ depend on ARM -- did I apply the wrong
version of the patch?

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel.com                              Intel Corporation

^ permalink raw reply	[flat|nested] 10+ messages in thread

* linux-next: mtd tree build failure
@ 2008-10-20  5:35 Stephen Rothwell
  2008-10-20  7:24 ` David Woodhouse
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Rothwell @ 2008-10-20  5:35 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-next, Mike Rapoport, Russell King

[-- Attachment #1: Type: text/plain, Size: 937 bytes --]

Hi David,

Today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/mtd/nand/gpio.c: In function 'gpio_nand_writebuf':
drivers/mtd/nand/gpio.c:90: error: implicit declaration of function 'writesb'
drivers/mtd/nand/gpio.c: In function 'gpio_nand_readbuf':
drivers/mtd/nand/gpio.c:97: error: implicit declaration of function 'readsb'
drivers/mtd/nand/gpio.c: In function 'gpio_nand_writebuf16':
drivers/mtd/nand/gpio.c:123: error: implicit declaration of function 'writesw'
drivers/mtd/nand/gpio.c: In function 'gpio_nand_readbuf16':
drivers/mtd/nand/gpio.c:138: error: implicit declaration of function 'readsw'

Caused by commit aaf7ea20000436df3cbb397ccb734ad1e2e5164d ("[MTD] [NAND]
GPIO NAND flash driver").  I assume this needs to depend on some
architecture/platform so I reverted it for now.
-- 
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] 10+ messages in thread

* Re: linux-next: mtd tree build failure
  2008-08-09 21:33     ` David Woodhouse
@ 2008-08-11  8:30       ` Alexey Korolev
  0 siblings, 0 replies; 10+ messages in thread
From: Alexey Korolev @ 2008-08-11  8:30 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Stephen Rothwell, linux-next, Russell King

Hi David,

> > 
> > Thanks for catching export symbol problem.  
> > Hmm, it seems very strange why i2c_dev.c can't reference the exported symbols. 
> > We are looking after of the problem. I believe it will be fixed ASAP.
> 
> http://git.infradead.org/mtd-2.6.git?a=commitdiff;h=c314dfdc
>
Oh Great! Thank you very much! 

Alexey

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux-next: mtd tree build failure
  2008-08-09 20:41   ` Alexey Korolev
@ 2008-08-09 21:33     ` David Woodhouse
  2008-08-11  8:30       ` Alexey Korolev
  0 siblings, 1 reply; 10+ messages in thread
From: David Woodhouse @ 2008-08-09 21:33 UTC (permalink / raw)
  To: Alexey Korolev; +Cc: Stephen Rothwell, linux-next, Russell King

On Sat, 2008-08-09 at 21:41 +0100, Alexey Korolev wrote:
> Hi Stephen,
> 
> Thanks for catching export symbol problem.  
> Hmm, it seems very strange why i2c_dev.c can't reference the exported symbols. 
> We are looking after of the problem. I believe it will be fixed ASAP.

http://git.infradead.org/mtd-2.6.git?a=commitdiff;h=c314dfdc

-- 
dwmw2

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux-next: mtd tree build failure
  2008-08-07 14:19 ` Stephen Rothwell
@ 2008-08-09 20:41   ` Alexey Korolev
  2008-08-09 21:33     ` David Woodhouse
  0 siblings, 1 reply; 10+ messages in thread
From: Alexey Korolev @ 2008-08-09 20:41 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: David Woodhouse, linux-next, Russell King

Hi Stephen,

Thanks for catching export symbol problem.  
Hmm, it seems very strange why i2c_dev.c can't reference the exported symbols. 
We are looking after of the problem. I believe it will be fixed ASAP.

Thanks,
Alexey

> Hi Dave,
> 
> On Thu, 7 Aug 2008 13:30:05 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > Today's linux-next build (x86_64 allmodconfig) failed like this:
> > 
> > ERROR: "qry_present" [drivers/mtd/chips/cfi_probe.ko] undefined!
> > ERROR: "qry_mode_off" [drivers/mtd/chips/cfi_probe.ko] undefined!
> > ERROR: "qry_mode_on" [drivers/mtd/chips/cfi_probe.ko] undefined!
> > 
> > Caused by commit 2e489e077a6ad118c4f247faedf330117b107cce ("[MTD] [NOR]
> > Add qry_mode_on()/qry_omde_off() to deal with odd chips").
> 
> Also from an arm cam60_defconfig build:
> 
> drivers/built-in.o: In function `cfi_probe_chip':
> i2c-dev.c:(.text+0x497a4): undefined reference to `qry_mode_on'
> i2c-dev.c:(.text+0x49810): undefined reference to `qry_present'
> i2c-dev.c:(.text+0x49850): undefined reference to `qry_mode_off'
> i2c-dev.c:(.text+0x498a0): undefined reference to `qry_mode_off'
> i2c-dev.c:(.text+0x498b0): undefined reference to `qry_present'
> i2c-dev.c:(.text+0x498c8): undefined reference to `qry_mode_off'
> i2c-dev.c:(.text+0x498d8): undefined reference to `qry_present'
> i2c-dev.c:(.text+0x49ca4): undefined reference to `qry_mode_off'
> 
> This is today's linux-next with these symbols exported (which obviously
> makes no difference here).
> 
> -- 
> Cheers,
> Stephen Rothwell                    sfr@canb.auug.org.au
> http://www.canb.auug.org.au/~sfr/
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux-next: mtd tree build failure
  2008-08-07  3:30 Stephen Rothwell
@ 2008-08-07 14:19 ` Stephen Rothwell
  2008-08-09 20:41   ` Alexey Korolev
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Rothwell @ 2008-08-07 14:19 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-next, Alexey Korolev, Russell King

[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]

Hi Dave,

On Thu, 7 Aug 2008 13:30:05 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Today's linux-next build (x86_64 allmodconfig) failed like this:
> 
> ERROR: "qry_present" [drivers/mtd/chips/cfi_probe.ko] undefined!
> ERROR: "qry_mode_off" [drivers/mtd/chips/cfi_probe.ko] undefined!
> ERROR: "qry_mode_on" [drivers/mtd/chips/cfi_probe.ko] undefined!
> 
> Caused by commit 2e489e077a6ad118c4f247faedf330117b107cce ("[MTD] [NOR]
> Add qry_mode_on()/qry_omde_off() to deal with odd chips").

Also from an arm cam60_defconfig build:

drivers/built-in.o: In function `cfi_probe_chip':
i2c-dev.c:(.text+0x497a4): undefined reference to `qry_mode_on'
i2c-dev.c:(.text+0x49810): undefined reference to `qry_present'
i2c-dev.c:(.text+0x49850): undefined reference to `qry_mode_off'
i2c-dev.c:(.text+0x498a0): undefined reference to `qry_mode_off'
i2c-dev.c:(.text+0x498b0): undefined reference to `qry_present'
i2c-dev.c:(.text+0x498c8): undefined reference to `qry_mode_off'
i2c-dev.c:(.text+0x498d8): undefined reference to `qry_present'
i2c-dev.c:(.text+0x49ca4): undefined reference to `qry_mode_off'

This is today's linux-next with these symbols exported (which obviously
makes no difference here).

-- 
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] 10+ messages in thread

* linux-next: mtd tree build failure
@ 2008-08-07  3:30 Stephen Rothwell
  2008-08-07 14:19 ` Stephen Rothwell
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Rothwell @ 2008-08-07  3:30 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-next, Alexey Korolev

Hi Dave,

Today's linux-next build (x86_64 allmodconfig) failed like this:

ERROR: "qry_present" [drivers/mtd/chips/cfi_probe.ko] undefined!
ERROR: "qry_mode_off" [drivers/mtd/chips/cfi_probe.ko] undefined!
ERROR: "qry_mode_on" [drivers/mtd/chips/cfi_probe.ko] undefined!

Caused by commit 2e489e077a6ad118c4f247faedf330117b107cce ("[MTD] [NOR]
Add qry_mode_on()/qry_omde_off() to deal with odd chips").

I added the following patch.

Those names are very generic for kernel global symbols ...
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

>From 6e7b82917d1b8621c6520581c3e036956d16f8ab Mon Sep 17 00:00:00 2001
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Thu, 7 Aug 2008 13:28:04 +1000
Subject: [PATCH] mtd: export qry_{preset,mode_on,mode_off}

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/mtd/chips/cfi_util.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/chips/cfi_util.c b/drivers/mtd/chips/cfi_util.c
index 8d75536..4a60408 100644
--- a/drivers/mtd/chips/cfi_util.c
+++ b/drivers/mtd/chips/cfi_util.c
@@ -50,6 +50,7 @@ int __xipram qry_present(struct map_info *map, __u32 base,
 
 	return 1; 	/* "QRY" found */
 }
+EXPORT_SYMBOL_GPL(qry_present);
 
 int __xipram qry_mode_on(uint32_t base, struct map_info *map,
 				struct cfi_private *cfi)
@@ -73,12 +74,15 @@ int __xipram qry_mode_on(uint32_t base, struct map_info *map,
 	/* QRY not found */
 	return 0;
 }
+EXPORT_SYMBOL_GPL(qry_mode_on);
+
 void __xipram qry_mode_off(uint32_t base, struct map_info *map,
 				struct cfi_private *cfi)
 {
 	cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
 	cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL);
 }
+EXPORT_SYMBOL_GPL(qry_mode_off);
 
 struct cfi_extquery *
 __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* name)
-- 
1.5.6.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-05-27  3:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-27  3:40 linux-next: mtd tree build failure Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2008-10-20  5:35 Stephen Rothwell
2008-10-20  7:24 ` David Woodhouse
2008-10-20  8:33   ` Mike Rapoport
2008-10-20  8:48     ` David Woodhouse
2008-08-07  3:30 Stephen Rothwell
2008-08-07 14:19 ` Stephen Rothwell
2008-08-09 20:41   ` Alexey Korolev
2008-08-09 21:33     ` David Woodhouse
2008-08-11  8:30       ` Alexey Korolev

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).