lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201705302336.BC8366CF%fengguang.wu@intel.com>
Date:   Tue, 30 May 2017 23:38:42 +0800
From:   kbuild test robot <lkp@...el.com>
To:     John Crispin <john@...ozen.org>
Cc:     kbuild-all@...org, Andrew Lunn <andrew@...n.ch>,
        Vivien Didelot <vivien.didelot@...oirfairelinux.com>,
        Florian Fainelli <f.fainelli@...il.com>,
        "David S . Miller" <davem@...emloft.net>,
        Sean Wang <sean.wang@...iatek.com>, netdev@...r.kernel.org,
        linux-kernel@...r.kernel.org, John Crispin <john@...ozen.org>
Subject: Re: [PATCH V2 2/3] net-next: dsa: add multi cpu port support

Hi John,

[auto build test ERROR on net-next/master]
[also build test ERROR on next-20170530]
[cannot apply to v4.12-rc3]
[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/John-Crispin/Documentation-devicetree-add-multiple-cpu-port-DSA-binding/20170530-224954
config: x86_64-randconfig-x014-201722 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

   In file included from include/linux/ioport.h:12:0,
                    from include/linux/device.h:16,
                    from net//dsa/dsa2.c:13:
   net//dsa/dsa2.c: In function 'dsa_ds_parse':
>> net//dsa/dsa2.c:574:31: error: passing argument 1 of 'dsa_is_normal_port' from incompatible pointer type [-Werror=incompatible-pointer-types]
      else if (dsa_is_normal_port(port))
                                  ^
   include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> net//dsa/dsa2.c:574:8: note: in expansion of macro 'if'
      else if (dsa_is_normal_port(port))
           ^~
   In file included from net//dsa/dsa_priv.h:17:0,
                    from net//dsa/dsa2.c:22:
   include/net/dsa.h:264:20: note: expected 'struct dsa_switch *' but argument is of type 'struct dsa_port *'
    static inline bool dsa_is_normal_port(struct dsa_switch *ds, int p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/ioport.h:12:0,
                    from include/linux/device.h:16,
                    from net//dsa/dsa2.c:13:
>> net//dsa/dsa2.c:574:12: error: too few arguments to function 'dsa_is_normal_port'
      else if (dsa_is_normal_port(port))
               ^
   include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> net//dsa/dsa2.c:574:8: note: in expansion of macro 'if'
      else if (dsa_is_normal_port(port))
           ^~
   In file included from net//dsa/dsa_priv.h:17:0,
                    from net//dsa/dsa2.c:22:
   include/net/dsa.h:264:20: note: declared here
    static inline bool dsa_is_normal_port(struct dsa_switch *ds, int p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/ioport.h:12:0,
                    from include/linux/device.h:16,
                    from net//dsa/dsa2.c:13:
>> net//dsa/dsa2.c:574:31: error: passing argument 1 of 'dsa_is_normal_port' from incompatible pointer type [-Werror=incompatible-pointer-types]
      else if (dsa_is_normal_port(port))
                                  ^
   include/linux/compiler.h:160:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> net//dsa/dsa2.c:574:8: note: in expansion of macro 'if'
      else if (dsa_is_normal_port(port))
           ^~
   In file included from net//dsa/dsa_priv.h:17:0,
                    from net//dsa/dsa2.c:22:
   include/net/dsa.h:264:20: note: expected 'struct dsa_switch *' but argument is of type 'struct dsa_port *'
    static inline bool dsa_is_normal_port(struct dsa_switch *ds, int p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/ioport.h:12:0,
                    from include/linux/device.h:16,
                    from net//dsa/dsa2.c:13:
>> net//dsa/dsa2.c:574:12: error: too few arguments to function 'dsa_is_normal_port'
      else if (dsa_is_normal_port(port))
               ^
   include/linux/compiler.h:160:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> net//dsa/dsa2.c:574:8: note: in expansion of macro 'if'
      else if (dsa_is_normal_port(port))
           ^~
   In file included from net//dsa/dsa_priv.h:17:0,
                    from net//dsa/dsa2.c:22:
   include/net/dsa.h:264:20: note: declared here
    static inline bool dsa_is_normal_port(struct dsa_switch *ds, int p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/ioport.h:12:0,
                    from include/linux/device.h:16,
                    from net//dsa/dsa2.c:13:
>> net//dsa/dsa2.c:574:31: error: passing argument 1 of 'dsa_is_normal_port' from incompatible pointer type [-Werror=incompatible-pointer-types]
      else if (dsa_is_normal_port(port))
                                  ^
   include/linux/compiler.h:171:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> net//dsa/dsa2.c:574:8: note: in expansion of macro 'if'
      else if (dsa_is_normal_port(port))
           ^~
   In file included from net//dsa/dsa_priv.h:17:0,
                    from net//dsa/dsa2.c:22:
   include/net/dsa.h:264:20: note: expected 'struct dsa_switch *' but argument is of type 'struct dsa_port *'
    static inline bool dsa_is_normal_port(struct dsa_switch *ds, int p)
                       ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/ioport.h:12:0,
                    from include/linux/device.h:16,
                    from net//dsa/dsa2.c:13:
>> net//dsa/dsa2.c:574:12: error: too few arguments to function 'dsa_is_normal_port'
      else if (dsa_is_normal_port(port))
               ^
   include/linux/compiler.h:171:16: note: in definition of macro '__trace_if'
      ______r = !!(cond);     \
                   ^~~~
>> net//dsa/dsa2.c:574:8: note: in expansion of macro 'if'
      else if (dsa_is_normal_port(port))
           ^~
   In file included from net//dsa/dsa_priv.h:17:0,
                    from net//dsa/dsa2.c:22:
   include/net/dsa.h:264:20: note: declared here
    static inline bool dsa_is_normal_port(struct dsa_switch *ds, int p)
                       ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/dsa_is_normal_port +574 net//dsa/dsa2.c

   568			port = &ds->ports[index];
   569			if (!dsa_port_is_valid(port))
   570				continue;
   571	
   572			if (dsa_port_is_cpu(port))
   573				err = dsa_cpu_parse(port, index, dst, ds);
 > 574			else if (dsa_is_normal_port(port))
   575				err = dsa_user_parse(port->dn, index,  ds);
   576	
   577				if (err)

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

Download attachment ".config.gz" of type "application/gzip" (28681 bytes)

Powered by blists - more mailing lists