diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-01-14 14:51:33 +0100 |
---|---|---|
committer | Shuah Khan <shuah@kernel.org> | 2019-01-16 23:02:57 +0100 |
commit | 508cacd7da6659ae7b7bdd0a335f675422277758 (patch) | |
tree | 8171cf2aade696312fea07ef6ab5c61a323df4cf /tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh | |
parent | selftests: seccomp: use LDLIBS instead of LDFLAGS (diff) | |
download | linux-508cacd7da6659ae7b7bdd0a335f675422277758.tar.xz linux-508cacd7da6659ae7b7bdd0a335f675422277758.zip |
selftests: gpio-mockup-chardev: Check asprintf() for error
With gcc 7.3.0:
gpio-mockup-chardev.c: In function ‘get_debugfs’:
gpio-mockup-chardev.c:62:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
asprintf(path, "%s/gpio", mnt_fs_get_target(fs));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Handle asprintf() failures to fix this.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Shuah Khan <shuah@kernel.org>
Diffstat (limited to 'tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh')
0 files changed, 0 insertions, 0 deletions