summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorBrian Vazquez <brianvv@google.com>2021-02-04 19:18:38 +0100
committerJakub Kicinski <kuba@kernel.org>2021-02-05 03:06:26 +0100
commit0053859496baa17c7675526936677c9213bf5a0d (patch)
tree76a83470560642f832c69a81caab936caac78a30 /net/ipv4
parentnetlink: add tracepoint at NL_SET_ERR_MSG (diff)
downloadlinux-0053859496baa17c7675526936677c9213bf5a0d.tar.xz
linux-0053859496baa17c7675526936677c9213bf5a0d.zip
net: add EXPORT_INDIRECT_CALLABLE wrapper
When a static function is annotated with INDIRECT_CALLABLE_SCOPE and CONFIG_RETPOLINE is set, the static keyword is removed. Sometimes the function needs to be exported but EXPORT_SYMBOL can't be used because if CONFIG_RETPOLINE is not set, we will attempt to export a static symbol. This patch introduces a new indirect call wrapper: EXPORT_INDIRECT_CALLABLE. This basically does EXPORT_SYMBOL when CONFIG_RETPOLINE is set, but does nothing when it's not. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Brian Vazquez <brianvv@google.com> Link: https://lore.kernel.org/r/20210204181839.558951-1-brianvv@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions