[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <173182119158.650820.5112435274770871325.b4-ty@kernel.org>
Date: Sat, 16 Nov 2024 21:26:33 -0800
From: Kees Cook <kees@...nel.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>,
Philipp Reisner <philipp.reisner@...bit.com>
Cc: Kees Cook <kees@...nel.org>,
Luc Van Oostenryck <luc.vanoostenryck@...il.com>,
linux-sparse@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] compiler.h: Fix undefined BUILD_BUG_ON_ZERO()
On Fri, 15 Nov 2024 21:46:02 +0100, Philipp Reisner wrote:
> <linux/compiler.h> defines __must_be_array() and __must_be_cstr() and
> both expand to BUILD_BUG_ON_ZERO(), but <linux/build_bug.h> defines
> BUILD_BUG_ON_ZERO(). Including <linux/build_bug.h> in
> <linux/compiler.h> would create a cyclic dependency as
> <linux/build_bug.h> already includes <linux/compiler.h>.
>
> Fix that by defining __BUILD_BUG_ON_ZERO_MSG() in <linux/compiler.h>
> and using that for __must_be_array() and __must_be_cstr().
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] compiler.h: Fix undefined BUILD_BUG_ON_ZERO()
https://git.kernel.org/kees/c/d7a516c6eeae
Take care,
--
Kees Cook
Powered by blists - more mailing lists