tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 
device_h_splitup
head:   3faaa7db6e6cb1d64da7778d1a4076b923277558
commit: c0ff8d9b83c875831cb030576dc9a087202c3f41 [3/7] device.h: move devtmpfs 
prototypes out of the file
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.5.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout c0ff8d9b83c875831cb030576dc9a087202c3f41
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=ia64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <l...@intel.com>

All errors (new ones prefixed by >>):

   init/do_mounts.c: In function 'prepare_namespace':
>> init/do_mounts.c:689:2: error: too few arguments to function 'devtmpfs_mount'
     devtmpfs_mount();
     ^~~~~~~~~~~~~~
   In file included from include/linux/cdev.h:8:0,
                    from include/linux/tty_driver.h:245,
                    from include/linux/tty.h:9,
                    from init/do_mounts.c:6:
   include/linux/device.h:1667:12: note: declared here
    extern int devtmpfs_mount(const char *mntdir);
               ^~~~~~~~~~~~~~

vim +/devtmpfs_mount +689 init/do_mounts.c

^1da177e4c3f41 Linus Torvalds     2005-04-16  632  
^1da177e4c3f41 Linus Torvalds     2005-04-16  633  /*
^1da177e4c3f41 Linus Torvalds     2005-04-16  634   * Prepare the namespace - 
decide what/where to mount, load ramdisks, etc.
^1da177e4c3f41 Linus Torvalds     2005-04-16  635   */
^1da177e4c3f41 Linus Torvalds     2005-04-16  636  void __init 
prepare_namespace(void)
^1da177e4c3f41 Linus Torvalds     2005-04-16  637  {
^1da177e4c3f41 Linus Torvalds     2005-04-16  638       int is_floppy;
^1da177e4c3f41 Linus Torvalds     2005-04-16  639  
^1da177e4c3f41 Linus Torvalds     2005-04-16  640       if (root_delay) {
^1da177e4c3f41 Linus Torvalds     2005-04-16  641               
printk(KERN_INFO "Waiting %d sec before mounting root device...\n",
^1da177e4c3f41 Linus Torvalds     2005-04-16  642                      
root_delay);
^1da177e4c3f41 Linus Torvalds     2005-04-16  643               
ssleep(root_delay);
^1da177e4c3f41 Linus Torvalds     2005-04-16  644       }
^1da177e4c3f41 Linus Torvalds     2005-04-16  645  
216773a787c3c4 Arjan van de Ven   2009-02-14  646       /*
216773a787c3c4 Arjan van de Ven   2009-02-14  647        * wait for the known 
devices to complete their probing
216773a787c3c4 Arjan van de Ven   2009-02-14  648        *
216773a787c3c4 Arjan van de Ven   2009-02-14  649        * Note: this is a 
potential source of long boot delays.
216773a787c3c4 Arjan van de Ven   2009-02-14  650        * For example, it is 
not atypical to wait 5 seconds here
216773a787c3c4 Arjan van de Ven   2009-02-14  651        * for the touchpad of 
a laptop to initialize.
216773a787c3c4 Arjan van de Ven   2009-02-14  652        */
216773a787c3c4 Arjan van de Ven   2009-02-14  653       wait_for_device_probe();
d779249ed4cb3b Greg Kroah-Hartman 2006-07-18  654  
^1da177e4c3f41 Linus Torvalds     2005-04-16  655       md_run_setup();
^1da177e4c3f41 Linus Torvalds     2005-04-16  656  
^1da177e4c3f41 Linus Torvalds     2005-04-16  657       if (saved_root_name[0]) 
{
^1da177e4c3f41 Linus Torvalds     2005-04-16  658               
root_device_name = saved_root_name;
2d62f488585405 Adrian Hunter      2008-01-31  659               if 
(!strncmp(root_device_name, "mtd", 3) ||
2d62f488585405 Adrian Hunter      2008-01-31  660                   
!strncmp(root_device_name, "ubi", 3)) {
e9482b4374e259 Joern Engel        2006-05-30  661                       
mount_block_root(root_device_name, root_mountflags);
e9482b4374e259 Joern Engel        2006-05-30  662                       goto 
out;
e9482b4374e259 Joern Engel        2006-05-30  663               }
^1da177e4c3f41 Linus Torvalds     2005-04-16  664               ROOT_DEV = 
name_to_dev_t(root_device_name);
^1da177e4c3f41 Linus Torvalds     2005-04-16  665               if 
(strncmp(root_device_name, "/dev/", 5) == 0)
^1da177e4c3f41 Linus Torvalds     2005-04-16  666                       
root_device_name += 5;
^1da177e4c3f41 Linus Torvalds     2005-04-16  667       }
^1da177e4c3f41 Linus Torvalds     2005-04-16  668  
^1da177e4c3f41 Linus Torvalds     2005-04-16  669       if (initrd_load())
^1da177e4c3f41 Linus Torvalds     2005-04-16  670               goto out;
^1da177e4c3f41 Linus Torvalds     2005-04-16  671  
cc1ed7542c8c26 Pierre Ossman      2007-07-15  672       /* wait for any 
asynchronous scanning to complete */
cc1ed7542c8c26 Pierre Ossman      2007-07-15  673       if ((ROOT_DEV == 0) && 
root_wait) {
cc1ed7542c8c26 Pierre Ossman      2007-07-15  674               
printk(KERN_INFO "Waiting for root device %s...\n",
cc1ed7542c8c26 Pierre Ossman      2007-07-15  675                       
saved_root_name);
cc1ed7542c8c26 Pierre Ossman      2007-07-15  676               while 
(driver_probe_done() != 0 ||
cc1ed7542c8c26 Pierre Ossman      2007-07-15  677                       
(ROOT_DEV = name_to_dev_t(saved_root_name)) == 0)
39a0e975c37dee Jungseung Lee      2016-12-12  678                       
msleep(5);
216773a787c3c4 Arjan van de Ven   2009-02-14  679               
async_synchronize_full();
cc1ed7542c8c26 Pierre Ossman      2007-07-15  680       }
cc1ed7542c8c26 Pierre Ossman      2007-07-15  681  
cc1ed7542c8c26 Pierre Ossman      2007-07-15  682       is_floppy = 
MAJOR(ROOT_DEV) == FLOPPY_MAJOR;
cc1ed7542c8c26 Pierre Ossman      2007-07-15  683  
^1da177e4c3f41 Linus Torvalds     2005-04-16  684       if (is_floppy && 
rd_doload && rd_load_disk(0))
^1da177e4c3f41 Linus Torvalds     2005-04-16  685               ROOT_DEV = 
Root_RAM0;
^1da177e4c3f41 Linus Torvalds     2005-04-16  686  
^1da177e4c3f41 Linus Torvalds     2005-04-16  687       mount_root();
^1da177e4c3f41 Linus Torvalds     2005-04-16  688  out:
5e787dbf659fe7 Dominik Brodowski  2018-10-23 @689       devtmpfs_mount();
cccaa5e33525fc Dominik Brodowski  2018-10-23  690       do_mount(".", "/", 
NULL, MS_MOVE, NULL);
a16fe33ab5572e Dominik Brodowski  2018-03-11  691       ksys_chroot(".");
^1da177e4c3f41 Linus Torvalds     2005-04-16  692  }
57f150a58c40cd Rob Landley        2013-09-11  693  

:::::: The code at line 689 was first introduced by commit
:::::: 5e787dbf659fe77d56215be74044f85e01b3920f devtmpfs: use do_mount() 
instead of ksys_mount()

:::::: TO: Dominik Brodowski <li...@dominikbrodowski.net>
:::::: CC: Dominik Brodowski <li...@dominikbrodowski.net>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to