* [PATCH] bcachefs: Shut up clang warning
@ 2025-06-26 3:04 Alan Huang
0 siblings, 0 replies; only message in thread
From: Alan Huang @ 2025-06-26 3:04 UTC (permalink / raw)
To: kent.overstreet; +Cc: linux-bcachefs, Alan Huang, kernel test robot
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506261026.ZxtJ7yeV-lkp@intel.com/
Signed-off-by: Alan Huang <mmpgouride@gmail.com>
---
fs/bcachefs/btree_iter.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/bcachefs/btree_iter.c b/fs/bcachefs/btree_iter.c
index 8f037a798524..3d85627eedd1 100644
--- a/fs/bcachefs/btree_iter.c
+++ b/fs/bcachefs/btree_iter.c
@@ -3333,6 +3333,8 @@ u32 bch2_trans_begin(struct btree_trans *trans)
bool lock_dropped = false;
void *new_mem = allocate_dropping_locks_norelock(trans, lock_dropped,
krealloc(trans->mem, new_bytes, _gfp));
+ (void)lock_dropped;
+
if (!new_mem) {
new_mem = mempool_alloc(&trans->c->btree_trans_mem_pool, GFP_KERNEL);
new_bytes = BTREE_TRANS_MEM_MAX;
--
2.48.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-06-26 3:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-26 3:04 [PATCH] bcachefs: Shut up clang warning Alan Huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).