koverstreet / bcachefs

Other
686 stars 71 forks source link

Clang 15.0.7 error with CONFIG_STACKTRACE disabled [3215ae3] #583

Closed timocapa closed 1 year ago

timocapa commented 1 year ago

Building on Arch Linux, with a fresh checkout from here.

Warnings:

In file included from fs/bcachefs/fs.c:15:
fs/bcachefs/fs-io.h:111:13: warning: unused function '__bch2_quota_reservation_put' [-Wunused-function]
static void __bch2_quota_reservation_put(struct bch_fs *c,
            ^
fs/bcachefs/fs-io.h:115:13: warning: unused function 'bch2_quota_reservation_put' [-Wunused-function]
static void bch2_quota_reservation_put(struct bch_fs *c,
            ^
fs/bcachefs/fs-io.h:119:12: warning: unused function 'bch2_quota_reservation_add' [-Wunused-function]
static int bch2_quota_reservation_add(struct bch_fs *c,
           ^
In file included from fs/bcachefs/fs-io-buffered.c:7:
fs/bcachefs/fs-io.h:111:13: warning: unused function '__bch2_quota_reservation_put' [-Wunused-function]
static void __bch2_quota_reservation_put(struct bch_fs *c,
            ^
fs/bcachefs/fs-io.h:115:13: warning: unused function 'bch2_quota_reservation_put' [-Wunused-function]
static void bch2_quota_reservation_put(struct bch_fs *c,
            ^
fs/bcachefs/fs-io.h:119:12: warning: unused function 'bch2_quota_reservation_add' [-Wunused-function]
static int bch2_quota_reservation_add(struct bch_fs *c,
           ^
In file included from fs/bcachefs/fs-io.c:13:
fs/bcachefs/fs-io.h:111:13: warning: unused function '__bch2_quota_reservation_put' [-Wunused-function]
static void __bch2_quota_reservation_put(struct bch_fs *c,
            ^
In file included from fs/bcachefs/fs-io-pagecache.c:7:
fs/bcachefs/fs-io.h:111:13: warning: unused function '__bch2_quota_reservation_put' [-Wunused-function]
static void __bch2_quota_reservation_put(struct bch_fs *c,
            ^
In file included from fs/bcachefs/super.c:33:
fs/bcachefs/fs-io.h:111:13: warning: unused function '__bch2_quota_reservation_put' [-Wunused-function]
static void __bch2_quota_reservation_put(struct bch_fs *c,
            ^
fs/bcachefs/fs-io.h:115:13: warning: unused function 'bch2_quota_reservation_put' [-Wunused-function]
static void bch2_quota_reservation_put(struct bch_fs *c,
            ^
fs/bcachefs/fs-io.h:119:12: warning: unused function 'bch2_quota_reservation_add' [-Wunused-function]
static int bch2_quota_reservation_add(struct bch_fs *c,
           ^

And an actual error:

fs/bcachefs/util.c:284:16: error: call to undeclared function 'stack_trace_save_tsk'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
                nr_entries = stack_trace_save_tsk(task, stack->data, stack->size, 0);
                             ^
1 error generated.

It appears this is due to CONFIG_STRACKTRACE being disabled

koverstreet commented 1 year ago

This should be fixed now