Arnd Bergmann cfabb1779d net: qlge: use memmove instead of skb_copy_to_linear_data
gcc-8 points out that the skb_copy_to_linear_data() argument points to
the skb itself, which makes it run into a problem with overlapping
memcpy arguments:

In file included from include/linux/ip.h:20,
                 from drivers/net/ethernet/qlogic/qlge/qlge_main.c:26:
drivers/net/ethernet/qlogic/qlge/qlge_main.c: In function 'ql_realign_skb':
include/linux/skbuff.h:3378:2: error: 'memcpy' source argument is the same as destination [-Werror=restrict]
  memcpy(skb->data, from, len);

It's unclear to me what the best solution is, maybe it ought to use a
different helper that adjusts the skb data in a safe way. Simply using
memmove() here seems like the easiest workaround.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-02-02 19:44:34 -05:00
..
2018-01-31 11:52:20 -08:00
2017-11-14 16:54:12 -08:00
2018-01-31 11:52:20 -08:00
2017-11-16 09:10:59 -08:00
2018-01-31 12:54:05 -08:00
2017-11-17 20:16:20 -08:00
2018-01-30 13:57:43 -08:00
2017-11-13 01:34:14 +01:00
2018-01-30 13:57:43 -08:00
2018-01-31 12:22:41 -08:00
2018-01-29 11:35:24 -08:00
2018-01-31 11:32:27 -08:00
2018-01-09 14:19:41 +01:00
2017-11-16 09:10:59 -08:00
2017-12-16 02:59:45 +01:00
2017-11-22 21:09:18 -10:00
2017-11-17 20:14:10 -08:00
2017-11-16 16:05:01 -08:00
2017-11-14 16:54:12 -08:00
2017-11-27 16:19:54 -05:00
2018-01-29 16:37:15 -08:00
2017-12-14 21:01:40 +02:00
2017-11-16 09:10:59 -08:00
2018-01-31 11:32:27 -08:00