[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231214-libstringheader-v2-1-0f195dcff204@google.com>
Date: Thu, 14 Dec 2023 21:06:12 +0000
From: tanzirh@...gle.com
To: Kees Cook <keescook@...omium.org>
Cc: Andy Shevchenko <andy@...nel.org>, linux-hardening@...r.kernel.org,
linux-kernel@...r.kernel.org, Nick DeSaulniers <nnn@...gle.com>,
Andrew Morton <akpm@...ux-foundation.org>, llvm@...ts.linux.dev,
Al Viro <viro@...iv.linux.org.uk>
Subject: [PATCH v2 1/2] sh: Added kernel.h to word-at-a-time
This patch includes linux/kernel.h in asm/word-at-a-time.h for the
sh architecture. WORD_AT_A_TIME_CONSTANTS depends on kernel.h.
Making this implicit dependancy explicit allows for later improvements
in the lib/string.c inclusion list.
Suggested-by: Al Viro <viro@...iv.linux.org.uk>
---
arch/sh/include/asm/word-at-a-time.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/sh/include/asm/word-at-a-time.h b/arch/sh/include/asm/word-at-a-time.h
index 4aa398455b94..f680f5f1d626 100644
--- a/arch/sh/include/asm/word-at-a-time.h
+++ b/arch/sh/include/asm/word-at-a-time.h
@@ -5,6 +5,7 @@
#ifdef CONFIG_CPU_BIG_ENDIAN
# include <asm-generic/word-at-a-time.h>
#else
+#include <linux/kernel.h>
/*
* Little-endian version cribbed from x86.
*/
--
2.43.0.472.g3155946c3a-goog
Powered by blists - more mailing lists