[arm:clearfog 2/11] drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:13:12: error: static declaration of 'mv88e6xxx_g2_read' follows non-static declaration

From: kbuild test robot <hidden>
Date: 2019-05-27 17:52:48

tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git clearfog
head:   7a920397df44fa794133e6fcf68c705071b0d58b
commit: c2bb33374ee1f0069c97ad23c853b2bb9a7c80bd [2/11] net: dsa: mv88e6xxx: add debugfs interface
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.4.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 c2bb33374ee1f0069c97ad23c853b2bb9a7c80bd
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=xtensa 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <redacted>

Note: the arm/clearfog HEAD 7a920397df44fa794133e6fcf68c705071b0d58b builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   In file included from drivers/net/dsa/mv88e6xxx/chip.c:2552:0:
quoted
drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:13:12: error: static declaration of 'mv88e6xxx_g2_read' follows non-static declaration
    static int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val)
               ^~~~~~~~~~~~~~~~~
   In file included from drivers/net/dsa/mv88e6xxx/chip.c:40:0:
   drivers/net/dsa/mv88e6xxx/global2.h:288:5: note: previous declaration of 'mv88e6xxx_g2_read' was here
    int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val);
        ^~~~~~~~~~~~~~~~~
   In file included from drivers/net/dsa/mv88e6xxx/chip.c:2552:0:
quoted
drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:18:12: error: static declaration of 'mv88e6xxx_g2_write' follows non-static declaration
    static int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val)
               ^~~~~~~~~~~~~~~~~~
   In file included from drivers/net/dsa/mv88e6xxx/chip.c:40:0:
   drivers/net/dsa/mv88e6xxx/global2.h:289:5: note: previous declaration of 'mv88e6xxx_g2_write' was here
    int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val);
        ^~~~~~~~~~~~~~~~~~
   In file included from drivers/net/dsa/mv88e6xxx/chip.c:2552:0:
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c: In function 'mv88e6xxx_atu_show':
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:260:8: error: implicit declaration of function '_mv88e6xxx_atu_mac_write'; did you mean '_mv88e6xxx_pvt_write'? [-Werror=implicit-function-declaration]
     err = _mv88e6xxx_atu_mac_write(chip, addr.mac);
           ^~~~~~~~~~~~~~~~~~~~~~~~
           _mv88e6xxx_pvt_write
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:266:10: error: implicit declaration of function '_mv88e6xxx_atu_getnext'; did you mean 'mv88e6xxx_vtu_getnext'? [-Werror=implicit-function-declaration]
       err = _mv88e6xxx_atu_getnext(chip, fid, &addr);
             ^~~~~~~~~~~~~~~~~~~~~~
             mv88e6xxx_vtu_getnext
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:270:22: error: 'GLOBAL_ATU_DATA_STATE_UNUSED' undeclared (first use in this function); did you mean 'MV88E6XXX_G1_ATU_DATA_STATE_UNUSED'?
       if (addr.state == GLOBAL_ATU_DATA_STATE_UNUSED)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                         MV88E6XXX_G1_ATU_DATA_STATE_UNUSED
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:270:22: note: each undeclared identifier is reported only once for each function it appears in
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:274:29: error: 'struct mv88e6xxx_atu_entry' has no member named 'fid'
       seq_printf(s, "%4d", addr.fid);
                                ^
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:373:13: error: 'struct mv88e6xxx_atu_entry' has no member named 'portv_trunkid'
            addr.portv_trunkid);
                ^
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:378:14: error: 'struct mv88e6xxx_atu_entry' has no member named 'portv_trunkid'
             addr.portv_trunkid & BIT(i) ?
                 ^
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c: In function 'mv88e6xxx_atu_write':
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:412:8: error: implicit declaration of function '_mv88e6xxx_atu_flush'; did you mean 'mv88e6xxx_g1_atu_flush'? [-Werror=implicit-function-declaration]
     ret = _mv88e6xxx_atu_flush(chip, fid, true);
           ^~~~~~~~~~~~~~~~~~~~
           mv88e6xxx_g1_atu_flush
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c: In function 'mv88e6xxx_vtu_show':
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:776:27: error: 'GLOBAL_VTU_VID_MASK' undeclared (first use in this function); did you mean 'VLAN_VID_MASK'?
     int port, ret = 0, vid = GLOBAL_VTU_VID_MASK; /* first or lowest VID */
                              ^~~~~~~~~~~~~~~~~~~
                              VLAN_VID_MASK
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:785:8: error: implicit declaration of function '_mv88e6xxx_vtu_vid_write'; did you mean 'mv88e6xxx_atu_write'? [-Werror=implicit-function-declaration]
     ret = _mv88e6xxx_vtu_vid_write(chip, vid);
           ^~~~~~~~~~~~~~~~~~~~~~~~
           mv88e6xxx_atu_write
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:792:9: error: implicit declaration of function '_mv88e6xxx_vtu_getnext'; did you mean 'mv88e6xxx_vtu_getnext'? [-Werror=implicit-function-declaration]
      ret = _mv88e6xxx_vtu_getnext(chip, &next);
            ^~~~~~~~~~~~~~~~~~~~~~
            mv88e6xxx_vtu_getnext
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:801:16: error: 'struct mv88e6xxx_vtu_entry' has no member named 'data'
       switch (next.data[port]) {
                   ^
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:802:9: error: 'GLOBAL_VTU_DATA_MEMBER_TAG_UNMODIFIED' undeclared (first use in this function); did you mean 'MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_UNMODIFIED'?
       case GLOBAL_VTU_DATA_MEMBER_TAG_UNMODIFIED:
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_UNMODIFIED
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:805:9: error: 'GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED' undeclared (first use in this function); did you mean 'GLOBAL_VTU_DATA_MEMBER_TAG_UNMODIFIED'?
       case GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED:
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            GLOBAL_VTU_DATA_MEMBER_TAG_UNMODIFIED
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:808:9: error: 'GLOBAL_VTU_DATA_MEMBER_TAG_TAGGED' undeclared (first use in this function); did you mean 'GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED'?
       case GLOBAL_VTU_DATA_MEMBER_TAG_TAGGED:
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:811:9: error: 'GLOBAL_VTU_DATA_MEMBER_TAG_NON_MEMBER' undeclared (first use in this function); did you mean 'GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED'?
       case GLOBAL_VTU_DATA_MEMBER_TAG_NON_MEMBER:
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c: In function 'mv88e6xxx_vtu_write':
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:868:11: error: 'GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED' undeclared (first use in this function); did you mean 'MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_UNTAGGED'?
        tag = GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              MV88E6XXX_G1_VTU_DATA_MEMBER_TAG_UNTAGGED
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:871:11: error: 'GLOBAL_VTU_DATA_MEMBER_TAG_TAGGED' undeclared (first use in this function); did you mean 'GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED'?
        tag = GLOBAL_VTU_DATA_MEMBER_TAG_TAGGED;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:874:11: error: 'GLOBAL_VTU_DATA_MEMBER_TAG_NON_MEMBER' undeclared (first use in this function); did you mean 'GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED'?
        tag = GLOBAL_VTU_DATA_MEMBER_TAG_NON_MEMBER;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:877:11: error: 'GLOBAL_VTU_DATA_MEMBER_TAG_UNMODIFIED' undeclared (first use in this function); did you mean 'GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED'?
        tag = GLOBAL_VTU_DATA_MEMBER_TAG_UNMODIFIED;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              GLOBAL_VTU_DATA_MEMBER_TAG_UNTAGGED
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:883:9: error: 'struct mv88e6xxx_vtu_entry' has no member named 'data'
       entry.data[port] = tag;
            ^
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:888:8: error: implicit declaration of function '_mv88e6xxx_vtu_loadpurge'; did you mean 'mv88e6xxx_vtu_loadpurge'? [-Werror=implicit-function-declaration]
     ret = _mv88e6xxx_vtu_loadpurge(chip, &entry);
           ^~~~~~~~~~~~~~~~~~~~~~~~
           mv88e6xxx_vtu_loadpurge
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c: In function 'mv88e6xxx_stats_show':
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:916:14: error: too few arguments to function 'mv88e6xxx_get_sset_count'
     num_stats = mv88e6xxx_get_sset_count(chip->ds);
                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mv88e6xxx/chip.c:1034:12: note: declared here
    static int mv88e6xxx_get_sset_count(struct dsa_switch *ds, int port, int sset)
               ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/net/dsa/mv88e6xxx/chip.c:2552:0:
   drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:930:37: warning: passing argument 3 of 'mv88e6xxx_get_strings' makes integer from pointer without a cast [-Wint-conversion]

vim +/mv88e6xxx_g2_read +13 drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c

    12	
  > 13	static int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val)
    14	{
    15		return mv88e6xxx_read(chip, ADDR_GLOBAL2, reg, val);
    16	}
    17	
  > 18	static int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val)
    19	{
    20		return mv88e6xxx_write(chip, ADDR_GLOBAL2, reg, val);
    21	}
    22	

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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help