OpenCloudOS-Kernel/tools/testing/selftests/firmware
Shuah Khan fe968ca2ca selftests: firmware: Fix ignored return val of asprintf() warn
Fix the following ingonred return val of asprintf() warn during
build:

cc -Wall -O2    fw_namespace.c  -o ../tools/testing/selftests/firmware/fw_namespace
fw_namespace.c: In function ‘main’:
fw_namespace.c:132:2: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  132 |  asprintf(&fw_path, "/lib/firmware/%s", fw_name);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20210708031827.51293-1-skhan@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-21 16:11:42 +02:00
..
.gitignore selftests: Add missing gitignore entries 2020-09-23 10:19:25 -06:00
Makefile firmware_loader: load files from the mount namespace of init 2020-02-10 15:39:28 -08:00
config Revert "selftests: firmware: add CONFIG_FW_LOADER_USER_HELPER_FALLBACK to config" 2019-02-08 13:00:43 +01:00
fw_fallback.sh selftests: firmware: return Kselftest Skip code for skipped tests 2018-05-30 15:21:52 -06:00
fw_filesystem.sh test_firmware: Test partial read support 2020-10-05 13:37:04 +02:00
fw_lib.sh selftests: firmware: Fix it to do root uid check and skip 2019-12-23 10:52:40 -07:00
fw_namespace.c selftests: firmware: Fix ignored return val of asprintf() warn 2021-07-21 16:11:42 +02:00
fw_run_tests.sh firmware_loader: load files from the mount namespace of init 2020-02-10 15:39:28 -08:00
settings selftest/firmware: Add selftest timeout in settings 2020-07-25 12:05:20 +02:00