[PATCH] (8/22) lvalues abuse in lance
result of comma operator is not an lvalue Signed-off-by: Al Viro <[EMAIL PROTECTED]> diff -urN RC13-rc7-mac8390/drivers/net/atarilance.c RC13-rc7-lance/drivers/net/atarilance.c --- RC13-rc7-mac8390/drivers/net/atarilance.c 2005-06-17 15:48:29.0 -0400 +++ RC13-rc7-lance/drivers/net/atarilance.c 2005-08-25 00:54:10.0 -0400 @@ -235,7 +235,7 @@ #defineMEM lp->mem #defineDREGIO->data #defineAREGIO->addr -#defineREGA(a) ( AREG = (a), DREG ) +#defineREGA(a) (*( AREG = (a), )) /* Definitions for packet buffer access: */ #define PKT_BUF_SZ 1544 diff -urN RC13-rc7-mac8390/drivers/net/sun3lance.c RC13-rc7-lance/drivers/net/sun3lance.c --- RC13-rc7-mac8390/drivers/net/sun3lance.c2005-06-17 15:48:29.0 -0400 +++ RC13-rc7-lance/drivers/net/sun3lance.c 2005-08-25 00:54:10.0 -0400 @@ -162,7 +162,7 @@ #defineMEM lp->mem #defineDREGlp->iobase[0] #defineAREGlp->iobase[1] -#defineREGA(a) ( AREG = (a), DREG ) +#defineREGA(a) (*( AREG = (a), )) /* Definitions for the Lance */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] (8/22) lvalues abuse in lance
result of comma operator is not an lvalue Signed-off-by: Al Viro [EMAIL PROTECTED] diff -urN RC13-rc7-mac8390/drivers/net/atarilance.c RC13-rc7-lance/drivers/net/atarilance.c --- RC13-rc7-mac8390/drivers/net/atarilance.c 2005-06-17 15:48:29.0 -0400 +++ RC13-rc7-lance/drivers/net/atarilance.c 2005-08-25 00:54:10.0 -0400 @@ -235,7 +235,7 @@ #defineMEM lp-mem #defineDREGIO-data #defineAREGIO-addr -#defineREGA(a) ( AREG = (a), DREG ) +#defineREGA(a) (*( AREG = (a), DREG )) /* Definitions for packet buffer access: */ #define PKT_BUF_SZ 1544 diff -urN RC13-rc7-mac8390/drivers/net/sun3lance.c RC13-rc7-lance/drivers/net/sun3lance.c --- RC13-rc7-mac8390/drivers/net/sun3lance.c2005-06-17 15:48:29.0 -0400 +++ RC13-rc7-lance/drivers/net/sun3lance.c 2005-08-25 00:54:10.0 -0400 @@ -162,7 +162,7 @@ #defineMEM lp-mem #defineDREGlp-iobase[0] #defineAREGlp-iobase[1] -#defineREGA(a) ( AREG = (a), DREG ) +#defineREGA(a) (*( AREG = (a), DREG )) /* Definitions for the Lance */ - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/