Kent Overstreet be35429fa2
Some checks are pending
build / bcachefs-tools-deb (ubuntu-22.04) (push) Waiting to run
build / bcachefs-tools-deb (ubuntu-24.04) (push) Waiting to run
build / bcachefs-tools-rpm (push) Waiting to run
build / bcachefs-tools-msrv (push) Waiting to run
Nix Flake actions / nix-matrix (push) Waiting to run
Nix Flake actions / ${{ matrix.name }} (${{ matrix.system }}) (push) Blocked by required conditions
Update bcachefs sources to f565983af369 bcachefs: Read retries are after checksum errors now REQ_FUA
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-05-20 18:59:26 -04:00

23 lines
600 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_STATIC_KEY_H
#define _LINUX_STATIC_KEY_H
struct static_key {
int v;
};
static inline void static_key_enable(struct static_key *key) {}
static inline void static_key_disable(struct static_key *key) {}
static inline bool static_key_enabled(struct static_key *key) { return false; }
struct static_key_false {
struct static_key key;
};
#define DEFINE_STATIC_KEY_FALSE(n) struct static_key_false n = {}
#define static_branch_unlikely(x) unlikely((x)->key.v)
#define static_branch_likely(x) likely((x)->key.v)
#endif /* _LINUX_STATIC_KEY_H */