From: kernel test robot <lkp@intel.com>
To: Kevin Brodsky <kevin.brodsky@arm.com>
Cc: oe-kbuild-all@lists.linux.dev, Linus Walleij <linus.walleij@linaro.org>
Subject: [arm-integrator:p4d_pgd_cdtor 10/10] arch/s390/include/asm/pgalloc.h:129:24: error: initialization of 'pgd_t *' from incompatible pointer type 'long unsigned int *'
Date: Wed, 18 Dec 2024 21:21:31 +0800 [thread overview]
Message-ID: <202412182154.2WzAy2LI-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git p4d_pgd_cdtor
head: 5453d8f69ac04a3a31ea973f98de9e0c58248a42
commit: 5453d8f69ac04a3a31ea973f98de9e0c58248a42 [10/10] mm: Introduce ctor/dtor at PGD level
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20241218/202412182154.2WzAy2LI-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241218/202412182154.2WzAy2LI-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/202412182154.2WzAy2LI-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/s390/include/asm/mmu_context.h:11,
from arch/s390/include/asm/elf.h:181,
from include/linux/elf.h:6,
from include/linux/module.h:19,
from include/linux/device/driver.h:21,
from include/linux/device.h:32,
from include/linux/pci.h:37,
from arch/s390/include/asm/hw_irq.h:6,
from include/linux/irq.h:591,
from include/linux/msi.h:24,
from include/linux/kvm_host.h:19,
from arch/s390/kernel/asm-offsets.c:11:
arch/s390/include/asm/pgalloc.h: In function 'p4d_free':
arch/s390/include/asm/pgalloc.h:67:43: error: 'table' undeclared (first use in this function); did you mean 'sg_table'?
67 | pagetable_p4d_dtor(virt_to_ptdesc(table));
| ^~~~~
| sg_table
arch/s390/include/asm/pgalloc.h:67:43: note: each undeclared identifier is reported only once for each function it appears in
arch/s390/include/asm/pgalloc.h: In function 'pgd_alloc':
>> arch/s390/include/asm/pgalloc.h:129:24: error: initialization of 'pgd_t *' from incompatible pointer type 'long unsigned int *' [-Wincompatible-pointer-types]
129 | pgd_t *table = crst_table_alloc(mm);
| ^~~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:102: arch/s390/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1203: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:224: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:224: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +129 arch/s390/include/asm/pgalloc.h
62
63 static inline void p4d_free(struct mm_struct *mm, p4d_t *p4d)
64 {
65 if (mm_p4d_folded(mm))
66 return;
> 67 pagetable_p4d_dtor(virt_to_ptdesc(table));
68 crst_table_free(mm, (unsigned long *) p4d);
69 }
70
71 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address)
72 {
73 unsigned long *table = crst_table_alloc(mm);
74
75 if (!table)
76 return NULL;
77 crst_table_init(table, _REGION3_ENTRY_EMPTY);
78 pagetable_pud_ctor(virt_to_ptdesc(table));
79 return (pud_t *) table;
80 }
81
82 static inline void pud_free(struct mm_struct *mm, pud_t *pud)
83 {
84 if (mm_pud_folded(mm))
85 return;
86 pagetable_pud_dtor(virt_to_ptdesc(pud));
87 crst_table_free(mm, (unsigned long *) pud);
88 }
89
90 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long vmaddr)
91 {
92 unsigned long *table = crst_table_alloc(mm);
93
94 if (!table)
95 return NULL;
96 crst_table_init(table, _SEGMENT_ENTRY_EMPTY);
97 if (!pagetable_pmd_ctor(virt_to_ptdesc(table))) {
98 crst_table_free(mm, table);
99 return NULL;
100 }
101 return (pmd_t *) table;
102 }
103
104 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
105 {
106 if (mm_pmd_folded(mm))
107 return;
108 pagetable_pmd_dtor(virt_to_ptdesc(pmd));
109 crst_table_free(mm, (unsigned long *) pmd);
110 }
111
112 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, p4d_t *p4d)
113 {
114 set_pgd(pgd, __pgd(_REGION1_ENTRY | __pa(p4d)));
115 }
116
117 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud)
118 {
119 set_p4d(p4d, __p4d(_REGION2_ENTRY | __pa(pud)));
120 }
121
122 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd)
123 {
124 set_pud(pud, __pud(_REGION3_ENTRY | __pa(pmd)));
125 }
126
127 static inline pgd_t *pgd_alloc(struct mm_struct *mm)
128 {
> 129 pgd_t *table = crst_table_alloc(mm);
130
131 if (!table)
132 return NULL;
133 pagetable_pgd_ctor(virt_to_ptdesc(table));
134 return table;
135 }
136
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-12-18 13:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202412182154.2WzAy2LI-lkp@intel.com \
--to=lkp@intel.com \
--cc=kevin.brodsky@arm.com \
--cc=linus.walleij@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.