diff options
| author | Masahiro Yamada <masahiroy@kernel.org> | 2022-11-13 20:08:02 +0900 | 
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2022-11-30 16:13:18 -0800 | 
| commit | de985c109096b236d43e98da0c65376bf3bc24fb (patch) | |
| tree | 689ab176fb51ac6d619b53ac3b9a9d8c377b17c4 /include/linux/overflow.h | |
| parent | e92a216d16bde65d21a3227e0fb2aa0794576525 (diff) | |
linux/init.h: include <linux/build_bug.h> and <linux/stringify.h>
With CONFIG_HAVE_ARCH_PREL32_RELOCATIONS=y, the following code fails to
build:
  ---------------->8----------------
  #include <linux/init.h>
  int foo(void) { return 0; }
  core_initcall(foo);
  ---------------->8----------------
Include <linux/build_bug.h> for static_assert() and <linux/stringify.h>
for __stringify().
Link: https://lkml.kernel.org/r/20221113110802.3760705-1-masahiroy@kernel.org
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Cc: Jiangshan Yi <yijiangshan@kylinos.cn>
Cc: Kees Cook <keescook@chromium.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Randy Dunlap <rdunlap@infradead.org> # build-tested
Cc: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions
