* [linux-next:master 4041/4582] mm/shmem.c:139:24: warning: 'huge_anon_shmem_orders_lock' defined but not used
@ 2024-06-08 4:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-08 4:02 UTC (permalink / raw)
To: Baolin Wang; +Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d35b2284e966c0bef3e2182a5c5ea02177dd32e4
commit: f2445d38f2d03a0c27f48b6446eef354f9feb05e [4041/4582] mm: shmem: add multi-size THP sysfs interface for anonymous shmem
config: s390-randconfig-r112-20240228 (https://download.01.org/0day-ci/archive/20240608/202406081136.Uh4wFjpL-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240608/202406081136.Uh4wFjpL-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406081136.Uh4wFjpL-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/spinlock.h:89,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from mm/shmem.c:24:
>> mm/shmem.c:139:24: warning: 'huge_anon_shmem_orders_lock' defined but not used [-Wunused-variable]
139 | static DEFINE_SPINLOCK(huge_anon_shmem_orders_lock);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/spinlock_types.h:43:44: note: in definition of macro 'DEFINE_SPINLOCK'
43 | #define DEFINE_SPINLOCK(x) spinlock_t x = __SPIN_LOCK_UNLOCKED(x)
| ^
mm/shmem.c:138:22: warning: 'huge_anon_shmem_orders_within_size' defined but not used [-Wunused-variable]
138 | static unsigned long huge_anon_shmem_orders_within_size __read_mostly;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/shmem.c:136:22: warning: 'huge_anon_shmem_orders_madvise' defined but not used [-Wunused-variable]
136 | static unsigned long huge_anon_shmem_orders_madvise __read_mostly;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/shmem.c:135:22: warning: 'huge_anon_shmem_orders_always' defined but not used [-Wunused-variable]
135 | static unsigned long huge_anon_shmem_orders_always __read_mostly;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/huge_anon_shmem_orders_lock +139 mm/shmem.c
133
134 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
135 static unsigned long huge_anon_shmem_orders_always __read_mostly;
136 static unsigned long huge_anon_shmem_orders_madvise __read_mostly;
137 static unsigned long huge_anon_shmem_orders_inherit __read_mostly;
138 static unsigned long huge_anon_shmem_orders_within_size __read_mostly;
> 139 static DEFINE_SPINLOCK(huge_anon_shmem_orders_lock);
140 #endif
141
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-08 4:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-08 4:02 [linux-next:master 4041/4582] mm/shmem.c:139:24: warning: 'huge_anon_shmem_orders_lock' defined but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox