android_kernel_samsung_a7y1.../drivers/misc
Laura Abbott 091d876f1e misc: kgdbts: Fix restrict error
[ Upstream commit fa0218ef733e6f247a1a3986e3eb12460064ac77 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 12:29:25 +02:00
..
altera-stapl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
c2port A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cb710 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cxl A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
echo A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
eeprom A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
genwqe genwqe: Prevent an integer overflow in the ioctl 2020-04-06 18:45:18 +02:00
gnss_if A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ibmasm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lis3lv02d A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mcu_ipc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mei A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mic A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
modem_if A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
modem_v1 A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
samsung A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sgi-gru A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sgi-xp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ti-st A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tui A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tzdev A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
usim_det A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmw_vmci VMCI: Release resource if the work is already queued 2020-04-06 21:33:52 +02:00
ad525x_dpot-i2c.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ad525x_dpot-spi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ad525x_dpot.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ad525x_dpot.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
apds990x.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
apds9802als.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
arm-charlcd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atmel_tclib.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atmel-ssc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bh1770glc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bh1780gli.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bmp085-i2c.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bmp085-spi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bmp085.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bmp085.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cs5535-mfgpt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dmverity_query.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ds1682.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dummy-irq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
enclosure.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
exynos_ima.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fsa9480.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hmc6352.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hpilo.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hpilo.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ics932s401.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ioc4.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
isl29003.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
isl29020.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kgdbts.c misc: kgdbts: Fix restrict error 2020-04-07 12:29:25 +02:00
lattice-ecp3-config.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lkdtm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
memory_state_time.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pch_phub.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phantom.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pti.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
qcom-coincell.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
spear13xx_pcie_gadget.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sram.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ti_dac7512.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tifm_7xx1.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tifm_core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tima_debug_log.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tima_debug_test.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tsl2550.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tzic64.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uid_cputime.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uid_sys_stats.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vexpress-syscfg.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmw_balloon.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30