Hi Nicolas,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc6 next-20170202]
[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/Nicolas-Dichtel/uapi-export-all-headers-under-uapi-directories/20170202-213944
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   In file included from drivers/media/media-device.c:30:0:
   drivers/media/media-device.c: In function 'media_device_get_info':
>> include/uapi/linux/media.h:32:27: error: implicit declaration of function 
>> 'KERNEL_VERSION' [-Werror=implicit-function-declaration]
    #define MEDIA_API_VERSION KERNEL_VERSION(0, 1, 0)
                              ^
>> drivers/media/media-device.c:76:24: note: in expansion of macro 
>> 'MEDIA_API_VERSION'
     info->media_version = MEDIA_API_VERSION;
                           ^~~~~~~~~~~~~~~~~
   drivers/media/media-device.c: In function 'media_device_pci_init':
>> drivers/media/media-device.c:841:25: error: 'LINUX_VERSION_CODE' undeclared 
>> (first use in this function)
     mdev->driver_version = LINUX_VERSION_CODE;
                            ^~~~~~~~~~~~~~~~~~
   drivers/media/media-device.c:841:25: note: each undeclared identifier is 
reported only once for each function it appears in
   drivers/media/media-device.c: In function '__media_device_usb_init':
   drivers/media/media-device.c:870:25: error: 'LINUX_VERSION_CODE' undeclared 
(first use in this function)
     mdev->driver_version = LINUX_VERSION_CODE;
                            ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/KERNEL_VERSION +32 include/uapi/linux/media.h

b3b7a9f1 include/uapi/linux/media.h Mauro Carvalho Chehab 2015-12-11  26  
#ifndef __KERNEL__
b3b7a9f1 include/uapi/linux/media.h Mauro Carvalho Chehab 2015-12-11  27  
#include <stdint.h>
b3b7a9f1 include/uapi/linux/media.h Mauro Carvalho Chehab 2015-12-11  28  #endif
140d8816 include/linux/media.h      Laurent Pinchart      2010-08-18  29  
#include <linux/ioctl.h>
140d8816 include/linux/media.h      Laurent Pinchart      2010-08-18  30  
#include <linux/types.h>
140d8816 include/linux/media.h      Laurent Pinchart      2010-08-18  31  
140d8816 include/linux/media.h      Laurent Pinchart      2010-08-18 @32  
#define MEDIA_API_VERSION     KERNEL_VERSION(0, 1, 0)
140d8816 include/linux/media.h      Laurent Pinchart      2010-08-18  33  
140d8816 include/linux/media.h      Laurent Pinchart      2010-08-18  34  
struct media_device_info {
140d8816 include/linux/media.h      Laurent Pinchart      2010-08-18  35        
char driver[16];

:::::: The code at line 32 was first introduced by commit
:::::: 140d88165c25137e871f9559e67986ed89251105 [media] media: Media device 
information query

:::::: TO: Laurent Pinchart <laurent.pinch...@ideasonboard.com>
:::::: CC: Mauro Carvalho Chehab <mche...@redhat.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to