Skip to contentSkip to conversation

build_bugh-add-wrapper-for-_static_assert.patch removed from -mm tree

to-be-updated Alexey Dobriyan 1 participant 1 message Feb 9, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20190208215824.zhXpv%[email protected]

#1 lore raw

include/linux/build_bug.h

Quoted 5 lines · On Fri, Feb 08, 2019 at 01:58:24PM -0800, [email protected] wrote:
include/linux/build_bug.h renamed from include/linux/build_bug.h~build_bugh-add-wrapper-for-_static_assert +2 -0
 
+#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>