From 7d470166cd6514f4331838d775a89ebe5855bb3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= Date: Wed, 2 May 2018 14:30:17 +0200 Subject: [PATCH] Fix build with gcc 8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc 8 complains about the impossible combination of attributes noreturn and const (if it doesn't return, it can't leave the system state unchanged - so can't be const). Signed-off-by: Bernhard Rosenkränzer --- include/linux/log2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/log2.h b/include/linux/log2.h index aa1de630906..23719916515 100644 --- a/include/linux/log2.h +++ b/include/linux/log2.h @@ -15,7 +15,7 @@ /* * deal with unrepresentable constant logarithms */ -extern __attribute__((const, noreturn)) +extern __attribute__((noreturn)) int ____ilog2_NaN(void); /*