* [anolis-intel-cloud:intel-6.6-DMR-APX-ANBZ29353 30/30] mm/slub.c:1904:1: warning: label 'find' defined but not used
@ 2026-02-24 9:25 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-24 9:25 UTC (permalink / raw)
To: aubrey.li; +Cc: oe-kbuild-all
Hi Yi,
FYI, the error/warning still remains.
tree: https://gitee.com/anolis/intel-cloud-kernel.git intel-6.6-DMR-APX-ANBZ29353
head: d8e6957edead90297a4f8cb1f247c54e559dbf8c
commit: 0763da468566b4d9761378a01f42a36aa984d5d0 [30/30] anolis: mm: use oot_page_list to cache pages return to buddy
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20260224/202602241749.5SlObXRa-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.4.0-5) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260224/202602241749.5SlObXRa-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/202602241749.5SlObXRa-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/slub.c: In function 'alloc_slab_page':
>> mm/slub.c:1904:1: warning: label 'find' defined but not used [-Wunused-label]
1904 | find:
| ^~~~
>> mm/slub.c:1874:13: warning: unused variable 'nid' [-Wunused-variable]
1874 | int nid;
| ^~~
>> mm/slub.c:1872:29: warning: unused variable 't' [-Wunused-variable]
1872 | struct slab *slab, *t;
| ^
vim +/find +1904 mm/slub.c
1864
1865 /*
1866 * Slab allocation and freeing
1867 */
1868 static inline struct slab *alloc_slab_page(struct kmem_cache *s,
1869 gfp_t flags, int node, struct kmem_cache_order_objects oo)
1870 {
1871 struct folio *folio;
> 1872 struct slab *slab, *t;
1873 unsigned int order = oo_order(oo);
> 1874 int nid;
1875
1876 flags |= __GFP_NOKFENCE;
1877
1878 #ifdef CONFIG_MODULES
1879 if (unlikely(s->is_oot)) {
1880 spin_lock(&s->oot_lock);
1881 list_for_each_entry_safe(slab, t, &s->oot_page_list, slab_list) {
1882 nid = page_to_nid(&(slab_folio(slab)->page));
1883 if (nid == node ||
1884 (node == NUMA_NO_NODE && nid == numa_node_id())) {
1885 list_del(&slab->slab_list);
1886 s->oot_page_num--;
1887 spin_unlock(&s->oot_lock);
1888 folio = slab_folio(slab);
1889 goto find;
1890 }
1891 }
1892 spin_unlock(&s->oot_lock);
1893 }
1894 #endif
1895
1896 if (node == NUMA_NO_NODE)
1897 folio = (struct folio *)alloc_pages(flags, order);
1898 else
1899 folio = (struct folio *)__alloc_pages_node(node, flags, order);
1900
1901 if (!folio)
1902 return NULL;
1903
> 1904 find:
1905 slab = folio_slab(folio);
1906 __folio_set_slab(folio);
1907 /* Make the flag visible before any changes to folio->mapping */
1908 smp_wmb();
1909 if (folio_is_pfmemalloc(folio))
1910 slab_set_pfmemalloc(slab);
1911
1912 return slab;
1913 }
1914
--
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:[~2026-02-24 9:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-24 9:25 [anolis-intel-cloud:intel-6.6-DMR-APX-ANBZ29353 30/30] mm/slub.c:1904:1: warning: label 'find' defined but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.