From 339d30b6bc341a0a269122e8c3a091d48487b6f6 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 10 Apr 2019 14:59:48 +0000 Subject: [PATCH] scripts/kernel-functions: Fix up ____ilog2_NaN() prototype git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8178 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/kernel-functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/kernel-functions b/scripts/kernel-functions index 016389820..e619739f8 100644 --- a/scripts/kernel-functions +++ b/scripts/kernel-functions @@ -411,6 +411,11 @@ index 141da26fda4b..343ec388ae2e 100644 EOF ;; esac + + # Use sed to patch the ____ilog2_NaN() prototype. + sed -i 's/__attribute__((const, noreturn))/__attribute__((noreturn))/' \ + include/linux/log2.h tools/include/linux/log2.h 2>/dev/null + # After patch-v4.14.1[12] has been applied, the execute bit has to be # set for sync-check.sh since patch can't do that. for f in "tools/objtool/sync-check.sh"; do