diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-16 15:05:18 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:11 -0400 |
commit | e5570df295fc951546fec782bc087f72a47277e0 (patch) | |
tree | 453770769b129927dc245014b9a12f7f834692ec /fs/bcachefs/util.c | |
parent | 62898dd12ba017c56c39a74ef891845118b0c190 (diff) | |
download | linux-stable-e5570df295fc951546fec782bc087f72a47277e0.tar.gz linux-stable-e5570df295fc951546fec782bc087f72a47277e0.tar.bz2 linux-stable-e5570df295fc951546fec782bc087f72a47277e0.zip |
bcachefs: stack_trace_save_tsk() depends on CONFIG_STACKTRACE
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/util.c')
-rw-r--r-- | fs/bcachefs/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/bcachefs/util.c b/fs/bcachefs/util.c index e4f21fcae944..1ab7e247cca6 100644 --- a/fs/bcachefs/util.c +++ b/fs/bcachefs/util.c @@ -269,6 +269,7 @@ void bch2_print_string_as_lines(const char *prefix, const char *lines) int bch2_save_backtrace(bch_stacktrace *stack, struct task_struct *task) { +#ifdef CONFIG_STACKTRACE unsigned nr_entries = 0; int ret = 0; @@ -289,6 +290,9 @@ int bch2_save_backtrace(bch_stacktrace *stack, struct task_struct *task) up_read(&task->signal->exec_update_lock); return ret; +#else + return 0; +#endif } void bch2_prt_backtrace(struct printbuf *out, bch_stacktrace *stack) |