All of lore.kernel.org
 help / color / mirror / Atom feed
* [luto:sched/lazymm 4/14] kernel/kthread.c:1328:47: error: no member named 'membarrier_state' in 'struct mm_struct'
@ 2021-07-01  3:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-01  3:37 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3960 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: riscv-randconfig-r013-20210630 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e7e71e9454ed76c1b3d8140170b5333c28bef1be)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # 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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=riscv 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:1328:47: error: no member named 'membarrier_state' in 'struct mm_struct'
           membarrier_finish_switch_mm(atomic_read(&mm->membarrier_state));
                                                    ~~  ^
   1 error generated.
--
   kernel/sched/core.c:2850:6: warning: no previous prototype for function 'sched_set_stop_task' [-Wmissing-prototypes]
   void sched_set_stop_task(int cpu, struct task_struct *stop)
        ^
   kernel/sched/core.c:2850:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void sched_set_stop_task(int cpu, struct task_struct *stop)
   ^
   static 
>> kernel/sched/core.c:4316:35: error: no member named 'membarrier_state' in 'struct rq'
                   membarrier_finish_switch_mm(rq->membarrier_state);
                                               ~~  ^
   1 warning and 1 error generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for LOCKDEP
   Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
   Selected by
   - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT


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: 23823 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-01  3:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-01  3:37 [luto:sched/lazymm 4/14] kernel/kthread.c:1328:47: error: no member named 'membarrier_state' in 'struct mm_struct' 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.