* [koverstreet-bcachefs:latency_debug 83/84] 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-03-24 23:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-24 23:02 UTC (permalink / raw)
To: Kent Overstreet; +Cc: llvm, oe-kbuild-all
tree: https://github.com/koverstreet/bcachefs latency_debug
head: bd176ff969fbde282f5e3335fe3e45e341427941
commit: a415e1f10898f9cb706c57814655cfe578cd8374 [83/84] sched_wakeup_backtrace debugfs
config: hexagon-randconfig-001-20250325 (https://download.01.org/0day-ci/archive/20250325/202503250702.svWeQpn1-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250325/202503250702.svWeQpn1-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/202503250702.svWeQpn1-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/timestats_bt.c:6:
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]
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]
struct ptdesc *ptdesc = pagetable_alloc_noprof(GFP_PGTABLE_KERNEL &
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/asm-generic/pgalloc.h:26:9: error: call to undeclared function 'ptdesc_address'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
return ptdesc_address(ptdesc);
^
>> include/asm-generic/pgalloc.h:26:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'pte_t *' [-Wint-conversion]
return ptdesc_address(ptdesc);
^~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/pgalloc.h:51:2: error: call to undeclared function 'pagetable_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
pagetable_free(virt_to_ptdesc(pte));
^
>> include/asm-generic/pgalloc.h:51:17: error: call to undeclared function 'virt_to_ptdesc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
pagetable_free(virt_to_ptdesc(pte));
^
include/asm-generic/pgalloc.h:51:17: note: did you mean 'irq_to_desc'?
include/linux/irqnr.h:10:25: note: 'irq_to_desc' declared here
extern struct irq_desc *irq_to_desc(unsigned int irq);
^
In file included from kernel/sched/timestats_bt.c:6:
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:70:11: error: call to undeclared function 'pagetable_alloc_noprof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ptdesc = pagetable_alloc_noprof(gfp, 0);
^
include/asm-generic/pgalloc.h:70:9: error: incompatible integer to pointer conversion assigning to 'struct ptdesc *' from 'int' [-Wint-conversion]
ptdesc = pagetable_alloc_noprof(gfp, 0);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/pgalloc.h:73:7: error: call to undeclared function 'pagetable_pte_ctor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (!pagetable_pte_ctor(ptdesc)) {
^
include/asm-generic/pgalloc.h:74:3: error: call to undeclared function 'pagetable_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
pagetable_free(ptdesc);
^
include/asm-generic/pgalloc.h:112:2: error: call to undeclared function 'pagetable_dtor_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
pagetable_dtor_free(ptdesc);
^
include/asm-generic/pgalloc.h:270:11: error: call to undeclared function 'pagetable_alloc_noprof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ptdesc = pagetable_alloc_noprof(gfp, order);
^
include/asm-generic/pgalloc.h:270:9: error: incompatible integer to pointer conversion assigning to 'struct ptdesc *' from 'int' [-Wint-conversion]
ptdesc = pagetable_alloc_noprof(gfp, order);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/pgalloc.h:274:2: error: call to undeclared function 'pagetable_pgd_ctor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
pagetable_pgd_ctor(ptdesc);
^
include/asm-generic/pgalloc.h:275:9: error: call to undeclared function 'ptdesc_address'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
return ptdesc_address(ptdesc);
^
include/asm-generic/pgalloc.h:275:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'pgd_t *' [-Wint-conversion]
return ptdesc_address(ptdesc);
^~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/pgalloc.h:281:26: error: call to undeclared function 'virt_to_ptdesc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
struct ptdesc *ptdesc = virt_to_ptdesc(pgd);
^
include/asm-generic/pgalloc.h:281:17: error: incompatible integer to pointer conversion initializing 'struct ptdesc *' with an expression of type 'int' [-Wint-conversion]
struct ptdesc *ptdesc = virt_to_ptdesc(pgd);
^ ~~~~~~~~~~~~~~~~~~~
include/asm-generic/pgalloc.h:284:2: error: call to undeclared function 'pagetable_dtor_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
pagetable_dtor_free(ptdesc);
^
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;
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 @26) return ptdesc_address(ptdesc);
5fba4af4456b5d Mike Rapoport 2019-07-11 27 }
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 28 #define __pte_alloc_one_kernel(...) alloc_hooks(__pte_alloc_one_kernel_noprof(__VA_ARGS__))
5fba4af4456b5d Mike Rapoport 2019-07-11 29
5fba4af4456b5d Mike Rapoport 2019-07-11 30 #ifndef __HAVE_ARCH_PTE_ALLOC_ONE_KERNEL
5fba4af4456b5d Mike Rapoport 2019-07-11 31 /**
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 32) * pte_alloc_one_kernel - allocate memory for a PTE-level kernel page table
5fba4af4456b5d Mike Rapoport 2019-07-11 33 * @mm: the mm_struct of the current context
5fba4af4456b5d Mike Rapoport 2019-07-11 34 *
5fba4af4456b5d Mike Rapoport 2019-07-11 35 * Return: pointer to the allocated memory or %NULL on error
5fba4af4456b5d Mike Rapoport 2019-07-11 36 */
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 37 static inline pte_t *pte_alloc_one_kernel_noprof(struct mm_struct *mm)
5fba4af4456b5d Mike Rapoport 2019-07-11 38 {
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 39 return __pte_alloc_one_kernel_noprof(mm);
5fba4af4456b5d Mike Rapoport 2019-07-11 40 }
2c321f3f70bc28 Suren Baghdasaryan 2024-04-14 41 #define pte_alloc_one_kernel(...) alloc_hooks(pte_alloc_one_kernel_noprof(__VA_ARGS__))
5fba4af4456b5d Mike Rapoport 2019-07-11 42 #endif
5fba4af4456b5d Mike Rapoport 2019-07-11 43
5fba4af4456b5d Mike Rapoport 2019-07-11 44 /**
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 45) * pte_free_kernel - free PTE-level kernel page table memory
5fba4af4456b5d Mike Rapoport 2019-07-11 46 * @mm: the mm_struct of the current context
5fba4af4456b5d Mike Rapoport 2019-07-11 47 * @pte: pointer to the memory containing the page table
5fba4af4456b5d Mike Rapoport 2019-07-11 48 */
5fba4af4456b5d Mike Rapoport 2019-07-11 49 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte)
5fba4af4456b5d Mike Rapoport 2019-07-11 50 {
c787ae5b391496 Vishal Moola (Oracle 2023-08-07 @51) pagetable_free(virt_to_ptdesc(pte));
5fba4af4456b5d Mike Rapoport 2019-07-11 52 }
5fba4af4456b5d Mike Rapoport 2019-07-11 53
:::::: 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-03-24 23:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-24 23:02 [koverstreet-bcachefs:latency_debug 83/84] 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