]> git.ipfire.org Git - thirdparty/linux.git/commit
selftest: af_unix: Support compilers without flex-array-member-not-at-end support
authorGuenter Roeck <linux@roeck-us.net>
Fri, 5 Dec 2025 17:10:00 +0000 (09:10 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 Dec 2025 09:08:51 +0000 (01:08 -0800)
commit06f7cae92fe346fa49a8a9b161124b26cc5c3ed1
treebea680687d90c304cc0202ff09539de9b52c484b
parent9580f6d47dd6156c6d16e988d28faa74e5a0b8ba
selftest: af_unix: Support compilers without flex-array-member-not-at-end support

Fix:

gcc: error: unrecognized command-line option ‘-Wflex-array-member-not-at-end’

by making the compiler option dependent on its support.

Fixes: 1838731f1072c ("selftest: af_unix: Add -Wall and -Wflex-array-member-not-at-end to CFLAGS.")
Cc: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://patch.msgid.link/20251205171010.515236-7-linux@roeck-us.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/af_unix/Makefile