* [rppt:hugetlb-init/v0 15/26] arch/powerpc/mm/mem.c:223:19: error: use of undeclared identifier 'zone_dma_bits'; did you mean 'zone_dma_limit'?
@ 2025-12-20 14:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-20 14:59 UTC (permalink / raw)
To: Mike Rapoport (Microsoft); +Cc: llvm, oe-kbuild-all, Mike Rapoport
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git hugetlb-init/v0
head: 8f1fbf04ce5ef30eb770231992ca055d4f45e5a7
commit: c4213ce62b5b611f3c28bdd8be9b6f0b15130071 [15/26] powerpc: introduce arch_zone_limits_init()
config: powerpc-pmac32_defconfig (https://download.01.org/0day-ci/archive/20251220/202512202240.GHqlQPrw-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project b324c9f4fa112d61a553bf489b5f4f7ceea05ea8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512202240.GHqlQPrw-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/202512202240.GHqlQPrw-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/powerpc/mm/mem.c:223:19: error: use of undeclared identifier 'zone_dma_bits'; did you mean 'zone_dma_limit'?
223 | 1UL << (zone_dma_bits - PAGE_SHIFT));
| ^~~~~~~~~~~~~
| zone_dma_limit
include/linux/minmax.h:105:41: note: expanded from macro 'min'
105 | #define min(x, y) __careful_cmp(min, x, y)
| ^
include/linux/minmax.h:98:28: note: expanded from macro '__careful_cmp'
98 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_))
| ^
include/linux/minmax.h:92:28: note: expanded from macro '__careful_cmp_once'
92 | auto ux = (x); auto uy = (y); \
| ^
include/linux/dma-direct.h:15:12: note: 'zone_dma_limit' declared here
15 | extern u64 zone_dma_limit;
| ^
1 error generated.
vim +223 arch/powerpc/mm/mem.c
206
207 /*
208 * Zones usage:
209 *
210 * We setup ZONE_DMA to be 31-bits on all platforms and ZONE_NORMAL to be
211 * everything else. GFP_DMA32 page allocations automatically fall back to
212 * ZONE_DMA.
213 *
214 * By using 31-bit unconditionally, we can exploit zone_dma_limit to inform the
215 * generic DMA mapping code. 32-bit only devices (if not handled by an IOMMU
216 * anyway) will take a first dip into ZONE_NORMAL and get otherwise served by
217 * ZONE_DMA.
218 */
219 void __init arch_zone_limits_init(unsigned long *max_zone_pfns)
220 {
221 #ifdef CONFIG_ZONE_DMA
222 max_zone_pfns[ZONE_DMA] = min(max_low_pfn,
> 223 1UL << (zone_dma_bits - PAGE_SHIFT));
224 #endif
225 max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
226 #ifdef CONFIG_HIGHMEM
227 max_zone_pfns[ZONE_HIGHMEM] = max_pfn;
228 #endif
229 }
230
--
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-20 14:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-20 14:59 [rppt:hugetlb-init/v0 15/26] arch/powerpc/mm/mem.c:223:19: error: use of undeclared identifier 'zone_dma_bits'; did you mean 'zone_dma_limit'? 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