OSDN Git Service

sparc64: Fix build warnings with gcc 7.
authorDavid S. Miller <davem@davemloft.net>
Thu, 1 Jun 2017 16:42:46 +0000 (09:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Jun 2018 14:46:23 +0000 (16:46 +0200)
commitaad09241258b48059231c1c02a9edb51c7548cae
tree1c89a4bef4782f84aaa9d4f1c1456e72ef9f8198
parentd71f830d8cf792e51197a2291cf897372c49395a
sparc64: Fix build warnings with gcc 7.

commit 0fde7ad71ee371ede73b3f326e58f9e8d102feb6 upstream.

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>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/kernel/ds.c