mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
This is needed to inline these helpers into Rust code. Reviewed-by: Boqun Feng <[email protected]> Reviewed-by: Gary Guo <[email protected]> Signed-off-by: Alice Ryhl <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
15 lines
249 B
C
15 lines
249 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/*
|
|
* Copyright (C) 2024 Google LLC.
|
|
*/
|
|
|
|
#include <linux/jump_label.h>
|
|
|
|
#ifndef CONFIG_JUMP_LABEL
|
|
__rust_helper int rust_helper_static_key_count(struct static_key *key)
|
|
{
|
|
return static_key_count(key);
|
|
}
|
|
#endif
|