]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Fix build warnings with gcc 7.
authorDavid S. Miller <davem@davemloft.net>
Thu, 1 Jun 2017 16:42:46 +0000 (09:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jun 2017 16:42:46 +0000 (09:42 -0700)
commit11ae285326df4b4db1c82f6d9794a4f46a12546e
treeaa2ba307fb12f24faf327717a3475de36df033f3
parent76c60c3b4cdac54499e5c1832b85d48a3d2791ca
sparc64: Fix build warnings with gcc 7.

arch/sparc/kernel/ds.c: In function ‘register_services’:
arch/sparc/kernel/ds.c:912:3: error: ‘strcpy’: writing at least 1 byte
into a region of size 0 overflows the destination

Reported-by: Anatoly Pugachev <matorola@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ds.c