[driver-core:driver-core-testing 29/33] include/linux/platform_device.h:75:40: error: unknown type name 'irq_handler_t'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-testing
head:   fa802fde315b87157f6d7c5dfe5d926bdb97d6e4
commit: 4f4e9ddba1225e2dcdd08ac91f1e82aaca51f2b8 [29/33] drivers: provide devm_platform_request_irq()
config: h8300-randconfig-r034-20200907 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 4f4e9ddba1225e2dcdd08ac91f1e82aaca51f2b8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   In file included from include/linux/irqchip.h:17,
                    from arch/h8300/include/asm/irq.h:5,
                    from include/linux/irq.h:23,
                    from include/asm-generic/hardirq.h:13,
                    from ./arch/h8300/include/generated/asm/hardirq.h:1,
                    from include/linux/hardirq.h:10,
                    from include/linux/interrupt.h:11,
                    from include/linux/kernel_stat.h:9,
                    from arch/h8300/kernel/asm-offsets.c:14:
>> include/linux/platform_device.h:75:40: error: unknown type name 'irq_handler_t'
      75 |   unsigned int num, unsigned int *irq, irq_handler_t handler,
         |                                        ^~~~~~~~~~~~~
   make[2]: *** [scripts/Makefile.build:117: arch/h8300/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1202: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:185: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.

# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=4f4e9ddba1225e2dcdd08ac91f1e82aaca51f2b8
git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
git fetch --no-tags driver-core driver-core-testing
git checkout 4f4e9ddba1225e2dcdd08ac91f1e82aaca51f2b8
vim +/irq_handler_t +75 include/linux/platform_device.h

    53	
    54	extern struct resource *platform_get_resource(struct platform_device *,
    55						      unsigned int, unsigned int);
    56	extern struct device *
    57	platform_find_device_by_driver(struct device *start,
    58				       const struct device_driver *drv);
    59	extern void __iomem *
    60	devm_platform_get_and_ioremap_resource(struct platform_device *pdev,
    61					unsigned int index, struct resource **res);
    62	extern void __iomem *
    63	devm_platform_ioremap_resource(struct platform_device *pdev,
    64				       unsigned int index);
    65	extern void __iomem *
    66	devm_platform_ioremap_resource_wc(struct platform_device *pdev,
    67					  unsigned int index);
    68	extern void __iomem *
    69	devm_platform_ioremap_resource_byname(struct platform_device *pdev,
    70					      const char *name);
    71	extern int platform_get_irq(struct platform_device *, unsigned int);
    72	extern int platform_get_irq_optional(struct platform_device *, unsigned int);
    73	extern int platform_irq_count(struct platform_device *);
    74	extern int devm_platform_request_irq(struct platform_device *pdev,
  > 75			unsigned int num, unsigned int *irq, irq_handler_t handler,
    76			unsigned long irqflags, const char *devname, void *dev_id);
    77	extern struct resource *platform_get_resource_byname(struct platform_device *,
    78							     unsigned int,
    79							     const char *);
    80	extern int platform_get_irq_byname(struct platform_device *, const char *);
    81	extern int platform_get_irq_byname_optional(struct platform_device *dev,
    82						    const char *name);
    83	extern int platform_add_devices(struct platform_device **, int);
    84	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux