[drm-intel:drm-intel-nightly 777/788] include/drm/drm_pci.h:76:64: warning: 'struct platform_device' declared inside parameter list

kbuild test robot fengguang.wu at intel.com
Thu Mar 9 17:59:32 UTC 2017


tree:   git://anongit.freedesktop.org/drm-intel drm-intel-nightly
head:   510c200742ced5a91d07e48220b669a3c9b30c0c
commit: 23ef59ef6dcc9b62bf077490a74df93b3bb0d530 [777/788] drm: Extract drm_pci.h
config: tile-tilegx_defconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 23ef59ef6dcc9b62bf077490a74df93b3bb0d530
        # save the attached .config to linux build tree
        make.cross ARCH=tile 

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/drm_pci.c:29:0:
>> include/drm/drm_pci.h:76:64: warning: 'struct platform_device' declared inside parameter list [enabled by default]
>> include/drm/drm_pci.h:76:64: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

vim +76 include/drm/drm_pci.h

    60	
    61	static inline int drm_pci_set_busid(struct drm_device *dev,
    62					    struct drm_master *master)
    63	{
    64		return -ENOSYS;
    65	}
    66	#endif
    67	
    68	#define DRM_PCIE_SPEED_25 1
    69	#define DRM_PCIE_SPEED_50 2
    70	#define DRM_PCIE_SPEED_80 4
    71	
    72	extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask);
    73	extern int drm_pcie_get_max_link_width(struct drm_device *dev, u32 *mlw);
    74	
    75	/* platform section */
  > 76	extern int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device);
    77	
    78	#endif /* _DRM_PCI_H_ */

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 16185 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170310/f9be8936/attachment.gz>


More information about the dri-devel mailing list