[PATCH] misc: kgdbts: Fix restrict error

2018-09-10 Thread Laura Abbott
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

[PATCH] misc: kgdbts: Fix restrict error

2018-09-10 Thread Laura Abbott
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