* Build breakage on powerpc with 2.6.24-rc6-mm1
@ 2007-12-23 22:41 Balbir Singh
2007-12-24 2:43 ` Stephen Rothwell
0 siblings, 1 reply; 4+ messages in thread
From: Balbir Singh @ 2007-12-23 22:41 UTC (permalink / raw)
To: linuxppc-dev, akpm, gregkh; +Cc: linux-kernel
Hi,
I see the following error with the iseries_veth driver in 2.6.24-rc6-mm1
drivers/net/iseries_veth.c: In function ‘veth_init_connection’:
drivers/net/iseries_veth.c:818: warning: unused variable ‘rc’
drivers/net/iseries_veth.c: In function ‘veth_probe_one’:
drivers/net/iseries_veth.c:1086: error: ‘veth_port_ktypeq’ undeclared
(first use in this function)
drivers/net/iseries_veth.c:1086: error: (Each undeclared identifier is
reported only once
drivers/net/iseries_veth.c:1086: error: for each function it appears
in.)
make[2]: *** [drivers/net/iseries_veth.o] Error 1
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
Here's a patch, compile tested to fix the compilation problem
Remove unused variable rc and fix a typo, veth_port_type was called
veth_port_typeq
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
---
drivers/net/iseries_veth.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN drivers/net/iseries_veth.c~fix-iseries-veth-driver drivers/net/iseries_veth.c
--- linux-2.6.24-rc6/drivers/net/iseries_veth.c~fix-iseries-veth-driver 2007-12-24 03:59:35.000000000 +0530
+++ linux-2.6.24-rc6-balbir/drivers/net/iseries_veth.c 2007-12-24 04:02:31.000000000 +0530
@@ -815,7 +815,7 @@ static int veth_init_connection(u8 rlp)
{
struct veth_lpar_connection *cnx;
struct veth_msg *msgs;
- int i, rc;
+ int i;
if ( (rlp == this_lp)
|| ! HvLpConfig_doLpsCommunicateOnVirtualLan(this_lp, rlp) )
@@ -1083,7 +1083,7 @@ static struct net_device * __init veth_p
return NULL;
}
- kobject_init(&port->kobject, &veth_port_ktypeq);
+ kobject_init(&port->kobject, &veth_port_ktype);
if (0 != kobject_add(&port->kobject, &dev->dev.kobj, "veth_port"))
veth_error("Failed adding port for %s to sysfs.\n", dev->name);
_
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Build breakage on powerpc with 2.6.24-rc6-mm1
2007-12-23 22:41 Build breakage on powerpc with 2.6.24-rc6-mm1 Balbir Singh
@ 2007-12-24 2:43 ` Stephen Rothwell
2007-12-24 4:49 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2007-12-24 2:43 UTC (permalink / raw)
To: balbir; +Cc: linuxppc-dev, akpm, gregkh, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]
Hi Balbir,
Thanks for the report.
On Mon, 24 Dec 2007 04:11:58 +0530 Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
>
> I see the following error with the iseries_veth driver in 2.6.24-rc6-mm1
>
> drivers/net/iseries_veth.c: In function ‘veth_init_connection’:
> drivers/net/iseries_veth.c:818: warning: unused variable ‘rc’
> drivers/net/iseries_veth.c: In function ‘veth_probe_one’:
> drivers/net/iseries_veth.c:1086: error: ‘veth_port_ktypeq’ undeclared
> (first use in this function)
> drivers/net/iseries_veth.c:1086: error: (Each undeclared identifier is
> reported only once
> drivers/net/iseries_veth.c:1086: error: for each function it appears
> in.)
> make[2]: *** [drivers/net/iseries_veth.o] Error 1
> make[1]: *** [drivers/net] Error 2
> make: *** [drivers] Error 2
Yeah, that would be
gregkh-driver-kobject-convert-drivers-net-iseries_vethc-to-use-kobject_init-add_ng.
Hi Greg, do you even build with your patches applied?
> Here's a patch, compile tested to fix the compilation problem
Hopefully Greg will fix his original patch before it reaches Linus.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Build breakage on powerpc with 2.6.24-rc6-mm1
2007-12-24 2:43 ` Stephen Rothwell
@ 2007-12-24 4:49 ` Greg KH
2007-12-24 19:27 ` Olof Johansson
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2007-12-24 4:49 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linuxppc-dev, akpm, linux-kernel, balbir
On Mon, Dec 24, 2007 at 01:43:53PM +1100, Stephen Rothwell wrote:
> Hi Balbir,
>
> Thanks for the report.
>
> On Mon, 24 Dec 2007 04:11:58 +0530 Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
> >
> > I see the following error with the iseries_veth driver in 2.6.24-rc6-mm1
> >
> > drivers/net/iseries_veth.c: In function ‘veth_init_connection’:
> > drivers/net/iseries_veth.c:818: warning: unused variable ‘rc’
> > drivers/net/iseries_veth.c: In function ‘veth_probe_one’:
> > drivers/net/iseries_veth.c:1086: error: ‘veth_port_ktypeq’ undeclared
> > (first use in this function)
> > drivers/net/iseries_veth.c:1086: error: (Each undeclared identifier is
> > reported only once
> > drivers/net/iseries_veth.c:1086: error: for each function it appears
> > in.)
> > make[2]: *** [drivers/net/iseries_veth.o] Error 1
> > make[1]: *** [drivers/net] Error 2
> > make: *** [drivers] Error 2
Thanks for the report, sorry for the typos, I'll fix up my patch.
> Yeah, that would be
> gregkh-driver-kobject-convert-drivers-net-iseries_vethc-to-use-kobject_init-add_ng.
>
> Hi Greg, do you even build with your patches applied?
For the power architecture, no, I do not. I used to, but my cross-build
box died and I haven't taken the time to set it all up again. For i386
and x86-64 I do build everything, and as that's 99% of the users, it's
usually fine :)
I did start to try to get a s390 cross-build working, but ran out of
time a week or so ago...
> > Here's a patch, compile tested to fix the compilation problem
>
> Hopefully Greg will fix his original patch before it reaches Linus.
I will do that.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Build breakage on powerpc with 2.6.24-rc6-mm1
2007-12-24 4:49 ` Greg KH
@ 2007-12-24 19:27 ` Olof Johansson
0 siblings, 0 replies; 4+ messages in thread
From: Olof Johansson @ 2007-12-24 19:27 UTC (permalink / raw)
To: Greg KH; +Cc: Stephen Rothwell, akpm, balbir, linux-kernel, linuxppc-dev
On Sun, Dec 23, 2007 at 08:49:12PM -0800, Greg KH wrote:
> > Hi Greg, do you even build with your patches applied?
>
> For the power architecture, no, I do not. I used to, but my cross-build
> box died and I haven't taken the time to set it all up again.
Crosstool makes it really easy. It's demo-powerpc-970.sh will build a
toolchain that can build both 32- and 64-bit powerpc kernels. It's got
a demo-s390.sh as well, but I haven't tried that one myself.
-Olof
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-24 19:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-23 22:41 Build breakage on powerpc with 2.6.24-rc6-mm1 Balbir Singh
2007-12-24 2:43 ` Stephen Rothwell
2007-12-24 4:49 ` Greg KH
2007-12-24 19:27 ` Olof Johansson
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).