tree: https://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git master head: c99747f45ea976fac542766cf5b18faaff730221 commit: 9110bc036062fcd31994a35540d63f8deed22efa [9/10] thunderbolt: Use Device ROM retrieved from EFI config: x86_64-randconfig-h0-11130458 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: git checkout 9110bc036062fcd31994a35540d63f8deed22efa # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): drivers/firmware/efi/apple-properties.c: In function 'unmarshal_devices': >> drivers/firmware/efi/apple-properties.c:149:3: error: implicit declaration of function 'efi_get_device_by_path' [-Werror=implicit-function-declaration] dev = efi_get_device_by_path((struct efi_dev_path **)&ptr, &len); ^ drivers/firmware/efi/apple-properties.c:149:7: warning: assignment makes pointer from integer without a cast dev = efi_get_device_by_path((struct efi_dev_path **)&ptr, &len); ^ cc1: some warnings being treated as errors vim +/efi_get_device_by_path +149 drivers/firmware/efi/apple-properties.c 86375053 Lukas Wunner 2016-11-07 133 struct dev_header *dev_header = (void *)properties + offset; 86375053 Lukas Wunner 2016-11-07 134 struct property_entry *entry = NULL; 86375053 Lukas Wunner 2016-11-07 135 struct device *dev; 86375053 Lukas Wunner 2016-11-07 136 size_t len; 86375053 Lukas Wunner 2016-11-07 137 int ret, i; 86375053 Lukas Wunner 2016-11-07 138 void *ptr; 86375053 Lukas Wunner 2016-11-07 139 86375053 Lukas Wunner 2016-11-07 140 if (offset + dev_header->len > properties->len || 86375053 Lukas Wunner 2016-11-07 141 dev_header->len <= sizeof(*dev_header)) { 86375053 Lukas Wunner 2016-11-07 142 pr_err("invalid len in dev_header at %#zx\n", offset); 86375053 Lukas Wunner 2016-11-07 143 return -EINVAL; 86375053 Lukas Wunner 2016-11-07 144 } 86375053 Lukas Wunner 2016-11-07 145 86375053 Lukas Wunner 2016-11-07 146 ptr = dev_header->path; 86375053 Lukas Wunner 2016-11-07 147 len = dev_header->len - sizeof(*dev_header); 86375053 Lukas Wunner 2016-11-07 148 86375053 Lukas Wunner 2016-11-07 @149 dev = efi_get_device_by_path((struct efi_dev_path **)&ptr, &len); 86375053 Lukas Wunner 2016-11-07 150 if (IS_ERR(dev)) { 86375053 Lukas Wunner 2016-11-07 151 pr_err("device path parse error %ld at %#zx:\n", 86375053 Lukas Wunner 2016-11-07 152 PTR_ERR(dev), ptr - (void *)dev_header); 86375053 Lukas Wunner 2016-11-07 153 print_hex_dump(KERN_ERR, pr_fmt(), DUMP_PREFIX_OFFSET, 86375053 Lukas Wunner 2016-11-07 154 16, 1, dev_header, dev_header->len, true); 86375053 Lukas Wunner 2016-11-07 155 dev = NULL; 86375053 Lukas Wunner 2016-11-07 156 goto skip_device; 86375053 Lukas Wunner 2016-11-07 157 } :::::: The code at line 149 was first introduced by commit :::::: 8637505339fd15ec981b60cb1d720e6646329552 x86/efi: Retrieve and assign Apple device properties :::::: TO: Lukas Wunner <lukas@xxxxxxxxx> :::::: CC: Matt Fleming <matt@xxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip