Re: [PATCH 05/12] mfd: flexcard: add DMA interrupts

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

 



Hi Holger,

[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on v4.9]
[cannot apply to ljones-mfd/for-mfd-next next-20161213]
[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/Holger-Dengler/Eberspaecher-Flexcard-PMC-II-base-support/20161214-082350
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/mfd/flexcard_irq.c: In function 'flexcard_demux':
   drivers/mfd/flexcard_irq.c:135:3: error: implicit declaration of function 'generic_handle_irq' [-Werror=implicit-function-declaration]
      generic_handle_irq(cur);
      ^~~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c: In function 'flexcard_irq_ack':
   drivers/mfd/flexcard_irq.c:143:33: error: implicit declaration of function 'irq_data_get_irq_chip_data' [-Werror=implicit-function-declaration]
     struct flexcard_device *priv = irq_data_get_irq_chip_data(d);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:143:33: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
   drivers/mfd/flexcard_irq.c:144:51: error: dereferencing pointer to incomplete type 'struct irq_data'
     const struct fc_irq_tab *tp = &flexcard_irq_tab[d->hwirq];
                                                      ^~
   drivers/mfd/flexcard_irq.c: In function 'flexcard_irq_mask':
   drivers/mfd/flexcard_irq.c:152:33: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     struct flexcard_device *priv = irq_data_get_irq_chip_data(d);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c: In function 'flexcard_irq_unmask':
   drivers/mfd/flexcard_irq.c:165:33: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     struct flexcard_device *priv = irq_data_get_irq_chip_data(d);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c: At top level:
   drivers/mfd/flexcard_irq.c:199:15: error: variable 'flexcard_irq_chip' has initializer but incomplete type
    static struct irq_chip flexcard_irq_chip = {
                  ^~~~~~~~
   drivers/mfd/flexcard_irq.c:200:2: error: unknown field 'name' specified in initializer
     .name  = "flexcard_irq",
     ^
   drivers/mfd/flexcard_irq.c:200:11: warning: excess elements in struct initializer
     .name  = "flexcard_irq",
              ^~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:200:11: note: (near initialization for 'flexcard_irq_chip')
   drivers/mfd/flexcard_irq.c:201:2: error: unknown field 'irq_ack' specified in initializer
     .irq_ack = flexcard_irq_ack,
     ^
   drivers/mfd/flexcard_irq.c:201:13: warning: excess elements in struct initializer
     .irq_ack = flexcard_irq_ack,
                ^~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:201:13: note: (near initialization for 'flexcard_irq_chip')
   drivers/mfd/flexcard_irq.c:202:2: error: unknown field 'irq_mask' specified in initializer
     .irq_mask = flexcard_irq_mask,
     ^
   drivers/mfd/flexcard_irq.c:202:14: warning: excess elements in struct initializer
     .irq_mask = flexcard_irq_mask,
                 ^~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:202:14: note: (near initialization for 'flexcard_irq_chip')
   drivers/mfd/flexcard_irq.c:203:2: error: unknown field 'irq_unmask' specified in initializer
     .irq_unmask = flexcard_irq_unmask,
     ^
   drivers/mfd/flexcard_irq.c:203:16: warning: excess elements in struct initializer
     .irq_unmask = flexcard_irq_unmask,
                   ^~~~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:203:16: note: (near initialization for 'flexcard_irq_chip')
   drivers/mfd/flexcard_irq.c: In function 'flexcard_irq_domain_map':
   drivers/mfd/flexcard_irq.c:211:2: error: implicit declaration of function 'irq_set_chip_and_handler_name' [-Werror=implicit-function-declaration]
     irq_set_chip_and_handler_name(irq, &flexcard_irq_chip,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:212:11: error: 'handle_level_irq' undeclared (first use in this function)
              handle_level_irq, "flexcard");
              ^~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:212:11: note: each undeclared identifier is reported only once for each function it appears in
   drivers/mfd/flexcard_irq.c:213:2: error: implicit declaration of function 'irq_set_chip_data' [-Werror=implicit-function-declaration]
     irq_set_chip_data(irq, priv);
     ^~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:214:2: error: implicit declaration of function 'irq_modify_status' [-Werror=implicit-function-declaration]
     irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
     ^~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:214:25: error: 'IRQ_NOREQUEST' undeclared (first use in this function)
     irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
                            ^~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:214:41: error: 'IRQ_NOAUTOEN' undeclared (first use in this function)
     irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
                                            ^~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:214:55: error: 'IRQ_NOPROBE' undeclared (first use in this function)
     irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
                                                          ^~~~~~~~~~~
   drivers/mfd/flexcard_irq.c: At top level:
>> drivers/mfd/flexcard_irq.c:223:15: error: variable 'flexcard_dma_irq_chip' has initializer but incomplete type
    static struct irq_chip flexcard_dma_irq_chip = {
                  ^~~~~~~~
   drivers/mfd/flexcard_irq.c:224:2: error: unknown field 'name' specified in initializer
     .name  = "flexcard_dma_irq",
     ^
   drivers/mfd/flexcard_irq.c:224:11: warning: excess elements in struct initializer
     .name  = "flexcard_dma_irq",
              ^~~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:224:11: note: (near initialization for 'flexcard_dma_irq_chip')
   drivers/mfd/flexcard_irq.c:225:2: error: unknown field 'irq_ack' specified in initializer
     .irq_ack = flexcard_irq_ack,
     ^
   drivers/mfd/flexcard_irq.c:225:13: warning: excess elements in struct initializer
     .irq_ack = flexcard_irq_ack,
                ^~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:225:13: note: (near initialization for 'flexcard_dma_irq_chip')
   drivers/mfd/flexcard_irq.c:226:2: error: unknown field 'irq_mask' specified in initializer
     .irq_mask = flexcard_irq_mask,
     ^
   drivers/mfd/flexcard_irq.c:226:14: warning: excess elements in struct initializer
     .irq_mask = flexcard_irq_mask,
                 ^~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:226:14: note: (near initialization for 'flexcard_dma_irq_chip')
   drivers/mfd/flexcard_irq.c:227:2: error: unknown field 'irq_unmask' specified in initializer
     .irq_unmask = flexcard_irq_unmask,
     ^
   drivers/mfd/flexcard_irq.c:227:16: warning: excess elements in struct initializer
     .irq_unmask = flexcard_irq_unmask,
                   ^~~~~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:227:16: note: (near initialization for 'flexcard_dma_irq_chip')
   drivers/mfd/flexcard_irq.c: In function 'flexcard_dma_irq_domain_map':
   drivers/mfd/flexcard_irq.c:236:11: error: 'handle_level_irq' undeclared (first use in this function)
              handle_level_irq, "flexcard-dma");
              ^~~~~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:238:25: error: 'IRQ_NOREQUEST' undeclared (first use in this function)
     irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
                            ^~~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:238:41: error: 'IRQ_NOAUTOEN' undeclared (first use in this function)
     irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
                                            ^~~~~~~~~~~~
   drivers/mfd/flexcard_irq.c:238:55: error: 'IRQ_NOPROBE' undeclared (first use in this function)
     irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
                                                          ^~~~~~~~~~~
   drivers/mfd/flexcard_irq.c: At top level:
   drivers/mfd/flexcard_irq.c:199:24: error: storage size of 'flexcard_irq_chip' isn't known
    static struct irq_chip flexcard_irq_chip = {
                           ^~~~~~~~~~~~~~~~~
>> drivers/mfd/flexcard_irq.c:223:24: error: storage size of 'flexcard_dma_irq_chip' isn't known
    static struct irq_chip flexcard_dma_irq_chip = {
                           ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/flexcard_dma_irq_chip +223 drivers/mfd/flexcard_irq.c

   208	{
   209		struct flexcard_device *priv = d->host_data;
   210	
   211		irq_set_chip_and_handler_name(irq, &flexcard_irq_chip,
   212					      handle_level_irq, "flexcard");
   213		irq_set_chip_data(irq, priv);
 > 214		irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
   215	
   216		return 0;
   217	}
   218	
   219	static const struct irq_domain_ops flexcard_irq_domain_ops = {
   220		.map = flexcard_irq_domain_map,
   221	};
   222	
 > 223	static struct irq_chip flexcard_dma_irq_chip = {
   224		.name		= "flexcard_dma_irq",
   225		.irq_ack	= flexcard_irq_ack,
   226		.irq_mask	= flexcard_irq_mask,
   227		.irq_unmask	= flexcard_irq_unmask,
   228	};
   229	
   230	static int flexcard_dma_irq_domain_map(struct irq_domain *d, unsigned int irq,
   231					       irq_hw_number_t hw)
   232	{
   233		struct flexcard_device *priv = d->host_data;
   234	
   235		irq_set_chip_and_handler_name(irq, &flexcard_dma_irq_chip,
   236					      handle_level_irq, "flexcard-dma");
   237		irq_set_chip_data(irq, priv);
 > 238		irq_modify_status(irq, IRQ_NOREQUEST | IRQ_NOAUTOEN, IRQ_NOPROBE);
   239	
   240		return 0;
   241	}

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux