[PATCH v2 1/3] drm: Extract drm_debug.[hc]
kbuild test robot
lkp at intel.com
Fri Oct 13 01:57:21 UTC 2017
Hi Haneen,
[auto build test WARNING on drm/drm-next]
[also build test WARNING on v4.14-rc4 next-20171009]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Haneen-Mohammed/drm-Move-debug-macros-out-of-drmP-h/20171013-055510
base: git://people.freedesktop.org/~airlied/linux.git drm-next
config: i386-randconfig-c0-10130904 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/drm_debug.c:27:0:
>> include/drm/drm_debug.h:40:7: warning: 'struct device' declared inside parameter list
const char *prefix, const char *format, ...);
^
>> include/drm/drm_debug.h:40:7: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/gpu/drm/drm_debug.c:32:6: error: conflicting types for 'drm_dev_printk'
void drm_dev_printk(const struct device *dev, const char *level,
^
In file included from drivers/gpu/drm/drm_debug.c:27:0:
include/drm/drm_debug.h:38:6: note: previous declaration of 'drm_dev_printk' was here
void drm_dev_printk(const struct device *dev, const char *level,
^
--
In file included from drivers/gpu//drm/drm_debug.c:27:0:
>> include/drm/drm_debug.h:40:7: warning: 'struct device' declared inside parameter list
const char *prefix, const char *format, ...);
^
>> include/drm/drm_debug.h:40:7: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/gpu//drm/drm_debug.c:32:6: error: conflicting types for 'drm_dev_printk'
void drm_dev_printk(const struct device *dev, const char *level,
^
In file included from drivers/gpu//drm/drm_debug.c:27:0:
include/drm/drm_debug.h:38:6: note: previous declaration of 'drm_dev_printk' was here
void drm_dev_printk(const struct device *dev, const char *level,
^
vim +40 include/drm/drm_debug.h
36
37 __printf(6, 7)
38 void drm_dev_printk(const struct device *dev, const char *level,
39 unsigned int category, const char *function_name,
> 40 const char *prefix, const char *format, ...);
41 __printf(3, 4)
42 void drm_printk(const char *level, unsigned int category,
43 const char *format, ...);
44
---
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: 26366 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20171013/4d01ebba/attachment-0001.gz>
More information about the dri-devel
mailing list