diff options
| author | Laura Abbott <[email protected]> | 2018-09-11 10:44:03 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-25 20:21:02 +0200 |
| commit | fa0218ef733e6f247a1a3986e3eb12460064ac77 (patch) | |
| tree | 1a9163c405afa30493594a01777628af53b86edd /tools/perf/scripts/python/sctop.py | |
| parent | 85dc2c65e6c975baaf36ea30f2ccc0a36a8c8add (diff) | |
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 <[email protected]>
Acked-by: Daniel Thompson <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions