* [morimoto:renesas-android/v6.18-rc6-2025-12-01 1/1] include/asm-generic/pgalloc.h:21:26: error: call to undeclared function 'pagetable_alloc_noprof'; ISO C99 and later do not support implicit function declarations
@ 2025-12-04 9:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-04 9:03 UTC (permalink / raw)
To: Isaac J. Manjarres; +Cc: llvm, oe-kbuild-all
tree: https://github.com/morimoto/linux renesas-android/v6.18-rc6-2025-12-01
head: 9df6f95899e762009eb03fba18a18054a299ec34
commit: 06f8e52b34f38555bb820ac1cb1d9547a3c9c50a [1/1] ANDROID: GKI: Introduce GKI_HIDDEN_IOMMU_CONFIGS
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20251204/202512041603.YlyZu496-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251204/202512041603.YlyZu496-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/202512041603.YlyZu496-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/iommu/iommu-sva.c:5:
In file included from include/linux/mmu_context.h:5:
In file included from arch/hexagon/include/asm/mmu_context.h:15:
In file included from arch/hexagon/include/asm/pgalloc.h:14:
>> include/asm-generic/pgalloc.h:21:26: error: call to undeclared function 'pagetable_alloc_noprof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
21 | struct ptdesc *ptdesc = pagetable_alloc_noprof(GFP_PGTABLE_KERNEL &
| ^
>> include/asm-generic/pgalloc.h:21:17: error: incompatible integer to pointer conversion initializing 'struct ptdesc *' with an expression of type 'int' [-Wint-conversion]
21 | struct ptdesc *ptdesc = pagetable_alloc_noprof(GFP_PGTABLE_KERNEL &
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 | ~__GFP_HIGHMEM, 0);
| ~~~~~~~~~~~~~~~~~~
>> include/asm-generic/pgalloc.h:26:7: error: call to undeclared function 'pagetable_pte_ctor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
26 | if (!pagetable_pte_ctor(mm, ptdesc)) {
| ^
>> include/asm-generic/pgalloc.h:27:3: error: call to undeclared function 'pagetable_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
27 | pagetable_free(ptdesc);
| ^
>> include/asm-generic/pgalloc.h:31:9: error: call to undeclared function 'ptdesc_address'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
31 | return ptdesc_address(ptdesc);
| ^
>> include/asm-generic/pgalloc.h:31:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'pte_t *' [-Wint-conversion]
31 | return ptdesc_address(ptdesc);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/asm-generic/pgalloc.h:56:2: error: call to undeclared function 'pagetable_dtor_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
56 | pagetable_dtor_free(virt_to_ptdesc(pte));
| ^
>> include/asm-generic/pgalloc.h:56:22: error: call to undeclared function 'virt_to_ptdesc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
56 | pagetable_dtor_free(virt_to_ptdesc(pte));
| ^
include/asm-generic/pgalloc.h:56:22: note: did you mean 'irq_to_desc'?
include/linux/irqnr.h:10:25: note: 'irq_to_desc' declared here
10 | extern struct irq_desc *irq_to_desc(unsigned int irq);
| ^
In file included from drivers/iommu/iommu-sva.c:5:
In file included from include/linux/mmu_context.h:5:
In file included from arch/hexagon/include/asm/mmu_context.h:15:
In file included from arch/hexagon/include/asm/pgalloc.h:14:
include/asm-generic/pgalloc.h:75:11: error: call to undeclared function 'pagetable_alloc_noprof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
75 | ptdesc = pagetable_alloc_noprof(gfp, 0);
| ^
>> include/asm-generic/pgalloc.h:75:9: error: incompatible integer to pointer conversion assigning to 'struct ptdesc *' from 'int' [-Wint-conversion]
75 | ptdesc = pagetable_alloc_noprof(gfp, 0);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/pgalloc.h:78:7: error: call to undeclared function 'pagetable_pte_ctor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
78 | if (!pagetable_pte_ctor(mm, ptdesc)) {
| ^
include/asm-generic/pgalloc.h:79:3: error: call to undeclared function 'pagetable_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
79 | pagetable_free(ptdesc);
| ^
include/asm-generic/pgalloc.h:117:2: error: call to undeclared function 'pagetable_dtor_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
117 | pagetable_dtor_free(ptdesc);
| ^
include/asm-generic/pgalloc.h:275:11: error: call to undeclared function 'pagetable_alloc_noprof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
275 | ptdesc = pagetable_alloc_noprof(gfp, order);
| ^
include/asm-generic/pgalloc.h:275:9: error: incompatible integer to pointer conversion assigning to 'struct ptdesc *' from 'int' [-Wint-conversion]
275 | ptdesc = pagetable_alloc_noprof(gfp, order);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/asm-generic/pgalloc.h:279:2: error: call to undeclared function 'pagetable_pgd_ctor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
279 | pagetable_pgd_ctor(ptdesc);
| ^
include/asm-generic/pgalloc.h:280:9: error: call to undeclared function 'ptdesc_address'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
280 | return ptdesc_address(ptdesc);
| ^
>> include/asm-generic/pgalloc.h:280:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'pgd_t *' [-Wint-conversion]
280 | return ptdesc_address(ptdesc);
| ^~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/pgalloc.h:286:26: error: call to undeclared function 'virt_to_ptdesc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
286 | struct ptdesc *ptdesc = virt_to_ptdesc(pgd);
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
vim +/pagetable_alloc_noprof +21 include/asm-generic/pgalloc.h
5fba4af4456b5d Mike Rapoport 2019-07-11 9
5fba4af4456b5d Mike Rapoport 2019-07-11 10 /**
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 11) * __pte_alloc_one_kernel - allocate memory for a PTE-level kernel page table
5fba4af4456b5d Mike Rapoport 2019-07-11 12 * @mm: the mm_struct of the current context
5fba4af4456b5d Mike Rapoport 2019-07-11 13 *
5fba4af4456b5d Mike Rapoport 2019-07-11 14 * This function is intended for architectures that need
5fba4af4456b5d Mike Rapoport 2019-07-11 15 * anything beyond simple page allocation.
5fba4af4456b5d Mike Rapoport 2019-07-11 16 *
5fba4af4456b5d Mike Rapoport 2019-07-11 17 * Return: pointer to the allocated memory or %NULL on error
5fba4af4456b5d Mike Rapoport 2019-07-11 18 */
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 19 static inline pte_t *__pte_alloc_one_kernel_noprof(struct mm_struct *mm)
5fba4af4456b5d Mike Rapoport 2019-07-11 20 {
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 @21 struct ptdesc *ptdesc = pagetable_alloc_noprof(GFP_PGTABLE_KERNEL &
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 22) ~__GFP_HIGHMEM, 0);
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 23)
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 24) if (!ptdesc)
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 25) return NULL;
49f5996664201a Kevin Brodsky 2025-04-08 @26 if (!pagetable_pte_ctor(mm, ptdesc)) {
49f5996664201a Kevin Brodsky 2025-04-08 @27 pagetable_free(ptdesc);
49f5996664201a Kevin Brodsky 2025-04-08 28 return NULL;
49f5996664201a Kevin Brodsky 2025-04-08 29 }
49f5996664201a Kevin Brodsky 2025-04-08 30
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 @31) return ptdesc_address(ptdesc);
5fba4af4456b5d Mike Rapoport 2019-07-11 32 }
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 33 #define __pte_alloc_one_kernel(...) alloc_hooks(__pte_alloc_one_kernel_noprof(__VA_ARGS__))
5fba4af4456b5d Mike Rapoport 2019-07-11 34
5fba4af4456b5d Mike Rapoport 2019-07-11 35 #ifndef __HAVE_ARCH_PTE_ALLOC_ONE_KERNEL
5fba4af4456b5d Mike Rapoport 2019-07-11 36 /**
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 37) * pte_alloc_one_kernel - allocate memory for a PTE-level kernel page table
5fba4af4456b5d Mike Rapoport 2019-07-11 38 * @mm: the mm_struct of the current context
5fba4af4456b5d Mike Rapoport 2019-07-11 39 *
5fba4af4456b5d Mike Rapoport 2019-07-11 40 * Return: pointer to the allocated memory or %NULL on error
5fba4af4456b5d Mike Rapoport 2019-07-11 41 */
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 42 static inline pte_t *pte_alloc_one_kernel_noprof(struct mm_struct *mm)
5fba4af4456b5d Mike Rapoport 2019-07-11 43 {
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 44 return __pte_alloc_one_kernel_noprof(mm);
5fba4af4456b5d Mike Rapoport 2019-07-11 45 }
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 46 #define pte_alloc_one_kernel(...) alloc_hooks(pte_alloc_one_kernel_noprof(__VA_ARGS__))
5fba4af4456b5d Mike Rapoport 2019-07-11 47 #endif
5fba4af4456b5d Mike Rapoport 2019-07-11 48
5fba4af4456b5d Mike Rapoport 2019-07-11 49 /**
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 50) * pte_free_kernel - free PTE-level kernel page table memory
5fba4af4456b5d Mike Rapoport 2019-07-11 51 * @mm: the mm_struct of the current context
5fba4af4456b5d Mike Rapoport 2019-07-11 52 * @pte: pointer to the memory containing the page table
5fba4af4456b5d Mike Rapoport 2019-07-11 53 */
5fba4af4456b5d Mike Rapoport 2019-07-11 54 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte)
5fba4af4456b5d Mike Rapoport 2019-07-11 55 {
49f5996664201a Kevin Brodsky 2025-04-08 @56 pagetable_dtor_free(virt_to_ptdesc(pte));
5fba4af4456b5d Mike Rapoport 2019-07-11 57 }
5fba4af4456b5d Mike Rapoport 2019-07-11 58
5fba4af4456b5d Mike Rapoport 2019-07-11 59 /**
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 60) * __pte_alloc_one - allocate memory for a PTE-level user page table
5fba4af4456b5d Mike Rapoport 2019-07-11 61 * @mm: the mm_struct of the current context
5fba4af4456b5d Mike Rapoport 2019-07-11 62 * @gfp: GFP flags to use for the allocation
5fba4af4456b5d Mike Rapoport 2019-07-11 63 *
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 64) * Allocate memory for a page table and ptdesc and runs pagetable_pte_ctor().
5fba4af4456b5d Mike Rapoport 2019-07-11 65 *
5fba4af4456b5d Mike Rapoport 2019-07-11 66 * This function is intended for architectures that need
5fba4af4456b5d Mike Rapoport 2019-07-11 67 * anything beyond simple page allocation or must have custom GFP flags.
5fba4af4456b5d Mike Rapoport 2019-07-11 68 *
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 69) * Return: `struct page` referencing the ptdesc or %NULL on error
5fba4af4456b5d Mike Rapoport 2019-07-11 70 */
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 71 static inline pgtable_t __pte_alloc_one_noprof(struct mm_struct *mm, gfp_t gfp)
5fba4af4456b5d Mike Rapoport 2019-07-11 72 {
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 73) struct ptdesc *ptdesc;
5fba4af4456b5d Mike Rapoport 2019-07-11 74
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 @75 ptdesc = pagetable_alloc_noprof(gfp, 0);
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 76) if (!ptdesc)
5fba4af4456b5d Mike Rapoport 2019-07-11 77 return NULL;
d82d3bf4115217 Kevin Brodsky 2025-04-08 78 if (!pagetable_pte_ctor(mm, ptdesc)) {
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 79) pagetable_free(ptdesc);
5fba4af4456b5d Mike Rapoport 2019-07-11 80 return NULL;
5fba4af4456b5d Mike Rapoport 2019-07-11 81 }
5fba4af4456b5d Mike Rapoport 2019-07-11 82
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 83) return ptdesc_page(ptdesc);
5fba4af4456b5d Mike Rapoport 2019-07-11 84 }
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 85 #define __pte_alloc_one(...) alloc_hooks(__pte_alloc_one_noprof(__VA_ARGS__))
5fba4af4456b5d Mike Rapoport 2019-07-11 86
:::::: The code at line 21 was first introduced by commit
:::::: 2c321f3f70bc284510598f712b702ce8d60c4d14 mm: change inlined allocation helpers to account at the call site
:::::: TO: Suren Baghdasaryan <surenb@google.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:[~2025-12-04 9:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-04 9:03 [morimoto:renesas-android/v6.18-rc6-2025-12-01 1/1] include/asm-generic/pgalloc.h:21:26: error: call to undeclared function 'pagetable_alloc_noprof'; ISO C99 and later do not support implicit function declarations 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