* [alexshi:ptdesc 14/17] arch/powerpc/include/asm/book3s/64/pgtable.h:1372:52: error: incompatible pointer types passing 'struct ptdesc *' to parameter of type 'struct ptdesc *'
@ 2024-08-03 3:26 kernel test robot
2024-08-05 3:04 ` Alex Shi
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2024-08-03 3:26 UTC (permalink / raw)
To: alexs; +Cc: oe-kbuild-all
tree: https://github.com/alexshi/linux.git ptdesc
head: 3735e634f8feb67c941d17222b53906ace2fd2b8
commit: 8ac2ea5f299444d065b292043aed0a1e94996159 [14/17] mm/pgtable: use ptdesc in pgtable_trans_huge_deposit
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20240803/202408031130.UnwgnuLS-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 423aec6573df4424f90555468128e17073ddc69e)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240803/202408031130.UnwgnuLS-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/202408031130.UnwgnuLS-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/powerpc/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:14:
In file included from include/linux/sem.h:5:
In file included from include/uapi/linux/sem.h:5:
In file included from include/linux/ipc.h:7:
In file included from include/linux/rhashtable-types.h:12:
In file included from include/linux/alloc_tag.h:11:
In file included from include/linux/preempt.h:79:
In file included from ./arch/powerpc/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:23:
In file included from arch/powerpc/include/asm/current.h:13:
In file included from arch/powerpc/include/asm/paca.h:18:
In file included from arch/powerpc/include/asm/mmu.h:377:
In file included from arch/powerpc/include/asm/book3s/64/mmu.h:32:
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20:
In file included from arch/powerpc/include/asm/book3s/64/pgtable.h:297:
In file included from arch/powerpc/include/asm/book3s/64/hash.h:17:
arch/powerpc/include/asm/book3s/64/hash-64k.h:277:18: warning: declaration of 'struct ptdesc' will not be visible outside of this function [-Wvisibility]
277 | struct ptdesc *ptdesc);
| ^
In file included from arch/powerpc/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:14:
In file included from include/linux/sem.h:5:
In file included from include/uapi/linux/sem.h:5:
In file included from include/linux/ipc.h:7:
In file included from include/linux/rhashtable-types.h:12:
In file included from include/linux/alloc_tag.h:11:
In file included from include/linux/preempt.h:79:
In file included from ./arch/powerpc/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:23:
In file included from arch/powerpc/include/asm/current.h:13:
In file included from arch/powerpc/include/asm/paca.h:18:
In file included from arch/powerpc/include/asm/mmu.h:377:
In file included from arch/powerpc/include/asm/book3s/64/mmu.h:32:
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20:
>> arch/powerpc/include/asm/book3s/64/pgtable.h:1372:52: error: incompatible pointer types passing 'struct ptdesc *' to parameter of type 'struct ptdesc *' [-Werror,-Wincompatible-pointer-types]
1372 | return hash__pgtable_trans_huge_deposit(mm, pmdp, ptdesc);
| ^~~~~~
arch/powerpc/include/asm/book3s/64/hash-64k.h:277:26: note: passing argument to parameter 'ptdesc' here
277 | struct ptdesc *ptdesc);
| ^
In file included from arch/powerpc/kernel/asm-offsets.c:19:
In file included from include/linux/mman.h:5:
In file included from include/linux/mm.h:2234:
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 +
| ~~~~~~~~~~~~~~~~~~~~~~
6 warnings and 1 error generated.
make[3]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1193: 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 +1372 arch/powerpc/include/asm/book3s/64/pgtable.h
1355
1356 #define __HAVE_ARCH_PMDP_HUGE_GET_AND_CLEAR_FULL
1357 pmd_t pmdp_huge_get_and_clear_full(struct vm_area_struct *vma,
1358 unsigned long addr,
1359 pmd_t *pmdp, int full);
1360
1361 #define __HAVE_ARCH_PUDP_HUGE_GET_AND_CLEAR_FULL
1362 pud_t pudp_huge_get_and_clear_full(struct vm_area_struct *vma,
1363 unsigned long addr,
1364 pud_t *pudp, int full);
1365
1366 #define __HAVE_ARCH_PGTABLE_DEPOSIT
1367 static inline void pgtable_trans_huge_deposit(struct mm_struct *mm,
1368 pmd_t *pmdp, struct ptdesc *ptdesc)
1369 {
1370 if (radix_enabled())
1371 return radix__pgtable_trans_huge_deposit(mm, pmdp, ptdesc);
> 1372 return hash__pgtable_trans_huge_deposit(mm, pmdp, ptdesc);
1373 }
1374
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [alexshi:ptdesc 14/17] arch/powerpc/include/asm/book3s/64/pgtable.h:1372:52: error: incompatible pointer types passing 'struct ptdesc *' to parameter of type 'struct ptdesc *'
2024-08-03 3:26 [alexshi:ptdesc 14/17] arch/powerpc/include/asm/book3s/64/pgtable.h:1372:52: error: incompatible pointer types passing 'struct ptdesc *' to parameter of type 'struct ptdesc *' kernel test robot
@ 2024-08-05 3:04 ` Alex Shi
2024-08-05 3:20 ` Philip Li
0 siblings, 1 reply; 3+ messages in thread
From: Alex Shi @ 2024-08-05 3:04 UTC (permalink / raw)
To: kernel test robot, alexs; +Cc: oe-kbuild-all
On 8/3/24 11:26 AM, kernel test robot wrote:
> tree: https://github.com/alexshi/linux.git ptdesc
> head: 3735e634f8feb67c941d17222b53906ace2fd2b8
> commit: 8ac2ea5f299444d065b292043aed0a1e94996159 [14/17] mm/pgtable: use ptdesc in pgtable_trans_huge_deposit
> config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20240803/202408031130.UnwgnuLS-lkp@intel.com/config)
> compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 423aec6573df4424f90555468128e17073ddc69e)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240803/202408031130.UnwgnuLS-lkp@intel.com/reproduce)
> In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20:
>>> arch/powerpc/include/asm/book3s/64/pgtable.h:1372:52: error: incompatible pointer types passing 'struct ptdesc *' to parameter of type 'struct ptdesc *' [-Werror,-Wincompatible-pointer-types]
Hi guys,
I still don't understand this problem. what's the meaning of 'struct ptdesc *' incompatible with 'struct ptdesc *'?
Thanks
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [alexshi:ptdesc 14/17] arch/powerpc/include/asm/book3s/64/pgtable.h:1372:52: error: incompatible pointer types passing 'struct ptdesc *' to parameter of type 'struct ptdesc *'
2024-08-05 3:04 ` Alex Shi
@ 2024-08-05 3:20 ` Philip Li
0 siblings, 0 replies; 3+ messages in thread
From: Philip Li @ 2024-08-05 3:20 UTC (permalink / raw)
To: Alex Shi; +Cc: kernel test robot, alexs, oe-kbuild-all
On Mon, Aug 05, 2024 at 11:04:48AM +0800, Alex Shi wrote:
>
>
> On 8/3/24 11:26 AM, kernel test robot wrote:
> > tree: https://github.com/alexshi/linux.git ptdesc
> > head: 3735e634f8feb67c941d17222b53906ace2fd2b8
> > commit: 8ac2ea5f299444d065b292043aed0a1e94996159 [14/17] mm/pgtable: use ptdesc in pgtable_trans_huge_deposit
> > config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20240803/202408031130.UnwgnuLS-lkp@intel.com/config)
> > compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 423aec6573df4424f90555468128e17073ddc69e)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240803/202408031130.UnwgnuLS-lkp@intel.com/reproduce)
>
> > In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:20:
> >>> arch/powerpc/include/asm/book3s/64/pgtable.h:1372:52: error: incompatible pointer types passing 'struct ptdesc *' to parameter of type 'struct ptdesc *' [-Werror,-Wincompatible-pointer-types]
>
> Hi guys,
>
> I still don't understand this problem. what's the meaning of 'struct ptdesc *' incompatible with 'struct ptdesc *'?
Hi Alex, there's one warning before this error, not sure whether it helps.
arch/powerpc/include/asm/book3s/64/hash-64k.h:277:18: warning: declaration of 'struct ptdesc' will not be visible outside of this function [-Wvisibility]
277 | struct ptdesc *ptdesc)
If this can't provide any help, you may add llvm@lists.linux.dev list to consult for
this error.
>
> Thanks
> Alex
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-05 3:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-03 3:26 [alexshi:ptdesc 14/17] arch/powerpc/include/asm/book3s/64/pgtable.h:1372:52: error: incompatible pointer types passing 'struct ptdesc *' to parameter of type 'struct ptdesc *' kernel test robot
2024-08-05 3:04 ` Alex Shi
2024-08-05 3:20 ` Philip Li
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.