2011-05-22 08:15:43

by Rolf Eike Beer

[permalink] [raw]
Subject: PA-RISC: compile error in include/net/dst.h

from include/net/ipv6.h:16,
from include/linux/sunrpc/clnt.h:25,
from include/linux/nfs_fs.h:50,
from init/do_mounts.c:20:
include/net/dst.h: In function 'dst_hold':
include/net/dst.h:238:2: error: size of unnamed array is negative
In file included from include/linux/nfs_fs.h:59:0,
from init/do_mounts.c:20:
include/linux/mempool.h: In function 'mempool_create_kmalloc_pool':
include/linux/mempool.h:58:10: warning: cast to pointer from integer of
different size

This is both in 2.6.38.6 and 2.6.39, but is not in 2.6.38.4 when compiling for
my C8000.

pioneer src # hppa64-unknown-linux-gnu-gcc --version
hppa64-unknown-linux-gnu-gcc (Gentoo 4.5.2 p1.1) 4.5.2

Greetings,

Eike


Attachments:
signature.asc (198.00 B)
This is a digitally signed message part.

2011-05-22 14:14:20

by Cong Wang

[permalink] [raw]
Subject: Re: PA-RISC: compile error in include/net/dst.h

(Cc netdev as well)

On Sun, 22 May 2011 10:15:19 +0200, Rolf Eike Beer wrote:

> from include/net/ipv6.h:16,
> from include/linux/sunrpc/clnt.h:25,
> from include/linux/nfs_fs.h:50,
> from init/do_mounts.c:20:
> include/net/dst.h: In function 'dst_hold': include/net/dst.h:238:2:
> error: size of unnamed array is negative In file included from
> include/linux/nfs_fs.h:59:0,
> from init/do_mounts.c:20:


Seems someone touched struct dst_entry...

> include/linux/mempool.h: In function 'mempool_create_kmalloc_pool':
> include/linux/mempool.h:58:10: warning: cast to pointer from integer of
> different size
>
> This is both in 2.6.38.6 and 2.6.39, but is not in 2.6.38.4 when
> compiling for my C8000.
>
> pioneer src # hppa64-unknown-linux-gnu-gcc --version
> hppa64-unknown-linux-gnu-gcc (Gentoo 4.5.2 p1.1) 4.5.2
>
> Greetings,
>
> Eike

2011-05-22 14:31:43

by Greg KH

[permalink] [raw]
Subject: Re: [stable] PA-RISC: compile error in include/net/dst.h

On Sun, May 22, 2011 at 10:15:19AM +0200, Rolf Eike Beer wrote:
> from include/net/ipv6.h:16,
> from include/linux/sunrpc/clnt.h:25,
> from include/linux/nfs_fs.h:50,
> from init/do_mounts.c:20:
> include/net/dst.h: In function 'dst_hold':
> include/net/dst.h:238:2: error: size of unnamed array is negative
> In file included from include/linux/nfs_fs.h:59:0,
> from init/do_mounts.c:20:
> include/linux/mempool.h: In function 'mempool_create_kmalloc_pool':
> include/linux/mempool.h:58:10: warning: cast to pointer from integer of
> different size
>
> This is both in 2.6.38.6 and 2.6.39, but is not in 2.6.38.4 when compiling for
> my C8000.

Could you bisect it down to the patch that causes the problem in
2.6.38.6?

thanks,

greg k-h

2011-05-22 22:29:35

by Rolf Eike Beer

[permalink] [raw]
Subject: Re: [stable] PA-RISC: compile error in include/net/dst.h

Am Sonntag, 22. Mai 2011, 07:32:22 schrieb Greg KH:
> On Sun, May 22, 2011 at 10:15:19AM +0200, Rolf Eike Beer wrote:
> > from include/net/ipv6.h:16,
> > from include/linux/sunrpc/clnt.h:25,
> > from include/linux/nfs_fs.h:50,
> >
> > from init/do_mounts.c:20:
> > include/net/dst.h: In function 'dst_hold':
> > include/net/dst.h:238:2: error: size of unnamed array is negative
> > In file included from include/linux/nfs_fs.h:59:0,
> >
> > from init/do_mounts.c:20:
> > include/linux/mempool.h: In function 'mempool_create_kmalloc_pool':
> > include/linux/mempool.h:58:10: warning: cast to pointer from integer of
> > different size
> >
> > This is both in 2.6.38.6 and 2.6.39, but is not in 2.6.38.4 when
> > compiling for my C8000.
>
> Could you bisect it down to the patch that causes the problem in
> 2.6.38.6?

I will try if I find time in the next days. Until now I can only confirm that
2.6.38.5 builds fine.

Eike


Attachments:
signature.asc (198.00 B)
This is a digitally signed message part.

2011-05-24 18:41:43

by Rolf Eike Beer

[permalink] [raw]
Subject: Re: [stable] PA-RISC: compile error in include/net/dst.h

I wrote:
> Am Sonntag, 22. Mai 2011, 07:32:22 schrieb Greg KH:
> > On Sun, May 22, 2011 at 10:15:19AM +0200, Rolf Eike Beer wrote:
> > > from include/net/ipv6.h:16,
> > > from
> > > include/linux/sunrpc/clnt.h:25,
> > > from include/linux/nfs_fs.h:50,
> > >
> > > from init/do_mounts.c:20:
> > > include/net/dst.h: In function 'dst_hold':
> > > include/net/dst.h:238:2: error: size of unnamed array is negative
> > > In file included from include/linux/nfs_fs.h:59:0,
> > >
> > > from init/do_mounts.c:20:
> > > include/linux/mempool.h: In function 'mempool_create_kmalloc_pool':
> > > include/linux/mempool.h:58:10: warning: cast to pointer from integer
> > > of
> > > different size
> > >
> > > This is both in 2.6.38.6 and 2.6.39, but is not in 2.6.38.4 when
> > > compiling for my C8000.
> >
> > Could you bisect it down to the patch that causes the problem in
> > 2.6.38.6?
>
> I will try if I find time in the next days. Until now I can only confirm
> that 2.6.38.5 builds fine.

As 2.6.38.6 does if I use the correct .config. So it is an older issue which is
not related to recent changes but likely some general HPPA breakage. We'll
discuss the rest on linux-parisc.

Eike


Attachments:
signature.asc (198.00 B)
This is a digitally signed message part.