Re: [PATCH] bonding: fix sparse warnings

2006-05-10 Thread Stephen Hemminger
On Thu, 11 May 2006 00:22:03 +0100 Al Viro <[EMAIL PROTECTED]> wrote: > On Wed, May 10, 2006 at 04:14:05PM -0700, Stephen Hemminger wrote: > > Fix warning from sparse in bonding code about "incorrect type in assignment" > > *snerk* > > Only if you are building without -Wcast-to-as. It _is_ inco

Re: [PATCH] bonding: fix sparse warnings

2006-05-10 Thread Al Viro
On Wed, May 10, 2006 at 04:14:05PM -0700, Stephen Hemminger wrote: > Fix warning from sparse in bonding code about "incorrect type in assignment" *snerk* Only if you are building without -Wcast-to-as. It _is_ incorrect type in assignment. And the real fix is to expand the call, killing set_fs()

[PATCH] bonding: fix sparse warnings

2006-05-10 Thread Stephen Hemminger
Fix warning from sparse in bonding code about "incorrect type in assignment" Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- orig/drivers/net/bonding/bond_main.c2006-05-04 16:22:10.0 -0700 +++ new/drivers/net/bonding/bond_main.c 2006-05-10 16:04:38.0 -0700 @@ -6