Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
36 lines
879 B
C
36 lines
879 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _BCACHE_DEBUG_H
|
|
#define _BCACHE_DEBUG_H
|
|
|
|
struct bio;
|
|
struct cached_dev;
|
|
struct cache_set;
|
|
|
|
#ifdef CONFIG_BCACHE_DEBUG
|
|
|
|
void bch_btree_verify(struct btree *);
|
|
void bch_data_verify(struct cached_dev *, struct bio *);
|
|
|
|
#define expensive_debug_checks(c) ((c)->expensive_debug_checks)
|
|
#define key_merging_disabled(c) ((c)->key_merging_disabled)
|
|
#define bypass_torture_test(d) ((d)->bypass_torture_test)
|
|
|
|
#else /* DEBUG */
|
|
|
|
static inline void bch_btree_verify(struct btree *b) {}
|
|
static inline void bch_data_verify(struct cached_dev *dc, struct bio *bio) {}
|
|
|
|
#define expensive_debug_checks(c) 0
|
|
#define key_merging_disabled(c) 0
|
|
#define bypass_torture_test(d) 0
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
void bch_debug_init_cache_set(struct cache_set *);
|
|
#else
|
|
static inline void bch_debug_init_cache_set(struct cache_set *c) {}
|
|
#endif
|
|
|
|
#endif
|