aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorMarco Elver <[email protected]>2021-05-21 09:26:10 +0200
committerKees Cook <[email protected]>2021-05-24 15:24:33 -0700
commit1cb61759d40716643281b8e0f8c7afebc8699249 (patch)
tree94db3431b470b79d30146ff744b4294c591876a5 /drivers/usb/cdns3/cdns3-debug.h
parentd07f6ca923ea0927a1024dfccafc5b53b61cfecc (diff)
init: verify that function is initcall_t at compile-time
In the spirit of making it hard to misuse an interface, add a compile-time assertion in the CONFIG_HAVE_ARCH_PREL32_RELOCATIONS case to verify the initcall function matches initcall_t, because the inline asm bypasses any type-checking the compiler would otherwise do. This will help developers catch incorrect API use in all configurations. A recent example of this is: https://lkml.kernel.org/r/[email protected] Signed-off-by: Marco Elver <[email protected]> Reviewed-by: Miguel Ojeda <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Tested-by: Nathan Chancellor <[email protected]> Reviewed-by: Sami Tolvanen <[email protected]> Tested-by: Paul E. McKenney <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions