[pci:pci/host-xilinx 1/7] include/linux/pci-epf.h:53:25: error: field 'interrupt_pin' has incomplete type

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/host-xilinx
head:   95b008920fd38e828a37c8a7131b449d33ba03b9
commit: 13ff772beae556a664c029d5d75eaf7f3c104258 [1/7] PCI: Move enum pci_interrupt_pin to linux/pci.h
config: blackfin-allyesconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 13ff772beae556a664c029d5d75eaf7f3c104258
        # save the attached .config to linux build tree
        make.cross ARCH=blackfin 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/pci-epc.h:15:0,
                    from drivers/pci/endpoint/pci-ep-cfs.c:23:
>> include/linux/pci-epf.h:53:25: error: field 'interrupt_pin' has incomplete type
     enum pci_interrupt_pin interrupt_pin;
                            ^~~~~~~~~~~~~
   In file included from include/linux/bug.h:4:0,
                    from include/linux/thread_info.h:11,
                    from include/asm-generic/preempt.h:4,
                    from ./arch/blackfin/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:80,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/linux/stat.h:18,
                    from include/linux/module.h:10,
                    from drivers/pci/endpoint/pci-ep-cfs.c:20:
   drivers/pci/endpoint/pci-ep-cfs.c: In function 'pci_epf_interrupt_pin_show':
>> arch/blackfin/include/asm/bug.h:34:23: warning: control reaches end of non-void function [-Wreturn-type]
        "i"(sizeof(struct bug_entry)))
                          ^
>> arch/blackfin/include/asm/bug.h:62:4: note: in expansion of macro '_BUG_OR_WARN'
       _BUG_OR_WARN(BUGFLAG_WARNING);   \
       ^~~~~~~~~~~~
>> include/asm-generic/bug.h:137:3: note: in expansion of macro 'WARN_ON'
      WARN_ON(1);     \
      ^~~~~~~
>> drivers/pci/endpoint/pci-ep-cfs.c:220:6: note: in expansion of macro 'WARN_ON_ONCE'
     if (WARN_ON_ONCE(!epf->header))            \
         ^~~~~~~~~~~~
>> drivers/pci/endpoint/pci-ep-cfs.c:322:1: note: in expansion of macro 'PCI_EPF_HEADER_R'
    PCI_EPF_HEADER_R(interrupt_pin)
    ^~~~~~~~~~~~~~~~
--
   In file included from include/linux/pci-epc.h:15:0,
                    from drivers/pci/endpoint/pci-epc-core.c:25:
>> include/linux/pci-epf.h:53:25: error: field 'interrupt_pin' has incomplete type
     enum pci_interrupt_pin interrupt_pin;
                            ^~~~~~~~~~~~~
--
   In file included from include/linux/pci-epc.h:15:0,
                    from drivers/pci/endpoint/functions/pci-epf-test.c:28:
>> include/linux/pci-epf.h:53:25: error: field 'interrupt_pin' has incomplete type
     enum pci_interrupt_pin interrupt_pin;
                            ^~~~~~~~~~~~~
>> drivers/pci/endpoint/functions/pci-epf-test.c:74:19: error: 'PCI_INTERRUPT_INTA' undeclared here (not in a function)
     .interrupt_pin = PCI_INTERRUPT_INTA,
                      ^~~~~~~~~~~~~~~~~~

vim +/interrupt_pin +53 include/linux/pci-epf.h

5e8cb403 Kishon Vijay Abraham I 2017-04-10  29  
5e8cb403 Kishon Vijay Abraham I 2017-04-10  30  /**
5e8cb403 Kishon Vijay Abraham I 2017-04-10  31   * struct pci_epf_header - represents standard configuration header
5e8cb403 Kishon Vijay Abraham I 2017-04-10  32   * @vendorid: identifies device manufacturer
5e8cb403 Kishon Vijay Abraham I 2017-04-10  33   * @deviceid: identifies a particular device
5e8cb403 Kishon Vijay Abraham I 2017-04-10  34   * @revid: specifies a device-specific revision identifier
5e8cb403 Kishon Vijay Abraham I 2017-04-10  35   * @progif_code: identifies a specific register-level programming interface
5e8cb403 Kishon Vijay Abraham I 2017-04-10  36   * @subclass_code: identifies more specifically the function of the device
5e8cb403 Kishon Vijay Abraham I 2017-04-10  37   * @baseclass_code: broadly classifies the type of function the device performs
5e8cb403 Kishon Vijay Abraham I 2017-04-10  38   * @cache_line_size: specifies the system cacheline size in units of DWORDs
5e8cb403 Kishon Vijay Abraham I 2017-04-10  39   * @subsys_vendor_id: vendor of the add-in card or subsystem
5e8cb403 Kishon Vijay Abraham I 2017-04-10  40   * @subsys_id: id specific to vendor
5e8cb403 Kishon Vijay Abraham I 2017-04-10  41   * @interrupt_pin: interrupt pin the device (or device function) uses
5e8cb403 Kishon Vijay Abraham I 2017-04-10  42   */
5e8cb403 Kishon Vijay Abraham I 2017-04-10  43  struct pci_epf_header {
5e8cb403 Kishon Vijay Abraham I 2017-04-10  44  	u16	vendorid;
5e8cb403 Kishon Vijay Abraham I 2017-04-10  45  	u16	deviceid;
5e8cb403 Kishon Vijay Abraham I 2017-04-10  46  	u8	revid;
5e8cb403 Kishon Vijay Abraham I 2017-04-10  47  	u8	progif_code;
5e8cb403 Kishon Vijay Abraham I 2017-04-10  48  	u8	subclass_code;
5e8cb403 Kishon Vijay Abraham I 2017-04-10  49  	u8	baseclass_code;
5e8cb403 Kishon Vijay Abraham I 2017-04-10  50  	u8	cache_line_size;
5e8cb403 Kishon Vijay Abraham I 2017-04-10  51  	u16	subsys_vendor_id;
5e8cb403 Kishon Vijay Abraham I 2017-04-10  52  	u16	subsys_id;
5e8cb403 Kishon Vijay Abraham I 2017-04-10 @53  	enum pci_interrupt_pin interrupt_pin;
5e8cb403 Kishon Vijay Abraham I 2017-04-10  54  };
5e8cb403 Kishon Vijay Abraham I 2017-04-10  55  

:::::: The code at line 53 was first introduced by commit
:::::: 5e8cb4033807e39849b753e5399ec130c0995f1f PCI: endpoint: Add EP core layer to enable EP controller and EP functions

:::::: TO: Kishon Vijay Abraham I <kishon@xxxxxx>
:::::: CC: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>

---
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]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux