kernel_optimize_test/tools
Shuah Khan b4f5c9454d selftests: firmware: Fix ignored return val of asprintf() warn
[ Upstream commit fe968ca2cac91888310b143a483123c84906e3fc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-18 13:40:20 +02:00
..
accounting
arch
bootconfig tools/bootconfig: Fix error return code in apply_xbc() 2021-06-16 12:01:45 +02:00
bpf bpftool: Check malloc return value in mount_bpffs_for_pin 2021-07-28 14:35:37 +02:00
build
cgroup
debugging
edid
firewire
firmware
gpio
hv
iio
include bpf: Fix a typo of reuseport map in bpf.h. 2021-09-15 09:50:31 +02:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf: Fix reuse of pinned map on older kernel 2021-09-18 13:40:17 +02:00
memory-model
objtool
pci
pcmcia
perf perf annotate: Fix jump parsing for C++ code. 2021-09-03 10:09:29 +02:00
power tweewide: Fix most Shebang lines 2021-05-22 11:40:55 +02:00
scripts tools: Allow proper CC/CXX/... override with LLVM=1 in Makefile.include 2021-07-31 08:16:10 +02:00
spi
testing selftests: firmware: Fix ignored return val of asprintf() warn 2021-09-18 13:40:20 +02:00
thermal/tmon tools/thermal/tmon: Add cross compiling support 2021-09-18 13:40:07 +02:00
time
usb
virtio tools/virtio: fix build 2021-09-03 10:09:27 +02:00
vm
wmi
Makefile