Re: [PATCH v2] stddef: make __struct_group() UAPI C++-friendly

2024-12-19 Thread Gustavo A. R. Silva
On 19/12/24 07:57, Alexander Lobakin wrote: For the most part of the C++ history, it couldn't have type declarations inside anonymous unions for different reasons. At the same time, __struct_group() relies on the latters, so when the @TAG argument is not empty, C++ code doesn't want to build (

[PATCH v2] stddef: make __struct_group() UAPI C++-friendly

2024-12-19 Thread Alexander Lobakin
For the most part of the C++ history, it couldn't have type declarations inside anonymous unions for different reasons. At the same time, __struct_group() relies on the latters, so when the @TAG argument is not empty, C++ code doesn't want to build (even under `extern "C"`): ../linux/include/uapi/

Re: [PATCH v2] net: core: Convert inet_addr_is_any() to sockaddr_storage

2024-12-19 Thread Paolo Abeni
On 12/17/24 21:34, Kees Cook wrote: > All the callers of inet_addr_is_any() have a sockaddr_storage-backed > sockaddr. Avoid casts and switch prototype to the actual object being > used. > > Reviewed-by: Christoph Hellwig > Reviewed-by: Simon Horman > Signed-off-by: Kees Cook It looks like the