summaryrefslogtreecommitdiff
path: root/include/linux/init.h
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2021-06-07 11:02:30 +0200
committerBorislav Petkov <bp@suse.de>2021-06-07 11:02:30 +0200
commit0a5f38c81e500976781908e172b4e51ee427b4a9 (patch)
treefa2dc3fa36d8c837be12db611356581bcbe4289d /include/linux/init.h
parent7ee0e638a526b2d1f09c714f86d82dfd7628f322 (diff)
parent614124bea77e452aa6df7a8714e8bc820b489922 (diff)
Merge tag 'v5.13-rc5' into x86/cleanups
Pick up dependent changes in order to base further cleanups ontop. Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'include/linux/init.h')
-rw-r--r--include/linux/init.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/init.h b/include/linux/init.h
index 045ad1650ed1..d82b4b2e1d25 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -242,7 +242,8 @@ extern bool initcall_debug;
asm(".section \"" __sec "\", \"a\" \n" \
__stringify(__name) ": \n" \
".long " __stringify(__stub) " - . \n" \
- ".previous \n");
+ ".previous \n"); \
+ static_assert(__same_type(initcall_t, &fn));
#else
#define ____define_initcall(fn, __unused, __name, __sec) \
static initcall_t __name __used \