Re: [PATCH] net: via-rhine: Fix compiler warning re: pointer casting on 64bit

2014-05-01 Thread Alexey Charkov
2014-05-01 13:30 GMT+04:00 David Laight : > From: Alexey Charkov [mailto:alch...@gmail.com] > ... >> This patch removes the cast altogether, and instead stores an actual >> pointer to u8 in match->data. All instances of 'revision' are also >> unified to u8 instead of an assortment of different

RE: [PATCH] net: via-rhine: Fix compiler warning re: pointer casting on 64bit

2014-05-01 Thread David Laight
From: Alexey Charkov [mailto:alch...@gmail.com] ... > This patch removes the cast altogether, and instead stores an actual > pointer to u8 in match->data. All instances of 'revision' are also > unified to u8 instead of an assortment of different integer types, > in line with the definition of

RE: [PATCH] net: via-rhine: Fix compiler warning re: pointer casting on 64bit

2014-05-01 Thread David Laight
From: Alexey Charkov [mailto:alch...@gmail.com] ... This patch removes the cast altogether, and instead stores an actual pointer to u8 in match-data. All instances of 'revision' are also unified to u8 instead of an assortment of different integer types, in line with the definition of

Re: [PATCH] net: via-rhine: Fix compiler warning re: pointer casting on 64bit

2014-05-01 Thread Alexey Charkov
2014-05-01 13:30 GMT+04:00 David Laight david.lai...@aculab.com: From: Alexey Charkov [mailto:alch...@gmail.com] ... This patch removes the cast altogether, and instead stores an actual pointer to u8 in match-data. All instances of 'revision' are also unified to u8 instead of an assortment of

[PATCH] net: via-rhine: Fix compiler warning re: pointer casting on 64bit

2014-04-30 Thread Alexey Charkov
Fixed different size cast warning: drivers/net/ethernet/via/via-rhine.c: In function ‘rhine_init_one_platform’: drivers/net/ethernet/via/via-rhine.c:1132:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] revision = (u32)match->data;

[PATCH] net: via-rhine: Fix compiler warning re: pointer casting on 64bit

2014-04-30 Thread Alexey Charkov
Fixed different size cast warning: drivers/net/ethernet/via/via-rhine.c: In function ‘rhine_init_one_platform’: drivers/net/ethernet/via/via-rhine.c:1132:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] revision = (u32)match-data;