[PATCH 0/5] bcachefs: Fixes for various compiler warnings

From: Thomas Weißschuh
Date: Tue Sep 12 2023 - 17:25:07 EST


Some fixes for warnings found by "make W=1".

Note: This was only compile-tested.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Thomas Weißschuh (5):
bcachefs: Delete dead code
bcachefs: Mark bch2_snapshot_node_delete() static
bcachefs: Delete set but not used variables
bcachefs: Add printf function attributes
bcachefs: Avoid unused symbol warnings from headers

fs/bcachefs/alloc_foreground.c | 3 --
fs/bcachefs/backpointers.c | 3 --
fs/bcachefs/bcachefs.h | 3 +-
fs/bcachefs/bcachefs_format.h | 15 +++++-----
fs/bcachefs/btree_io.c | 4 +--
fs/bcachefs/btree_trans_commit.c | 4 ---
fs/bcachefs/btree_types.h | 63 +++++++++++++++++++++-------------------
fs/bcachefs/btree_update.c | 13 ++-------
fs/bcachefs/btree_update.h | 4 ++-
fs/bcachefs/compress.c | 4 ---
fs/bcachefs/data_update.c | 4 ---
fs/bcachefs/fs-io-pagecache.c | 7 -----
fs/bcachefs/fs-ioctl.h | 8 +++--
fs/bcachefs/opts.h | 3 +-
fs/bcachefs/reflink.c | 8 -----
fs/bcachefs/snapshot.c | 2 +-
16 files changed, 58 insertions(+), 90 deletions(-)
---
base-commit: e7e6c4189f70ab2d7c21eaec5b9e9c34527ef349
change-id: 20230912-bcachefs-cleanup-a3f3ab958320

Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>