OpenCloudOS-Kernel/drivers/net/ethernet/qlogic
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
..
netxen netxen: remove timespec usage 2017-11-30 09:26:31 -05:00
qed net: qed: use correct strncpy() size 2018-02-02 19:42:29 -05:00
qede Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2018-01-07 21:26:31 -05:00
qlcnic qlcnic: fix deadlock bug 2018-01-29 17:59:00 -05:00
qlge net: qlge: use memmove instead of skb_copy_to_linear_data 2018-02-02 19:44:34 -05:00
Kconfig qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla3xxx.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
qla3xxx.h