tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup head: 2af10af50dae1d4154ed0053ac8bd15d773b86e4 commit: 2f52245a70e7911407dfbea078f1a012764f8a42 [3/13] drm: make .debugfs_init and drm_debugfs_create_files() return void config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gcc (GCC) 7.4.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 2f52245a70e7911407dfbea078f1a012764f8a42 # save the attached .config to linux build tree GCC_VERSION=7.4.0 make.cross ARCH=sparc64 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All error/warnings (new ones prefixed by >>): >> drivers/gpu/drm/drm_mipi_dbi.c:1311:6: error: conflicting types for 'mipi_dbi_debugfs_init' void mipi_dbi_debugfs_init(struct drm_minor *minor) ^~~~~~~~~~~~~~~~~~~~~ In file included from drivers/gpu/drm/drm_mipi_dbi.c:23:0: include/drm/drm_mipi_dbi.h:183:5: note: previous declaration of 'mipi_dbi_debugfs_init' was here int mipi_dbi_debugfs_init(struct drm_minor *minor); ^~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/linkage.h:7:0, from include/linux/fs.h:5, from include/linux/debugfs.h:15, from drivers/gpu/drm/drm_mipi_dbi.c:8: drivers/gpu/drm/drm_mipi_dbi.c:1321:15: error: conflicting types for 'mipi_dbi_debugfs_init' EXPORT_SYMBOL(mipi_dbi_debugfs_init); ^ include/linux/export.h:106:21: note: in definition of macro '___export_symbol_common' extern typeof(sym) sym; \ ^~~ include/linux/export.h:173:34: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL(sym,sec) ___EXPORT_SYMBOL(sym,sec) ^~~~~~~~~~~~~~~~ include/linux/export.h:183:29: note: in expansion of macro '__EXPORT_SYMBOL' #define EXPORT_SYMBOL(sym) __EXPORT_SYMBOL(sym, "") ^~~~~~~~~~~~~~~ >> drivers/gpu/drm/drm_mipi_dbi.c:1321:1: note: in expansion of macro 'EXPORT_SYMBOL' EXPORT_SYMBOL(mipi_dbi_debugfs_init); ^~~~~~~~~~~~~ In file included from drivers/gpu/drm/drm_mipi_dbi.c:23:0: include/drm/drm_mipi_dbi.h:183:5: note: previous declaration of 'mipi_dbi_debugfs_init' was here int mipi_dbi_debugfs_init(struct drm_minor *minor); ^~~~~~~~~~~~~~~~~~~~~ -- >> drivers/gpu/drm/tiny/hx8357d.c:200:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .debugfs_init = mipi_dbi_debugfs_init, ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tiny/hx8357d.c:200:19: note: (near initialization for 'hx8357d_driver.debugfs_init') cc1: some warnings being treated as errors -- >> drivers/gpu/drm/tiny/ili9341.c:156:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .debugfs_init = mipi_dbi_debugfs_init, ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tiny/ili9341.c:156:19: note: (near initialization for 'ili9341_driver.debugfs_init') cc1: some warnings being treated as errors -- >> drivers/gpu/drm/tiny/mi0283qt.c:160:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .debugfs_init = mipi_dbi_debugfs_init, ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tiny/mi0283qt.c:160:19: note: (near initialization for 'mi0283qt_driver.debugfs_init') cc1: some warnings being treated as errors -- >> drivers/gpu/drm/tiny/st7586.c:298:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .debugfs_init = mipi_dbi_debugfs_init, ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tiny/st7586.c:298:19: note: (near initialization for 'st7586_driver.debugfs_init') cc1: some warnings being treated as errors -- >> drivers/gpu/drm/tiny/st7735r.c:130:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .debugfs_init = mipi_dbi_debugfs_init, ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tiny/st7735r.c:130:19: note: (near initialization for 'st7735r_driver.debugfs_init') cc1: some warnings being treated as errors vim +/mipi_dbi_debugfs_init +1311 drivers/gpu/drm/drm_mipi_dbi.c 1302 1303 /** 1304 * mipi_dbi_debugfs_init - Create debugfs entries 1305 * @minor: DRM minor 1306 * 1307 * This function creates a 'command' debugfs file for sending commands to the 1308 * controller or getting the read command values. 1309 * Drivers can use this as their &drm_driver->debugfs_init callback. 1310 */ > 1311 void mipi_dbi_debugfs_init(struct drm_minor *minor) 1312 { 1313 struct mipi_dbi_dev *dbidev = drm_to_mipi_dbi_dev(minor->dev); 1314 umode_t mode = S_IFREG | S_IWUSR; 1315 1316 if (dbidev->dbi.read_commands) 1317 mode |= S_IRUGO; 1318 debugfs_create_file("command", mode, minor->debugfs_root, dbidev, 1319 &mipi_dbi_debugfs_command_fops); 1320 } > 1321 EXPORT_SYMBOL(mipi_dbi_debugfs_init); 1322 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel