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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux