* [luto:sched/lazymm 4/14] kernel/kthread.c:1328:45: error: 'struct mm_struct' has no member named 'membarrier_state'
@ 2021-06-30 21:04 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-30 21:04 UTC (permalink / raw
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3085 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git sched/lazymm
head: 717e171609e72e2f3362c56eab7732cb2e08d2f7
commit: 23acc5c0beb85dd411c8588ca927ceb24a0ec22e [4/14] membarrier: Make the post-switch-mm barrier explicit
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?id=23acc5c0beb85dd411c8588ca927ceb24a0ec22e
git remote add luto https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git
git fetch --no-tags luto sched/lazymm
git checkout 23acc5c0beb85dd411c8588ca927ceb24a0ec22e
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/kthread.c: In function 'kthread_use_mm':
>> kernel/kthread.c:1328:45: error: 'struct mm_struct' has no member named 'membarrier_state'
1328 | membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
| ^~
--
kernel/sched/core.c: In function 'ttwu_stat':
kernel/sched/core.c:2916:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
2916 | struct rq *rq;
| ^~
kernel/sched/core.c: In function 'context_switch':
>> kernel/sched/core.c:4316:33: error: 'struct rq' has no member named 'membarrier_state'
4316 | membarrier_finish_switch_mm(rq->membarrier_state);
| ^~
vim +1328 kernel/kthread.c
1304
1305 /**
1306 * kthread_use_mm - make the calling kthread operate on an address space
1307 * @mm: address space to operate on
1308 */
1309 void kthread_use_mm(struct mm_struct *mm)
1310 {
1311 struct mm_struct *active_mm;
1312 struct task_struct *tsk = current;
1313
1314 WARN_ON_ONCE(!(tsk->flags & PF_KTHREAD));
1315 WARN_ON_ONCE(tsk->mm);
1316
1317 task_lock(tsk);
1318 /* Hold off tlb flush IPIs while switching mm's */
1319 local_irq_disable();
1320 active_mm = tsk->active_mm;
1321 if (active_mm != mm) {
1322 mmgrab(mm);
1323 tsk->active_mm = mm;
1324 }
1325 tsk->mm = mm;
1326 membarrier_update_current_mm(mm);
1327 switch_mm_irqs_off(active_mm, mm, tsk);
> 1328 membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
1329 local_irq_enable();
1330 task_unlock(tsk);
1331 #ifdef finish_arch_post_lock_switch
1332 finish_arch_post_lock_switch();
1333 #endif
1334
1335 if (active_mm != mm)
1336 mmdrop(active_mm);
1337
1338 to_kthread(tsk)->oldfs = force_uaccess_begin();
1339 }
1340 EXPORT_SYMBOL_GPL(kthread_use_mm);
1341
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 7413 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-30 21:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-30 21:04 [luto:sched/lazymm 4/14] kernel/kthread.c:1328:45: error: 'struct mm_struct' has no member named 'membarrier_state' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.