linux_dsm_epyc7002/tools/testing/selftests/gpio
Geert Uytterhoeven 508cacd7da 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>
2019-01-16 15:02:57 -07:00
..
.gitignore
config selftests: gpio: add config fragment for gpio-mockup 2017-04-21 11:25:41 -06:00
gpio-mockup-chardev.c selftests: gpio-mockup-chardev: Check asprintf() for error 2019-01-16 15:02:57 -07:00
gpio-mockup-sysfs.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gpio-mockup.sh selftests: gpio: return Kselftest Skip code for skipped tests 2018-05-30 15:21:52 -06:00
Makefile selftests: Fix test errors related to lib.mk khdr target 2018-12-17 09:17:55 -07:00