* Re: [PATCH v2 -next] mm/hugetlb_cgroup: register lockdep key for cftype
[not found] <20240618071922.2127289-1-xiujianfeng@huawei.com>
@ 2024-06-19 2:10 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-19 2:10 UTC (permalink / raw)
To: Xiu Jianfeng; +Cc: llvm, oe-kbuild-all
Hi Xiu,
kernel test robot noticed the following build errors:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Xiu-Jianfeng/mm-hugetlb_cgroup-register-lockdep-key-for-cftype/20240618-152930
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20240618071922.2127289-1-xiujianfeng%40huawei.com
patch subject: [PATCH v2 -next] mm/hugetlb_cgroup: register lockdep key for cftype
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20240619/202406191003.yPG3tSzS-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 78ee473784e5ef6f0b19ce4cb111fb6e4d23c6b2)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240619/202406191003.yPG3tSzS-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/202406191003.yPG3tSzS-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/hugetlb_cgroup.c:20:
In file included from include/linux/cgroup.h:25:
In file included from include/linux/kernel_stat.h:8:
In file included from include/linux/interrupt.h:21:
In file included from arch/riscv/include/asm/sections.h:9:
In file included from include/linux/mm.h:2229:
include/linux/vmstat.h:498:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
498 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> mm/hugetlb_cgroup.c:840:30: error: no member named 'lockdep_key' in 'struct cftype'
840 | lockdep_register_key(&cft->lockdep_key);
| ~~~ ^
1 warning and 1 error generated.
vim +840 mm/hugetlb_cgroup.c
815
816 static void __init
817 hugetlb_cgroup_cfttypes_init(struct hstate *h, struct cftype *cft,
818 struct cftype *tmpl, int tmpl_size)
819 {
820 char buf[32];
821 int i, idx = hstate_index(h);
822
823 /* format the size */
824 mem_fmt(buf, sizeof(buf), huge_page_size(h));
825
826 for (i = 0; i < tmpl_size; cft++, tmpl++, i++) {
827 *cft = *tmpl;
828 /* rebuild the name */
829 snprintf(cft->name, MAX_CFTYPE_NAME, "%s.%s", buf, tmpl->name);
830 /* rebuild the private */
831 cft->private = MEMFILE_PRIVATE(idx, tmpl->private);
832 /* rebuild the file_offset */
833 if (tmpl->file_offset) {
834 unsigned int offset = tmpl->file_offset;
835
836 cft->file_offset = MEMFILE_OFFSET0(offset) +
837 MEMFILE_FIELD_SIZE(offset) * idx;
838 }
839
> 840 lockdep_register_key(&cft->lockdep_key);
841 }
842 }
843
--
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-19 2:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20240618071922.2127289-1-xiujianfeng@huawei.com>
2024-06-19 2:10 ` [PATCH v2 -next] mm/hugetlb_cgroup: register lockdep key for cftype 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