lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240718154651.28bc7b48@canb.auug.org.au>
Date: Thu, 18 Jul 2024 15:46:51 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Kent Overstreet <kent.overstreet@...ux.dev>
Cc: Kent Overstreet <kent.overstreet@...il.com>, Linux Kernel Mailing List
 <linux-kernel@...r.kernel.org>, Linux Next Mailing List
 <linux-next@...r.kernel.org>
Subject: linux-next: build warning after merge of the bcachefs tree

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

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ