All of lore.kernel.org
 help / color / mirror / Atom feed
* [mark:arm64/uaccess/fixes 1/4] lib/usercopy_kunit.c:75: undefined reference to `insert_vm_struct'
@ 2023-03-17 18:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-17 18:38 UTC (permalink / raw)
  To: Mark Rutland; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/uaccess/fixes
head:   bcab174e50dd95f92848c50fdfec65390e201a4b
commit: ec0cb0c84a9b083ec60a9d601f96fdf1eac85bb6 [1/4] lib: test copy_{to,from}_user()
config: arm-randconfig-r021-20230315 (https://download.01.org/0day-ci/archive/20230318/202303180213.598v54KB-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=ec0cb0c84a9b083ec60a9d601f96fdf1eac85bb6
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/uaccess/fixes
        git checkout ec0cb0c84a9b083ec60a9d601f96fdf1eac85bb6
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303180213.598v54KB-lkp@intel.com/

All errors (new ones prefixed by >>):

   arm-linux-gnueabi-ld: lib/usercopy_kunit.o: in function `usercopy_mm_alloc':
>> lib/usercopy_kunit.c:75: undefined reference to `insert_vm_struct'


vim +75 lib/usercopy_kunit.c

    53	
    54	static void *usercopy_mm_alloc(struct usercopy_env *env)
    55	{
    56		struct mm_struct *mm;
    57		struct vm_area_struct *vma;
    58		mm = mm_alloc();
    59		if (!mm)
    60			return NULL;
    61	
    62		if (mmap_write_lock_killable(mm))
    63			goto out_free;
    64	
    65		vma = vm_area_alloc(mm);
    66		if (!vma)
    67			goto out_unlock;
    68	
    69		vma_set_anonymous(vma);
    70		vma->vm_start = UBUF_ADDR_BASE;
    71		vma->vm_end = UBUF_ADDR_BASE + PAGE_SIZE;
    72		vm_flags_init(vma, VM_READ | VM_MAYREAD | VM_WRITE | VM_MAYWRITE);
    73		vma->vm_page_prot = vm_get_page_prot(vma->vm_flags);
    74	
  > 75		if (insert_vm_struct(mm, vma))
    76			goto out_free_vma;
    77	
    78		mmap_write_unlock(mm);
    79		return mm;
    80	
    81	out_free_vma:
    82		vm_area_free(vma);
    83	out_unlock:
    84		mmap_write_unlock(mm);
    85	out_free:
    86		mmput(mm);
    87		return NULL;
    88	}
    89	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-03-17 18:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-17 18:38 [mark:arm64/uaccess/fixes 1/4] lib/usercopy_kunit.c:75: undefined reference to `insert_vm_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.