From: kernel test robot <lkp@intel.com>
To: Joshua Hahn <joshua.hahnjy@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>,
Gregory Price <gourry@gourry.net>,
Hyeonggon Yoo <42.hyeyoo@gmail.com>
Subject: [linux-next:master 2995/3437] mm/mempolicy.c:207:undefined reference to `__udivdi3'
Date: Thu, 13 Feb 2025 17:12:52 +0800 [thread overview]
Message-ID: <202502131750.RyXsm23v-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 7b7a883c7f4de1ee5040bd1c32aabaafde54d209
commit: aab5f6eb05fd382835c042853bb0a44198aba71f [2995/3437] mm/mempolicy: Weighted Interleave Auto-tuning
config: sh-randconfig-r051-20250213 (https://download.01.org/0day-ci/archive/20250213/202502131750.RyXsm23v-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250213/202502131750.RyXsm23v-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/202502131750.RyXsm23v-lkp@intel.com/
All errors (new ones prefixed by >>):
sh4-linux-ld: kernel/sched/build_utility.o: in function `housekeeping_any_cpu':
kernel/sched/isolation.c:56:(.text+0x5ac): undefined reference to `sched_numa_find_closest'
sh4-linux-ld: mm/mempolicy.o: in function `reduce_interleave_weights':
>> mm/mempolicy.c:207:(.text+0x460): undefined reference to `__udivdi3'
vim +207 mm/mempolicy.c
166
167 /*
168 * Convert bandwidth values into weighted interleave weights.
169 * Call with iw_table_lock.
170 */
171 static void reduce_interleave_weights(uint64_t *bw, u8 *new_iw)
172 {
173 uint64_t sum_bw = 0, sum_iw = 0;
174 uint64_t scaling_factor = 1, iw_gcd = 1;
175 unsigned int i = 0;
176
177 /* Recalculate the bandwidth distribution given the new info */
178 for (i = 0; i < nr_node_ids; i++)
179 sum_bw += bw[i];
180
181 /* If node is not set or has < 1% of total bw, use minimum value of 1 */
182 for (i = 0; i < nr_node_ids; i++) {
183 if (bw[i]) {
184 scaling_factor = 100 * bw[i];
185 new_iw[i] = max(scaling_factor / sum_bw, 1);
186 } else {
187 new_iw[i] = 1;
188 }
189 sum_iw += new_iw[i];
190 }
191
192 /*
193 * Scale each node's share of the total bandwidth from percentages
194 * to whole numbers in the range [1, weightiness]
195 */
196 for (i = 0; i < nr_node_ids; i++) {
197 scaling_factor = weightiness * new_iw[i];
198 new_iw[i] = max(scaling_factor / sum_iw, 1);
199 if (i == 0)
200 iw_gcd = new_iw[0];
201 iw_gcd = gcd(iw_gcd, new_iw[i]);
202 }
203
204 /* 1:2 is strictly better than 16:32. Reduce by the weights' GCD. */
205 for (i = 0; i < nr_node_ids; i++)
206 new_iw[i] /= iw_gcd;
> 207 }
208
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-02-13 9:13 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=202502131750.RyXsm23v-lkp@intel.com \
--to=lkp@intel.com \
--cc=42.hyeyoo@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=gourry@gourry.net \
--cc=joshua.hahnjy@gmail.com \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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