[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <173471453998.1198562.7846004024566721255.b4-ty@kernel.org>
Date: Fri, 20 Dec 2024 09:09:02 -0800
From: Kees Cook <kees@...nel.org>
To: Alexander Lobakin <aleksander.lobakin@...el.com>
Cc: Kees Cook <kees@...nel.org>,
Christopher Ferris <cferris@...gle.com>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Erick Archer <erick.archer@...look.com>,
Keith Packard <keithp@...thp.com>,
Dan Williams <dan.j.williams@...el.com>,
linux-hardening@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] stddef: make __struct_group() UAPI C++-friendly
On Thu, 19 Dec 2024 14:57:34 +0100, 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 (even under
> `extern "C"`):
>
> ../linux/include/uapi/linux/pkt_cls.h:25:24: error:
> 'struct tc_u32_sel::<unnamed union>::tc_u32_sel_hdr,' invalid;
> an anonymous union may only have public non-static data members
> [-fpermissive]
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] stddef: make __struct_group() UAPI C++-friendly
https://git.kernel.org/kees/c/724c6ce38bba
Take care,
--
Kees Cook
Powered by blists - more mailing lists