diff options
author | Laura Abbott <labbott@redhat.com> | 2018-09-11 20:44:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-25 21:21:02 +0300 |
commit | fa0218ef733e6f247a1a3986e3eb12460064ac77 (patch) | |
tree | 1a9163c405afa30493594a01777628af53b86edd /drivers/misc/vmw_vmci/vmci_host.c | |
parent | 85dc2c65e6c975baaf36ea30f2ccc0a36a8c8add (diff) | |
download | linux-fa0218ef733e6f247a1a3986e3eb12460064ac77.tar.xz |
misc: kgdbts: Fix restrict error
kgdbts current fails when compiled with restrict:
drivers/misc/kgdbts.c: In function ‘configure_kgdbts’:
drivers/misc/kgdbts.c:1070:2: error: ‘strcpy’ source argument is the same as destination [-Werror=restrict]
strcpy(config, opt);
^~~~~~~~~~~~~~~~~~~
As the error says, config is being used in both the source and destination.
Refactor the code to avoid the extra copy and put the parsing closer to
the actual location.
Signed-off-by: Laura Abbott <labbott@redhat.com>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/vmw_vmci/vmci_host.c')
0 files changed, 0 insertions, 0 deletions