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@zeniv.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
On Thu, Dec 14, 2023 at 09:06:12PM +0000, tanzirh@google.com wrote: > 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@zeniv.linux.org.uk> You forgot your SoB, but... ... > #ifdef CONFIG_CPU_BIG_ENDIAN > # include <asm-generic/word-at-a-time.h> > #else > +#include <linux/kernel.h> I highly discourage from doing that. Instead, split what is needed to the separate (new) header and include that one. > /* > * Little-endian version cribbed from x86. > */ -- With Best Regards, Andy Shevchenko
On Thu, Dec 14, 2023 at 09:06:12PM +0000, tanzirh@google.com wrote: > 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@zeniv.linux.org.uk> This patch is missing your Signed-off-by: tag. Also, please double-check your email configs: your full name is missing from your emails (it's just "tanzirh@google.com"): https://lore.kernel.org/lkml/20231214-libstringheader-v2-1-0f195dcff204@google.com/ But otherwise, the change itself looks fine. :) -- Kees Cook
On Thu, Dec 14, 2023 at 1:37 PM Kees Cook <keescook@chromium.org> wrote: > > Also, please double-check your email configs: your full name is missing > from your emails (it's just "tanzirh@google.com"): > https://lore.kernel.org/lkml/20231214-libstringheader-v2-1-0f195dcff204@google.com/ This is the issue related to use of our internal mailer with b4. Konstantin fixed this in b4 a while ago, but I suspect the version of b4 we're getting from apt still does not contain the fix. Or perhaps we need to switch to pyenv and pypi to install a newer version of b4. Tanzir (sits right next to me) and reports his version of b4 is: 0.12.3 On pypi, looks like there's a 0.12.4 https://pypi.org/project/b4/#history Looking at those release dates, I'm pretty sure Konstantine fixed this particular issue in the 0.12.4 release. (I made this mistake too recently, with my latest commit you picked up) Debian stable says it has 0.12.0 https://packages.debian.org/stable/b4 Debian unstable says it has 0.12.4 https://packages.debian.org/unstable/b4 IDK where 0.12.3 is coming from. Perhaps our internal mirrors are lagging behind. -- Thanks, ~Nick Desaulniers
© 2016 - 2025 Red Hat, Inc.