* Re: [to-be-updated] build_bugh-add-wrapper-for-_static_assert.patch removed from -mm tree
[not found] <20190208215824.zhXpv%akpm@linux-foundation.org>
@ 2019-02-09 13:00 ` Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2019-02-09 13:00 UTC (permalink / raw)
To: linux-kernel
Cc: yamada.masahiro, ndesaulniers, luc.vanoostenryck, keescook, linux
On Fri, Feb 08, 2019 at 01:58:24PM -0800, akpm@linux-foundation.org wrote:
> --- a/include/linux/build_bug.h~build_bugh-add-wrapper-for-_static_assert
> +++ a/include/linux/build_bug.h
> +#define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
> +#define __static_assert(expr, msg, ...) _Static_assert(expr, "" msg "")
I suggest adding it to assert.h like userspace does:
#include <assert.h>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-02-09 13:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20190208215824.zhXpv%akpm@linux-foundation.org>
2019-02-09 13:00 ` [to-be-updated] build_bugh-add-wrapper-for-_static_assert.patch removed from -mm tree Alexey Dobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox