[driver-core:device_h_splitup 3/7] drivers//base/devtmpfs.c:362:5: error: conflicting types for 'devtmpfs_mount'
kbuild test robot
lkp at intel.com
Tue Dec 17 00:30:42 UTC 2019
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 <lkp at intel.com>
All errors (new ones prefixed by >>):
>> drivers//base/devtmpfs.c:362:5: error: conflicting types for 'devtmpfs_mount'
int devtmpfs_mount(void)
^~~~~~~~~~~~~~
In file included from include/linux/node.h:18:0,
from include/linux/cpu.h:17,
from include/linux/perf_event.h:50,
from include/linux/trace_events.h:10,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:85,
from drivers//base/devtmpfs.c:17:
include/linux/device.h:1667:12: note: previous declaration of 'devtmpfs_mount' was here
extern int devtmpfs_mount(const char *mntdir);
^~~~~~~~~~~~~~
vim +/devtmpfs_mount +362 drivers//base/devtmpfs.c
2b2af54a5bb6f7 Kay Sievers 2009-04-30 357
2b2af54a5bb6f7 Kay Sievers 2009-04-30 358 /*
2b2af54a5bb6f7 Kay Sievers 2009-04-30 359 * If configured, or requested by the commandline, devtmpfs will be
2b2af54a5bb6f7 Kay Sievers 2009-04-30 360 * auto-mounted after the kernel mounted the root filesystem.
2b2af54a5bb6f7 Kay Sievers 2009-04-30 361 */
5e787dbf659fe7 Dominik Brodowski 2018-10-23 @362 int devtmpfs_mount(void)
2b2af54a5bb6f7 Kay Sievers 2009-04-30 363 {
2b2af54a5bb6f7 Kay Sievers 2009-04-30 364 int err;
2b2af54a5bb6f7 Kay Sievers 2009-04-30 365
fc14f2fef682df Al Viro 2010-07-25 366 if (!mount_dev)
2b2af54a5bb6f7 Kay Sievers 2009-04-30 367 return 0;
2b2af54a5bb6f7 Kay Sievers 2009-04-30 368
2780f1ff6aec0c Al Viro 2011-06-27 369 if (!thread)
2b2af54a5bb6f7 Kay Sievers 2009-04-30 370 return 0;
2b2af54a5bb6f7 Kay Sievers 2009-04-30 371
5e787dbf659fe7 Dominik Brodowski 2018-10-23 372 err = do_mount("devtmpfs", "dev", "devtmpfs", MS_SILENT, NULL);
2b2af54a5bb6f7 Kay Sievers 2009-04-30 373 if (err)
2b2af54a5bb6f7 Kay Sievers 2009-04-30 374 printk(KERN_INFO "devtmpfs: error mounting %i\n", err);
2b2af54a5bb6f7 Kay Sievers 2009-04-30 375 else
2b2af54a5bb6f7 Kay Sievers 2009-04-30 376 printk(KERN_INFO "devtmpfs: mounted\n");
2b2af54a5bb6f7 Kay Sievers 2009-04-30 377 return err;
2b2af54a5bb6f7 Kay Sievers 2009-04-30 378 }
2b2af54a5bb6f7 Kay Sievers 2009-04-30 379
:::::: The code at line 362 was first introduced by commit
:::::: 5e787dbf659fe77d56215be74044f85e01b3920f devtmpfs: use do_mount() instead of ksys_mount()
:::::: TO: Dominik Brodowski <linux at dominikbrodowski.net>
:::::: CC: Dominik Brodowski <linux at dominikbrodowski.net>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 55721 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20191217/5d9e1d65/attachment-0001.bin>
More information about the devel
mailing list