pidfs: make pidfs_ino_lock static
authorMateusz Guzik <mjguzik@gmail.com>
Thu, 23 Jul 2026 16:01:13 +0000 (18:01 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 24 Jul 2026 08:30:58 +0000 (10:30 +0200)
Fixes: 87caaeef7995 ("pidfs: implement ino allocation without the pidmap lock")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202607231547.ehCQxi0L-lkp@intel.com/

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://patch.msgid.link/20260723160114.291515-1-mjguzik@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/pidfs.c

index d7fe9ab..b57ecc9 100644 (file)
@@ -108,7 +108,7 @@ struct pidfs_attr {
 
 #if BITS_PER_LONG == 32
 
-DEFINE_SPINLOCK(pidfs_ino_lock);
+static DEFINE_SPINLOCK(pidfs_ino_lock);
 static u64 pidfs_ino_nr = 1;
 
 static inline unsigned long pidfs_ino(u64 ino)