lkml.org 
[lkml]   [2020]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RESEND][PATCH v3 07/17] static_call: Add inline static call infrastructure
On Tue, Mar 24, 2020 at 02:56:10PM +0100, Peter Zijlstra wrote:
> +#define DEFINE_STATIC_CALL(name, _func) \
> + DECLARE_STATIC_CALL(name, _func); \
> + struct static_call_key STATIC_CALL_NAME(name) = { \
> + .func = _func, \
> + .next = NULL, \
> + }; \
> + __ADDRESSABLE(STATIC_CALL_NAME(name)); \
> + ARCH_DEFINE_STATIC_CALL_TRAMP(name, _func)
> +
> +#define static_call(name) STATIC_CALL_TRAMP(name)
> +
> +#define EXPORT_STATIC_CALL(name) \
> + EXPORT_SYMBOL(STATIC_CALL_NAME(name)); \
> + EXPORT_SYMBOL(STATIC_CALL_TRAMP(name))

I think we want only the _GPL versions below - not those. As you said on
IRC, jump_label/static_branch is GPL only.

> +
> +#define EXPORT_STATIC_CALL_GPL(name) \
> + EXPORT_SYMBOL_GPL(STATIC_CALL_NAME(name)); \
> + EXPORT_SYMBOL_GPL(STATIC_CALL_TRAMP(name))

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette

\
 
 \ /
  Last update: 2020-03-26 16:54    [W:0.286 / U:1.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site