From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Kent Overstreet <kent.overstreet@linux•dev>
Cc: Kent Overstreet <kent.overstreet@gmail•com>,
Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
Linux Next Mailing List <linux-next@vger•kernel.org>
Subject: linux-next: build warning after merge of the bcachefs tree
Date: Thu, 18 Jul 2024 15:46:51 +1000 [thread overview]
Message-ID: <20240718154651.28bc7b48@canb.auug.org.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 20046 bytes --]
Hi all,
After merging the bcachefs tree, today's linux-next build (s390 defconfig)
produced this warning:
In file included from fs/bcachefs/str_hash.h:5,
from fs/bcachefs/xattr.h:5,
from fs/bcachefs/acl.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/backpointers.h:6,
from fs/bcachefs/bkey_methods.c:4:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_update_interior.h:6,
from fs/bcachefs/bkey_sort.c:166:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/backpointers.h:6,
from fs/bcachefs/alloc_foreground.c:17:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/backpointers.h:6,
from fs/bcachefs/backpointers.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/backpointers.h:6,
from fs/bcachefs/alloc_background.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_io.h:7,
from fs/bcachefs/btree_cache.c:7:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_key_cache.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/backpointers.h:6,
from fs/bcachefs/btree_gc.c:10:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_io.h:7,
from fs/bcachefs/btree_node_scan.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_locking.c:4:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_io.h:7,
from fs/bcachefs/btree_io.c:7:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_io.h:7,
from fs/bcachefs/btree_trans_commit.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/btree_update.c:4:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_iter.c:7:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_write_buffer.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/backpointers.h:6,
from fs/bcachefs/buckets.c:10:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/btree_update_interior.c:10:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/move.h:7,
from fs/bcachefs/chardev.c:10:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/dirent.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_io.h:7,
from fs/bcachefs/debug.c:12:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/error.c:3:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/extent_update.c:3:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/disk_accounting.c:7:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/data_update.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/fs-common.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/str_hash.h:5,
from fs/bcachefs/dirent.h:5,
from fs/bcachefs/fs-ioctl.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/backpointers.h:6,
from fs/bcachefs/ec.c:8:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/str_hash.h:5,
from fs/bcachefs/fs.h:7,
from fs/bcachefs/fs-io-direct.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/io_misc.c:9:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/fs-io.c:7:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/fs.c:7:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/fs-io-pagecache.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/inode.c:7:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/str_hash.h:5,
from fs/bcachefs/fs.h:7,
from fs/bcachefs/fs-io.h:8,
from fs/bcachefs/fs-io-buffered.c:7:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_io.h:7,
from fs/bcachefs/extents.c:13:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/io_read.c:12:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/logged_ops.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/io_write.c:11:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/journal_reclaim.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/journal.c:12:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/lru.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/migrate.c:8:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/movinggc.c:11:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_io.h:7,
from fs/bcachefs/journal_io.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/fsck.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/backpointers.h:6,
from fs/bcachefs/move.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/quota.c:3:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/rebalance.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/backpointers.h:6,
from fs/bcachefs/recovery_passes.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/recovery.c:8:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_update_interior.h:6,
from fs/bcachefs/sb-clean.c:4:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/reflink.c:4:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/subvolume.c:5:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/xattr.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_update_interior.h:6,
from fs/bcachefs/super.c:19:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_locking.h:13,
from fs/bcachefs/btree_io.h:7,
from fs/bcachefs/sysfs.c:16:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/btree_update.h:5,
from fs/bcachefs/snapshot.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
In file included from fs/bcachefs/trace.c:6:
fs/bcachefs/btree_iter.h: In function '__btree_path_put':
fs/bcachefs/btree_iter.h:39:18: warning: unused variable 'idx' [-Wunused-variable]
39 | unsigned idx = path - trans->paths;
| ^~~
Introduced by commit
9e1156881fbc ("bcachefs: Btree path tracepoints")
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2024-07-18 5:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-18 5:46 Stephen Rothwell [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-17 6:28 linux-next: build warning after merge of the bcachefs tree Stephen Rothwell
2025-02-21 5:19 Stephen Rothwell
2025-02-21 5:21 ` Stephen Rothwell
2025-02-21 5:17 Stephen Rothwell
2025-02-04 3:12 Stephen Rothwell
2024-05-01 5:16 Stephen Rothwell
2024-02-26 6:46 Stephen Rothwell
2024-01-17 2:28 Stephen Rothwell
2023-11-26 22:46 Stephen Rothwell
2023-09-12 5:02 Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240718154651.28bc7b48@canb.auug.org.au \
--to=sfr@canb$(echo .)auug.org.au \
--cc=kent.overstreet@gmail$(echo .)com \
--cc=kent.overstreet@linux$(echo .)dev \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox