]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftest: af_unix: Silence -Wflex-array-member-not-at-end warning for scm_inq.c.
authorKuniyuki Iwashima <kuniyu@google.com>
Mon, 11 Aug 2025 21:53:05 +0000 (21:53 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Aug 2025 01:01:53 +0000 (18:01 -0700)
commit942224e6baca0d1bdd1801e935f3544f2df37baf
treec2d0db41409cf0a6c0b31ec37be61268aff51564
parentb1987f1e05b7dd2e08b51967cc187dbe8092cbd9
selftest: af_unix: Silence -Wflex-array-member-not-at-end warning for scm_inq.c.

scm_inq.c has no problem in functionality, but when compiled with
-Wflex-array-member-not-at-end, it shows this warning:

scm_inq.c:15:24: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
   15 |         struct cmsghdr cmsghdr;
      |                        ^~~~~~~

Let's silence it.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250811215432.3379570-3-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/af_unix/scm_inq.c