dbason / crystalhd

Broadcom Crystal HD Hardware Decoder (BCM70012/70015) driver on Ubuntu
39 stars 11 forks source link

Cannot compile with kernel.4.8 in Ubuntu 16.10 yakkety #9

Closed dimez closed 7 years ago

dimez commented 8 years ago
DKMS make.log for crystalhd-3.10.0 for kernel 4.8.0-22-generic (x86_64)
Sat Oct 15 00:28:07 MSK 2016
checking for ld... ld
configure: creating ./config.status
config.status: creating ./Makefile
make -C /lib/modules/4.8.0-22-generic/build SUBDIRS=/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux modules
make[1]: вход в каталог «/usr/src/linux-headers-4.8.0-22-generic»
  CC [M]  /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.o
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:788:8: error: type defaults to ‘int’ in declaration of ‘DEFINE_PCI_DEVICE_TABLE’ [-Werror=implicit-int]
 static DEFINE_PCI_DEVICE_TABLE(chd_dec_pci_id_table) = {
        ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:788:1: error: parameter names (without types) in function declaration [-Werror]
 static DEFINE_PCI_DEVICE_TABLE(chd_dec_pci_id_table) = {
 ^~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:788:1: error: function ‘DEFINE_PCI_DEVICE_TABLE’ is initialized like a variable
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:2: error: braces around scalar initializer [-Werror]
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
In file included from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:39:0,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/pci.h:738:2: error: field name not in record or union initializer
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:738:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
In file included from ./include/linux/pci.h:35:0,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:39,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/pci_ids.h:2136:33: error: invalid initializer
 #define PCI_VENDOR_ID_BROADCOM  0x14e4
                                 ^
./include/linux/pci.h:738:12: note: in expansion of macro ‘PCI_VENDOR_ID_BROADCOM’
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
            ^~~~~~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/pci_ids.h:2136:33: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
 #define PCI_VENDOR_ID_BROADCOM  0x14e4
                                 ^
./include/linux/pci.h:738:12: note: in expansion of macro ‘PCI_VENDOR_ID_BROADCOM’
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
            ^~~~~~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
In file included from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:39:0,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/pci.h:738:34: error: field name not in record or union initializer
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
                                  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:738:34: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
                                  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:738:44: error: excess elements in scalar initializer [-Werror]
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
                                            ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:738:44: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
                                            ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:2: error: field name not in record or union initializer
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
In file included from ./include/linux/i2c.h:29:0,
                 from ./include/uapi/linux/fb.h:5,
                 from ./include/linux/fb.h:5,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:38,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/mod_devicetable.h:16:20: error: excess elements in scalar initializer [-Werror]
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:739:15: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
               ^~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/mod_devicetable.h:16:20: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:739:15: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
               ^~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
In file included from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:39:0,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/pci.h:739:27: error: field name not in record or union initializer
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                           ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:27: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                           ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
In file included from ./include/linux/i2c.h:29:0,
                 from ./include/uapi/linux/fb.h:5,
                 from ./include/linux/fb.h:5,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:38,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/mod_devicetable.h:16:20: error: excess elements in scalar initializer [-Werror]
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:739:40: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                        ^~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/mod_devicetable.h:16:20: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:739:40: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                        ^~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
In file included from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:39:0,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/pci.h:739:52: error: excess elements in scalar initializer [-Werror]
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                                    ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:52: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                                    ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:55: error: excess elements in scalar initializer [-Werror]
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                                       ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:55: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                                       ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
    ^~~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:35: error: excess elements in scalar initializer [-Werror]
  { PCI_VDEVICE(BROADCOM, 0x1612), 8 },
                                   ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:789:35: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:2: error: braces around scalar initializer [-Werror]
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
In file included from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:39:0,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/pci.h:738:2: error: field name not in record or union initializer
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:738:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
In file included from ./include/linux/pci.h:35:0,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:39,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/pci_ids.h:2136:33: error: invalid initializer
 #define PCI_VENDOR_ID_BROADCOM  0x14e4
                                 ^
./include/linux/pci.h:738:12: note: in expansion of macro ‘PCI_VENDOR_ID_BROADCOM’
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
            ^~~~~~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/pci_ids.h:2136:33: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
 #define PCI_VENDOR_ID_BROADCOM  0x14e4
                                 ^
./include/linux/pci.h:738:12: note: in expansion of macro ‘PCI_VENDOR_ID_BROADCOM’
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
            ^~~~~~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
In file included from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:39:0,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/pci.h:738:34: error: field name not in record or union initializer
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
                                  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:738:34: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
                                  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:738:44: error: excess elements in scalar initializer [-Werror]
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
                                            ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:738:44: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = PCI_VENDOR_ID_##vend, .device = (dev), \
                                            ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:2: error: field name not in record or union initializer
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
In file included from ./include/linux/i2c.h:29:0,
                 from ./include/uapi/linux/fb.h:5,
                 from ./include/linux/fb.h:5,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:38,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/mod_devicetable.h:16:20: error: excess elements in scalar initializer [-Werror]
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:739:15: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
               ^~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/mod_devicetable.h:16:20: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:739:15: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
               ^~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
In file included from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:39:0,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/pci.h:739:27: error: field name not in record or union initializer
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                           ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:27: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                           ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
In file included from ./include/linux/i2c.h:29:0,
                 from ./include/uapi/linux/fb.h:5,
                 from ./include/linux/fb.h:5,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:38,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/mod_devicetable.h:16:20: error: excess elements in scalar initializer [-Werror]
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:739:40: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                        ^~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/mod_devicetable.h:16:20: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:739:40: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                        ^~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
In file included from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:39:0,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
./include/linux/pci.h:739:52: error: excess elements in scalar initializer [-Werror]
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                                    ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:52: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                                    ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:55: error: excess elements in scalar initializer [-Werror]
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                                       ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
./include/linux/pci.h:739:55: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                                       ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:4: note: in expansion of macro ‘PCI_VDEVICE’
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
    ^~~~~~~~~~~
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:35: error: excess elements in scalar initializer [-Werror]
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
                                   ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:35: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:2: error: excess elements in scalar initializer [-Werror]
  { PCI_VDEVICE(BROADCOM, 0x1615), 8 },
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:790:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:791:2: error: braces around scalar initializer [-Werror]
  { 0, },
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:791:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:791:4: error: invalid initializer
  { 0, },
    ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:791:4: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:791:2: error: excess elements in scalar initializer [-Werror]
  { 0, },
  ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:791:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
In file included from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.h:30:0,
                 from /var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:20:
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:801:26: error: ‘chd_dec_pci_id_table’ undeclared here (not in a function)
 MODULE_DEVICE_TABLE(pci, chd_dec_pci_id_table);
                          ^
./include/linux/module.h:213:21: note: in definition of macro ‘MODULE_DEVICE_TABLE’
 extern const typeof(name) **mod_##type##**##name##_device_table  \
                     ^~~~
./include/linux/module.h:213:27: error: ‘__mod_pci__chd_dec_pci_id_table_device_table’ aliased to undefined symbol ‘chd_dec_pci_id_table’
 extern const typeof(name) __mod_##type##__##name##_device_table  \
                           ^
/var/lib/dkms/crystalhd/3.10.0/build/crystalhd/driver/linux/crystalhd_lnx.c:801:1: note: in expansion of macro ‘MODULE_DEVICE_TABLE’
 MODULE_DEVICE_TABLE(pci, chd_dec_pci_id_table);
 ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
dbason commented 7 years ago

Which version of GCC are you using?

dbason commented 7 years ago

I've just merged a PR from @philipl so try pulling master and compiling now.

khseal commented 7 years ago

Cannot compile kernel 4.9.4 make -C /lib/modules/4.9.4-040904-generic/build SUBDIRS=/home/khseal/crystalhd/driver/linux modules make[1]: вход в каталог «/usr/src/linux-headers-4.9.4-040904-generic» CC [M] /home/khseal/crystalhd/driver/linux/crystalhd_lnx.o CC [M] /home/khseal/crystalhd/driver/linux/crystalhd_misc.o /home/khseal/crystalhd/driver/linux/crystalhd_misc.c: In function ‘crystalhd_map_dio’: /home/khseal/crystalhd/driver/linux/crystalhd_misc.c:658:12: error: passing argument 7 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 0, dio->pages, NULL); ^ In file included from /home/khseal/crystalhd/driver/linux/crystalhd_lnx.h:34:0, from /home/khseal/crystalhd/driver/linux/crystalhd_misc.c:30: ./include/linux/mm.h:1276:6: note: expected ‘struct vm_area_struct ’ but argument is of type ‘struct page ’ long get_user_pages_remote(struct task_struct tsk, struct mm_struct mm, ^ /home/khseal/crystalhd/driver/linux/crystalhd_misc.c:657:8: error: too many arguments to function ‘get_user_pages_remote’ res = get_user_pages_remote(current, current->mm, uaddr, nr_pages, rw == READ, ^ In file included from /home/khseal/crystalhd/driver/linux/crystalhd_lnx.h:34:0, from /home/khseal/crystalhd/driver/linux/crystalhd_misc.c:30: ./include/linux/mm.h:1276:6: note: declared here long get_user_pages_remote(struct task_struct tsk, struct mm_struct mm, ^ cc1: all warnings being treated as errors scripts/Makefile.build:293: ошибка выполнения рецепта для цели «/home/khseal/crystalhd/driver/linux/crystalhd_misc.o» make[2]: *** [/home/khseal/crystalhd/driver/linux/crystalhd_misc.o] Ошибка 1

gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

philipl commented 7 years ago

Well, yes. 4.9 requires different changes. This issue was about 4.8.

khseal commented 7 years ago

I used the 4.8 Kernel and are not compiled. Errors were similar.

dimez commented 7 years ago

I've just merged a PR from @philipl so try pulling master and compiling now.

Thank you! All ok now.