Thread (3 messages) 3 messages, 3 authors, 2025-10-27

Re: [PATCH v2] selftest: net: fix variable sized type issue not at the end of a struct

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-10-27 15:19:38
Also in: linux-kernel-mentees, linux-kselftest, lkml

On Mon, 27 Oct 2025 11:01:56 +0530 Ankit Khushwaha wrote:
-		struct cmsghdr cm;
 		char control[512];
+		struct cmsghdr cm;
This is no longer in the order in which it will appear in the msg.
If the struct placement is not important just use a raw char buffer
for the whole thing.

Before you repost please read at least the TLDR section of:
https://www.kernel.org/doc/html/next/process/maintainer-netdev.html
-- 
pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help