sfc: Fix memcpy() with const destination compiler warning.
authorDavid S. Miller <davem@davemloft.net>
Fri, 17 Apr 2015 19:15:40 +0000 (15:15 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Apr 2015 19:15:40 +0000 (15:15 -0400)
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>
drivers/net/ethernet/sfc/selftest.c

index 10b6173d557dbbc31a5aefb36f06bb15f13442de..b605dfd5c7bc7146600908b1c7a40f79b28dfd53 100644 (file)
@@ -46,7 +46,7 @@ struct efx_loopback_payload {
        struct iphdr ip;
        struct udphdr udp;
        __be16 iteration;
-       const char msg[64];
+       char msg[64];
 } __packed;
 
 /* Loopback test source MAC address */