]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: net: tfo: Fix build warning
authorGuenter Roeck <linux@roeck-us.net>
Fri, 5 Dec 2025 17:10:07 +0000 (09:10 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 Dec 2025 09:11:12 +0000 (01:11 -0800)
commit91dc09a609d9443e6b34bdb355a18d579a95e132
treef256628ee60a9f1eea61659361edf259fd25853a
parent59546e874403c1dd0cbc42df06fdf8c113f72022
selftests: net: tfo: Fix build warning

Fix

tfo.c: In function ‘run_server’:
tfo.c:84:9: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’

by evaluating the return value from read() and displaying an error message
if it reports an error.

Fixes: c65b5bb2329e3 ("selftests: net: add passive TFO test binary")
Cc: David Wei <dw@davidwei.uk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://patch.msgid.link/20251205171010.515236-14-linux@roeck-us.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tfo.c