Le 01/12/2026 à 05:00, Qingfang Deng a écrit :> /proc/net/pppoe prints the network-order session ID as a native-endian
> integer. A session ID of 0x1234 therefore appears as 00003412 on > little-endian hosts and 00001234 on big-endian hosts. > > Explicitly cast the ID to u16 to document this ABI, so a static analysis > tool won't trip on it. Converting it to host byte order would change > what little-endian userspace reads.
Which tool, and what does it report? If sparse warns on the current code, please quote the warning in the commit log. Otherwise this looks like a pure cleanup. Nit: the cast does not make the byte order explicit, it documents that no conversion is done. Something like "pppoe: document the raw session ID in procfs" may be more accurate. Regards, Nicolas