Re: [PATCH v2] selftest: net: fix variable sized type issue not at the end of a struct
From: Jakub Kicinski
Date: Mon Oct 27 2025 - 11:28:05 EST
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