lkml.org 
[lkml]   [2021]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 1/7] static_call: get rid of static_call_cond()
On Tue, Nov 09, 2021 at 05:45:43PM +0100, Ard Biesheuvel wrote:
> static inline
> void __static_call_update(struct static_call_key *key, void *tramp, void *func)
> {
> + WRITE_ONCE(key->func, func ?: (void *)&__static_call_nop);
> }

Ha, yes, I suppose that ought to work.

\
 
 \ /
  Last update: 2021-11-09 20:33    [W:0.091 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site