sfc: Fix memcpy() with const destination compiler warning.
drivers/net/ethernet/sfc/selftest.c: In function ‘efx_iterate_state’: drivers/net/ethernet/sfc/selftest.c:388:9: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers] This is because the msg[] member of struct efx_loopback_payload is marked as 'const'. Remove that. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -46,7 +46,7 @@ struct efx_loopback_payload {
|
|||||||
struct iphdr ip;
|
struct iphdr ip;
|
||||||
struct udphdr udp;
|
struct udphdr udp;
|
||||||
__be16 iteration;
|
__be16 iteration;
|
||||||
const char msg[64];
|
char msg[64];
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
/* Loopback test source MAC address */
|
/* Loopback test source MAC address */
|
||||||
|
Reference in New Issue
Block a user