From: kernel test robot <lkp@intel.com>
To: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Mike Rapoport <rppt@kernel.org>
Subject: [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'?
Date: Sat, 20 Dec 2025 22:59:07 +0800 [thread overview]
Message-ID: <202512202240.GHqlQPrw-lkp@intel.com> (raw)
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
reply other threads:[~2025-12-20 14:59 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=202512202240.GHqlQPrw-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rppt@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox