[pinctrl:devel 32/32] arch/blackfin/include/asm/portmux.h:26:41: error: expected identifier or '(' before numeric constant

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
head:   ab1a862e1f3cd9bf9b1df4fea7de907745808aac
commit: ab1a862e1f3cd9bf9b1df4fea7de907745808aac [32/32] blackfin: Fix local <asm/gpio.h> includes
config: blackfin-allyesconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout ab1a862e1f3cd9bf9b1df4fea7de907745808aac
        # save the attached .config to linux build tree
        make.cross ARCH=blackfin 

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

   arch/blackfin/kernel/bfin_gpio.c:111:27: error: array type has incomplete element type 'struct gpio_port_s'
    static struct gpio_port_s gpio_bank_saved[GPIO_BANK_NUM];
                              ^~~~~~~~~~~~~~~
   arch/blackfin/kernel/bfin_gpio.c: In function 'set_gpio_dir':
   arch/blackfin/kernel/bfin_gpio.c:364:30: error: dereferencing pointer to incomplete type 'struct gpio_port_t'
      gpio_array[gpio_bank(gpio)]->name |= gpio_bit(gpio); \
                                 ^
   arch/blackfin/kernel/bfin_gpio.c:372:1: note: in expansion of macro 'SET_GPIO'
    SET_GPIO(dir)   /* set_gpio_dir() */
    ^~~~~~~~
   In file included from arch/blackfin/kernel/bfin_gpio.c:20:0:
   arch/blackfin/kernel/bfin_gpio.c: At top level:
>> arch/blackfin/include/asm/portmux.h:26:41: error: expected identifier or '(' before numeric constant
    #define peripheral_request(per, label) (0)
                                            ^
>> arch/blackfin/kernel/bfin_gpio.c:658:5: note: in expansion of macro 'peripheral_request'
    int peripheral_request(unsigned short per, const char *label)
        ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/linkage.h:6:0,
                    from include/linux/kernel.h:6,
                    from include/linux/delay.h:21,
                    from arch/blackfin/kernel/bfin_gpio.c:9:
>> arch/blackfin/kernel/bfin_gpio.c:731:15: error: 'peripheral_request' undeclared here (not in a function)
    EXPORT_SYMBOL(peripheral_request);
                  ^
   include/linux/export.h:65:16: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;      \
                   ^~~
>> arch/blackfin/kernel/bfin_gpio.c:731:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(peripheral_request);
    ^~~~~~~~~~~~~
   In file included from arch/blackfin/kernel/bfin_gpio.c:20:0:
   arch/blackfin/include/asm/portmux.h:28:46: error: expected identifier or '(' before numeric constant
    #define peripheral_request_list(per, label) (0)
                                                 ^
>> arch/blackfin/kernel/bfin_gpio.c:733:5: note: in expansion of macro 'peripheral_request_list'
    int peripheral_request_list(const unsigned short per[], const char *label)
        ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/linkage.h:6:0,
                    from include/linux/kernel.h:6,
                    from include/linux/delay.h:21,
                    from arch/blackfin/kernel/bfin_gpio.c:9:
>> arch/blackfin/kernel/bfin_gpio.c:752:15: error: 'peripheral_request_list' undeclared here (not in a function)
    EXPORT_SYMBOL(peripheral_request_list);
                  ^
   include/linux/export.h:65:16: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;      \
                   ^~~
   arch/blackfin/kernel/bfin_gpio.c:752:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(peripheral_request_list);
    ^~~~~~~~~~~~~
>> arch/blackfin/kernel/bfin_gpio.c:755:1: error: expected identifier or '(' before '{' token
    {
    ^
   In file included from include/linux/linkage.h:6:0,
                    from include/linux/kernel.h:6,
                    from include/linux/delay.h:21,
                    from arch/blackfin/kernel/bfin_gpio.c:9:
>> arch/blackfin/kernel/bfin_gpio.c:781:15: error: 'peripheral_free' undeclared here (not in a function)
    EXPORT_SYMBOL(peripheral_free);
                  ^
   include/linux/export.h:65:16: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;      \
                   ^~~
   arch/blackfin/kernel/bfin_gpio.c:781:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(peripheral_free);
    ^~~~~~~~~~~~~
   arch/blackfin/kernel/bfin_gpio.c:784:1: error: expected identifier or '(' before '{' token
    {
    ^
   In file included from include/linux/linkage.h:6:0,
                    from include/linux/kernel.h:6,
                    from include/linux/delay.h:21,
                    from arch/blackfin/kernel/bfin_gpio.c:9:
>> arch/blackfin/kernel/bfin_gpio.c:789:15: error: 'peripheral_free_list' undeclared here (not in a function)
    EXPORT_SYMBOL(peripheral_free_list);
                  ^
   include/linux/export.h:65:16: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;      \
                   ^~~
   arch/blackfin/kernel/bfin_gpio.c:789:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(peripheral_free_list);
    ^~~~~~~~~~~~~
   arch/blackfin/kernel/bfin_gpio.c:333:12: warning: 'portmux_group_check' defined but not used [-Wunused-function]
    static int portmux_group_check(unsigned short per)
               ^~~~~~~~~~~~~~~~~~~
   arch/blackfin/kernel/bfin_gpio.c:111:27: warning: 'gpio_bank_saved' defined but not used [-Wunused-variable]
    static struct gpio_port_s gpio_bank_saved[GPIO_BANK_NUM];
                              ^~~~~~~~~~~~~~~

vim +26 arch/blackfin/include/asm/portmux.h

741ecef6 arch/blackfin/include/asm/portmux.h Sonic Zhang       2013-09-03  25  
a0c1fb2e arch/blackfin/include/asm/portmux.h Steven Miao       2014-03-17 @26  #define peripheral_request(per, label) (0)
741ecef6 arch/blackfin/include/asm/portmux.h Sonic Zhang       2013-09-03  27  #define peripheral_free(per)
a0c1fb2e arch/blackfin/include/asm/portmux.h Steven Miao       2014-03-17  28  #define peripheral_request_list(per, label) (0)
741ecef6 arch/blackfin/include/asm/portmux.h Sonic Zhang       2013-09-03  29  #define peripheral_free_list(per)
741ecef6 arch/blackfin/include/asm/portmux.h Sonic Zhang       2013-09-03  30  #else
c58c2140 include/asm-blackfin/portmux.h      Michael Hennerich 2007-10-04  31  int peripheral_request(unsigned short per, const char *label);
c58c2140 include/asm-blackfin/portmux.h      Michael Hennerich 2007-10-04  32  void peripheral_free(unsigned short per);
68179371 include/asm-blackfin/portmux.h      Mike Frysinger    2008-04-24  33  int peripheral_request_list(const unsigned short per[], const char *label);
68179371 include/asm-blackfin/portmux.h      Mike Frysinger    2008-04-24  34  void peripheral_free_list(const unsigned short per[]);
741ecef6 arch/blackfin/include/asm/portmux.h Sonic Zhang       2013-09-03  35  #endif
c58c2140 include/asm-blackfin/portmux.h      Michael Hennerich 2007-10-04  36  

:::::: The code at line 26 was first introduced by commit
:::::: a0c1fb2ea74dedecd303fb0388e21ca869239db2 blackfin: portmux: cleanup head file

:::::: TO: Steven Miao <realmz6@xxxxxxxxx>
:::::: CC: Steven Miao <realmz6@xxxxxxxxx>

---
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 SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux