Hi Todd, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] [also build test ERROR on next-20180718] [cannot apply to v4.18-rc5] [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/Todd-Poynor/staging-gasket-remove-X86-Kconfig-restriction/20180716-031056 config: xtensa-allmodconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 8.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree GCC_VERSION=8.1.0 make.cross ARCH=xtensa All errors (new ones prefixed by >>): In file included from drivers/staging/gasket/gasket_page_table.h:19, from drivers/staging/gasket/gasket_page_table.c:34: drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_read_64': >> drivers/staging/gasket/gasket_core.h:651:9: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration] return readq(&gasket_dev->bar_data[bar].virt_base[location]); ^~~~~ readl drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_write_64': >> drivers/staging/gasket/gasket_core.h:657:2: error: implicit declaration of function 'writeq'; did you mean 'writel'? [-Werror=implicit-function-declaration] writeq(value, &dev->bar_data[bar].virt_base[location]); ^~~~~~ writel drivers/staging/gasket/gasket_page_table.c: In function 'gasket_is_extended_dev_addr_bad': drivers/staging/gasket/gasket_page_table.c:1373:11: warning: right shift count >= width of type [-Wshift-count-overflow] if (addr >> (GASKET_EXTENDED_LVL0_WIDTH + GASKET_EXTENDED_LVL0_SHIFT)) { ^~ drivers/staging/gasket/gasket_page_table.c: In function 'gasket_alloc_coherent_memory': drivers/staging/gasket/gasket_page_table.c:1679:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (u64)mem + j * PAGE_SIZE; ^ cc1: some warnings being treated as errors -- In file included from drivers/staging/gasket/gasket_sysfs.h:21, from drivers/staging/gasket/gasket_sysfs.c:3: drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_read_64': >> drivers/staging/gasket/gasket_core.h:651:9: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration] return readq(&gasket_dev->bar_data[bar].virt_base[location]); ^~~~~ readl drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_write_64': >> drivers/staging/gasket/gasket_core.h:657:2: error: implicit declaration of function 'writeq'; did you mean 'writel'? [-Werror=implicit-function-declaration] writeq(value, &dev->bar_data[bar].virt_base[location]); ^~~~~~ writel cc1: some warnings being treated as errors -- In file included from drivers/staging/gasket/gasket_ioctl.h:6, from drivers/staging/gasket/gasket_ioctl.c:4: drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_read_64': >> drivers/staging/gasket/gasket_core.h:651:9: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration] return readq(&gasket_dev->bar_data[bar].virt_base[location]); ^~~~~ readl drivers/staging/gasket/gasket_core.h: In function 'gasket_dev_write_64': >> drivers/staging/gasket/gasket_core.h:657:2: error: implicit declaration of function 'writeq'; did you mean 'writel'? [-Werror=implicit-function-declaration] writeq(value, &dev->bar_data[bar].virt_base[location]); ^~~~~~ writel drivers/staging/gasket/gasket_ioctl.c: In function 'gasket_config_coherent_allocator': >> drivers/staging/gasket/gasket_ioctl.c:434:27: error: passing argument 3 of 'gasket_alloc_coherent_memory' from incompatible pointer type [-Werror=incompatible-pointer-types] gasket_dev, ibuf.size, &ibuf.dma_address, ^~~~~~~~~~~~~~~~~ In file included from drivers/staging/gasket/gasket_ioctl.c:9: drivers/staging/gasket/gasket_page_table.h:227:18: note: expected 'dma_addr_t *' {aka 'unsigned int *'} but argument is of type 'u64 *' {aka 'long long unsigned int *'} dma_addr_t *dma_address, uint64_t index); ~~~~~~~~~~~~^~~~~~~~~~~ cc1: some warnings being treated as errors vim +651 drivers/staging/gasket/gasket_core.h 9a69f508 Simon Que 2018-06-29 620 9a69f508 Simon Que 2018-06-29 621 /* 9a69f508 Simon Que 2018-06-29 622 * Memory management functions. These will likely be spun off into their own 9a69f508 Simon Que 2018-06-29 623 * file in the future. 9a69f508 Simon Que 2018-06-29 624 */ 9a69f508 Simon Que 2018-06-29 625 9a69f508 Simon Que 2018-06-29 626 /* Unmaps the specified mappable region from a VMA. */ 9a69f508 Simon Que 2018-06-29 627 int gasket_mm_unmap_region( 9a69f508 Simon Que 2018-06-29 628 const struct gasket_dev *gasket_dev, struct vm_area_struct *vma, 9a69f508 Simon Que 2018-06-29 629 const struct gasket_mappable_region *map_region); 9a69f508 Simon Que 2018-06-29 630 9a69f508 Simon Que 2018-06-29 631 /* 9a69f508 Simon Que 2018-06-29 632 * Get the ioctl permissions callback. 9a69f508 Simon Que 2018-06-29 633 * @gasket_dev: Gasket device structure. 9a69f508 Simon Que 2018-06-29 634 */ 9a69f508 Simon Que 2018-06-29 635 gasket_ioctl_permissions_cb_t gasket_get_ioctl_permissions_cb( 9a69f508 Simon Que 2018-06-29 636 struct gasket_dev *gasket_dev); 9a69f508 Simon Que 2018-06-29 637 9a69f508 Simon Que 2018-06-29 638 /** 9a69f508 Simon Que 2018-06-29 639 * Lookup a name by number in a num_name table. 9a69f508 Simon Que 2018-06-29 640 * @num: Number to lookup. 9a69f508 Simon Que 2018-06-29 641 * @table: Array of num_name structures, the table for the lookup. 9a69f508 Simon Que 2018-06-29 642 * 9a69f508 Simon Que 2018-06-29 643 */ 9a69f508 Simon Que 2018-06-29 644 const char *gasket_num_name_lookup( 9a69f508 Simon Que 2018-06-29 645 uint num, const struct gasket_num_name *table); 9a69f508 Simon Que 2018-06-29 646 9a69f508 Simon Que 2018-06-29 647 /* Handy inlines */ 9a69f508 Simon Que 2018-06-29 648 static inline ulong gasket_dev_read_64( 9a69f508 Simon Que 2018-06-29 649 struct gasket_dev *gasket_dev, int bar, ulong location) 9a69f508 Simon Que 2018-06-29 650 { 9a69f508 Simon Que 2018-06-29 @651 return readq(&gasket_dev->bar_data[bar].virt_base[location]); 9a69f508 Simon Que 2018-06-29 652 } 9a69f508 Simon Que 2018-06-29 653 9a69f508 Simon Que 2018-06-29 654 static inline void gasket_dev_write_64( 9a69f508 Simon Que 2018-06-29 655 struct gasket_dev *dev, u64 value, int bar, ulong location) 9a69f508 Simon Que 2018-06-29 656 { 9a69f508 Simon Que 2018-06-29 @657 writeq(value, &dev->bar_data[bar].virt_base[location]); 9a69f508 Simon Que 2018-06-29 658 } 9a69f508 Simon Que 2018-06-29 659 :::::: The code at line 651 was first introduced by commit :::::: 9a69f5087ccc20bb411025decab455836df04168 drivers/staging: Gasket driver framework + Apex driver :::::: TO: Simon Que <sque@xxxxxxxxxxxx> :::::: CC: Greg Kroah-Hartman <gregkh@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
_______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel