From: kernel test robot <lkp@intel.com>
To: Oreoluwa Babatunde <oreoluwa.babatunde@oss.qualcomm.com>,
robh@kernel.org, m.szyprowski@samsung.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
saravanak@google.com, robin.murphy@arm.com,
quic_obabatun@quicinc.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, iommu@lists.linux.dev,
william.zhang@broadcom.com, kernel@oss.qualcomm.com,
will@kernel.org, djakov@kernel.org,
Oreoluwa Babatunde <oreoluwa.babatunde@oss.qualcomm.com>
Subject: Re: [PATCH] of: reserved_mem: Restructure call site for dma_contiguous_early_fixup()
Date: Wed, 9 Jul 2025 16:38:07 +0800 [thread overview]
Message-ID: <202507091614.ZsQ9sH7n-lkp@intel.com> (raw)
In-Reply-To: <20250708165627.845295-1-oreoluwa.babatunde@oss.qualcomm.com>
Hi Oreoluwa,
kernel test robot noticed the following build errors:
[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v6.16-rc5 next-20250708]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Oreoluwa-Babatunde/of-reserved_mem-Restructure-call-site-for-dma_contiguous_early_fixup/20250709-005858
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20250708165627.845295-1-oreoluwa.babatunde%40oss.qualcomm.com
patch subject: [PATCH] of: reserved_mem: Restructure call site for dma_contiguous_early_fixup()
config: i386-buildonly-randconfig-003-20250709 (https://download.01.org/0day-ci/archive/20250709/202507091614.ZsQ9sH7n-lkp@intel.com/config)
compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250709/202507091614.ZsQ9sH7n-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/202507091614.ZsQ9sH7n-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/of/of_reserved_mem.c:182:5: error: call to undeclared function 'dma_contiguous_early_fixup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
182 | dma_contiguous_early_fixup(base, size);
| ^
drivers/of/of_reserved_mem.c:482:3: error: call to undeclared function 'dma_contiguous_early_fixup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
482 | dma_contiguous_early_fixup(base, size);
| ^
2 errors generated.
vim +/dma_contiguous_early_fixup +182 drivers/of/of_reserved_mem.c
150
151 /*
152 * __reserved_mem_reserve_reg() - reserve all memory described in 'reg' property
153 */
154 static int __init __reserved_mem_reserve_reg(unsigned long node,
155 const char *uname)
156 {
157 int t_len = (dt_root_addr_cells + dt_root_size_cells) * sizeof(__be32);
158 phys_addr_t base, size;
159 int len;
160 const __be32 *prop;
161 bool nomap;
162
163 prop = of_get_flat_dt_prop(node, "reg", &len);
164 if (!prop)
165 return -ENOENT;
166
167 if (len && len % t_len != 0) {
168 pr_err("Reserved memory: invalid reg property in '%s', skipping node.\n",
169 uname);
170 return -EINVAL;
171 }
172
173 nomap = of_get_flat_dt_prop(node, "no-map", NULL) != NULL;
174
175 while (len >= t_len) {
176 base = dt_mem_next_cell(dt_root_addr_cells, &prop);
177 size = dt_mem_next_cell(dt_root_size_cells, &prop);
178
179 if (size && early_init_dt_reserve_memory(base, size, nomap) == 0) {
180 /* Architecture specific contiguous memory fixup. */
181 if (of_flat_dt_is_compatible(node, "shared-dma-pool"))
> 182 dma_contiguous_early_fixup(base, size);
183
184 pr_debug("Reserved memory: reserved region for node '%s': base %pa, size %lu MiB\n",
185 uname, &base, (unsigned long)(size / SZ_1M));
186 } else {
187 pr_err("Reserved memory: failed to reserve memory for node '%s': base %pa, size %lu MiB\n",
188 uname, &base, (unsigned long)(size / SZ_1M));
189 }
190
191 len -= t_len;
192 }
193 return 0;
194 }
195
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-07-09 8:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-08 16:56 Oreoluwa Babatunde
2025-07-08 17:17 ` Robin Murphy
2025-07-08 22:39 ` Oreoluwa Babatunde
2025-07-09 8:38 ` kernel test robot [this message]
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=202507091614.ZsQ9sH7n-lkp@intel.com \
--to=lkp@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=djakov@kernel.org \
--cc=iommu@lists.linux.dev \
--cc=kernel@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=m.szyprowski@samsung.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oreoluwa.babatunde@oss.qualcomm.com \
--cc=quic_obabatun@quicinc.com \
--cc=robh@kernel.org \
--cc=robin.murphy@arm.com \
--cc=saravanak@google.com \
--cc=will@kernel.org \
--cc=william.zhang@broadcom.com \
/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
all inboxes | Powered by JetHome®