* [alexshi:mmunstable 32/42] arch/powerpc/mm/book3s64/radix_pgtable.c:1039:33: error: incompatible pointer types passing 'pte_t *' to parameter of type 'struct ptdesc *'
@ 2024-07-22 10:15 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-22 10:15 UTC (permalink / raw)
To: Alex Shi (Tencent); +Cc: llvm, oe-kbuild-all
tree: https://github.com/alexshi/linux.git mmunstable
head: 0dc6582fabc5dcd9239957e6e6501344fd99714a
commit: 2ebcd5d8095bd27829436469978d476b4d0a35fc [32/42] mm/pgtable: return ptdesc in pte_free
config: powerpc64-randconfig-003-20240722 (https://download.01.org/0day-ci/archive/20240722/202407221810.LiFUCWbC-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project ad154281230d83ee551e12d5be48bb956ef47ed3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240722/202407221810.LiFUCWbC-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/202407221810.LiFUCWbC-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/powerpc/mm/book3s64/radix_pgtable.c:10:
In file included from include/linux/io.h:14:
In file included from arch/powerpc/include/asm/io.h:24:
In file included from include/linux/mm.h:2221:
include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
500 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
501 | item];
| ~~~~
include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
507 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
508 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
519 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
520 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
528 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
529 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/mm/book3s64/radix_pgtable.c:1039:33: error: incompatible pointer types passing 'pte_t *' to parameter of type 'struct ptdesc *' [-Werror,-Wincompatible-pointer-types]
1039 | pmd_populate(&init_mm, pmdp, pte);
| ^~~
arch/powerpc/include/asm/book3s/64/pgalloc.h:165:20: note: passing argument to parameter 'pte_page' here
165 | struct ptdesc *pte_page)
| ^
5 warnings and 1 error generated.
vim +1039 arch/powerpc/mm/book3s64/radix_pgtable.c
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1029
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1030 static inline pte_t *vmemmap_pte_alloc(pmd_t *pmdp, int node,
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1031 unsigned long address)
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1032 {
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1033 pte_t *pte;
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1034
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1035 /* All early vmemmap mapping to keep simple do it at PAGE_SIZE */
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1036 if (unlikely(pmd_none(*pmdp))) {
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1037 if (unlikely(!slab_is_available())) {
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1038 pte = early_alloc_pgtable(PAGE_SIZE, node, 0, 0);
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 @1039 pmd_populate(&init_mm, pmdp, pte);
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1040 } else
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1041 return pte_alloc_kernel(pmdp, address);
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1042 }
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1043 return pte_offset_kernel(pmdp, address);
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1044 }
368a0590d954a6 Aneesh Kumar K.V 2023-07-25 1045
:::::: The code at line 1039 was first introduced by commit
:::::: 368a0590d954a659b16ab945328ada0cc10f93a0 powerpc/book3s64/vmemmap: switch radix to use a different vmemmap handling function
:::::: TO: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>
--
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-07-22 10:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-22 10:15 [alexshi:mmunstable 32/42] arch/powerpc/mm/book3s64/radix_pgtable.c:1039:33: error: incompatible pointer types passing 'pte_t *' to parameter of type 'struct ptdesc *' 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