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)
commit0fde7ad71ee371ede73b3f326e58f9e8d102feb6
treeaa2ba307fb12f24faf327717a3475de36df033f3
parent7485af89a6fd48f7e6fab2505d2364d1817723e6
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