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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 15 Sep 2016 07:56:09 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Tom Herbert <tom@...bertland.com>
Cc:     kbuild-all@...org, davem@...emloft.net, netdev@...r.kernel.org,
        tgraf@...g.ch, roopa@...ulusnetworks.com, kernel-team@...com
Subject: Re: [PATCH net-next 1/7] lwt: Add net to build_state argument

Hi Tom,

[auto build test ERROR on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Tom-Herbert/net-ILA-resolver-and-generic-resolver-backend/20160915-073357
config: x86_64-randconfig-x013-201637 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

   net/ipv4/fib_semantics.c: In function 'fib_get_nhs':
>> net/ipv4/fib_semantics.c:514:32: error: passing argument 1 of 'lwtunnel_build_state' from incompatible pointer type [-Werror=incompatible-pointer-types]
        ret = lwtunnel_build_state(net, dev,
                                   ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'struct net_device *' but argument is of type 'struct net *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
>> net/ipv4/fib_semantics.c:514:37: warning: passing argument 2 of 'lwtunnel_build_state' makes integer from pointer without a cast [-Wint-conversion]
        ret = lwtunnel_build_state(net, dev,
                                        ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'u16 {aka short unsigned int}' but argument is of type 'struct net_device *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
>> net/ipv4/fib_semantics.c:515:11: warning: passing argument 3 of 'lwtunnel_build_state' makes pointer from integer without a cast [-Wint-conversion]
              nla_get_u16(
              ^~~~~~~~~~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'struct nlattr *' but argument is of type 'u16 {aka short unsigned int}'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:517:11: warning: passing argument 4 of 'lwtunnel_build_state' makes integer from pointer without a cast [-Wint-conversion]
              nla,  AF_INET, cfg,
              ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'unsigned int' but argument is of type 'struct nlattr *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   In file included from net/ipv4/fib_semantics.c:23:0:
>> include/linux/socket.h:163:18: warning: passing argument 5 of 'lwtunnel_build_state' makes pointer from integer without a cast [-Wint-conversion]
    #define AF_INET  2 /* Internet IP Protocol  */
                     ^
>> net/ipv4/fib_semantics.c:517:17: note: in expansion of macro 'AF_INET'
              nla,  AF_INET, cfg,
                    ^~~~~~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'const void *' but argument is of type 'int'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:517:26: error: passing argument 6 of 'lwtunnel_build_state' from incompatible pointer type [-Werror=incompatible-pointer-types]
              nla,  AF_INET, cfg,
                             ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'struct lwtunnel_state **' but argument is of type 'struct fib_config *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
>> net/ipv4/fib_semantics.c:514:11: error: too many arguments to function 'lwtunnel_build_state'
        ret = lwtunnel_build_state(net, dev,
              ^~~~~~~~~~~~~~~~~~~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: declared here
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c: In function 'fib_encap_match':
   net/ipv4/fib_semantics.c:614:29: error: passing argument 1 of 'lwtunnel_build_state' from incompatible pointer type [-Werror=incompatible-pointer-types]
     ret = lwtunnel_build_state(net, dev, encap_type, encap,
                                ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'struct net_device *' but argument is of type 'struct net *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:614:34: warning: passing argument 2 of 'lwtunnel_build_state' makes integer from pointer without a cast [-Wint-conversion]
     ret = lwtunnel_build_state(net, dev, encap_type, encap,
                                     ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'u16 {aka short unsigned int}' but argument is of type 'struct net_device *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:614:39: warning: passing argument 3 of 'lwtunnel_build_state' makes pointer from integer without a cast [-Wint-conversion]
     ret = lwtunnel_build_state(net, dev, encap_type, encap,
                                          ^~~~~~~~~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'struct nlattr *' but argument is of type 'u16 {aka short unsigned int}'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:614:51: warning: passing argument 4 of 'lwtunnel_build_state' makes integer from pointer without a cast [-Wint-conversion]
     ret = lwtunnel_build_state(net, dev, encap_type, encap,
                                                      ^~~~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'unsigned int' but argument is of type 'struct nlattr *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   In file included from net/ipv4/fib_semantics.c:23:0:
>> include/linux/socket.h:163:18: warning: passing argument 5 of 'lwtunnel_build_state' makes pointer from integer without a cast [-Wint-conversion]
    #define AF_INET  2 /* Internet IP Protocol  */
                     ^
   net/ipv4/fib_semantics.c:615:8: note: in expansion of macro 'AF_INET'
           AF_INET, cfg, &lwtstate);
           ^~~~~~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'const void *' but argument is of type 'int'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:615:17: error: passing argument 6 of 'lwtunnel_build_state' from incompatible pointer type [-Werror=incompatible-pointer-types]
           AF_INET, cfg, &lwtstate);
                    ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'struct lwtunnel_state **' but argument is of type 'const struct fib_config *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:614:8: error: too many arguments to function 'lwtunnel_build_state'
     ret = lwtunnel_build_state(net, dev, encap_type, encap,
           ^~~~~~~~~~~~~~~~~~~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: declared here
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c: In function 'fib_create_info':
   net/ipv4/fib_semantics.c:1102:31: error: passing argument 1 of 'lwtunnel_build_state' from incompatible pointer type [-Werror=incompatible-pointer-types]
       err = lwtunnel_build_state(net, dev, cfg->fc_encap_type,
                                  ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'struct net_device *' but argument is of type 'struct net *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:1102:36: warning: passing argument 2 of 'lwtunnel_build_state' makes integer from pointer without a cast [-Wint-conversion]
       err = lwtunnel_build_state(net, dev, cfg->fc_encap_type,
                                       ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'u16 {aka short unsigned int}' but argument is of type 'struct net_device *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:1102:41: warning: passing argument 3 of 'lwtunnel_build_state' makes pointer from integer without a cast [-Wint-conversion]
       err = lwtunnel_build_state(net, dev, cfg->fc_encap_type,
                                            ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'struct nlattr *' but argument is of type 'u16 {aka short unsigned int}'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:1103:10: warning: passing argument 4 of 'lwtunnel_build_state' makes integer from pointer without a cast [-Wint-conversion]
             cfg->fc_encap, AF_INET, cfg,
             ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'unsigned int' but argument is of type 'struct nlattr *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   In file included from net/ipv4/fib_semantics.c:23:0:
>> include/linux/socket.h:163:18: warning: passing argument 5 of 'lwtunnel_build_state' makes pointer from integer without a cast [-Wint-conversion]
    #define AF_INET  2 /* Internet IP Protocol  */
                     ^
   net/ipv4/fib_semantics.c:1103:25: note: in expansion of macro 'AF_INET'
             cfg->fc_encap, AF_INET, cfg,
                            ^~~~~~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'const void *' but argument is of type 'int'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:1103:34: error: passing argument 6 of 'lwtunnel_build_state' from incompatible pointer type [-Werror=incompatible-pointer-types]
             cfg->fc_encap, AF_INET, cfg,
                                     ^~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: expected 'struct lwtunnel_state **' but argument is of type 'struct fib_config *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv4/fib_semantics.c:1102:10: error: too many arguments to function 'lwtunnel_build_state'
       err = lwtunnel_build_state(net, dev, cfg->fc_encap_type,
             ^~~~~~~~~~~~~~~~~~~~
   In file included from net/ipv4/fib_semantics.c:45:0:
   include/net/lwtunnel.h:172:19: note: declared here
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   net/ipv6/route.c: In function 'ip6_route_info_create':
>> net/ipv6/route.c:1887:30: error: passing argument 1 of 'lwtunnel_build_state' from incompatible pointer type [-Werror=incompatible-pointer-types]
      err = lwtunnel_build_state(net, dev, cfg->fc_encap_type,
                                 ^~~
   In file included from include/net/ip_tunnels.h:17:0,
                    from include/net/dst_metadata.h:5,
                    from net/ipv6/route.c:57:
   include/net/lwtunnel.h:172:19: note: expected 'struct net_device *' but argument is of type 'struct net *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
>> net/ipv6/route.c:1887:35: warning: passing argument 2 of 'lwtunnel_build_state' makes integer from pointer without a cast [-Wint-conversion]
      err = lwtunnel_build_state(net, dev, cfg->fc_encap_type,
                                      ^~~
   In file included from include/net/ip_tunnels.h:17:0,
                    from include/net/dst_metadata.h:5,
                    from net/ipv6/route.c:57:
   include/net/lwtunnel.h:172:19: note: expected 'u16 {aka short unsigned int}' but argument is of type 'struct net_device *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
>> net/ipv6/route.c:1887:40: warning: passing argument 3 of 'lwtunnel_build_state' makes pointer from integer without a cast [-Wint-conversion]
      err = lwtunnel_build_state(net, dev, cfg->fc_encap_type,
                                           ^~~
   In file included from include/net/ip_tunnels.h:17:0,
                    from include/net/dst_metadata.h:5,
                    from net/ipv6/route.c:57:
   include/net/lwtunnel.h:172:19: note: expected 'struct nlattr *' but argument is of type 'u16 {aka short unsigned int}'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv6/route.c:1888:9: warning: passing argument 4 of 'lwtunnel_build_state' makes integer from pointer without a cast [-Wint-conversion]
            cfg->fc_encap, AF_INET6, cfg,
            ^~~
   In file included from include/net/ip_tunnels.h:17:0,
                    from include/net/dst_metadata.h:5,
                    from net/ipv6/route.c:57:
   include/net/lwtunnel.h:172:19: note: expected 'unsigned int' but argument is of type 'struct nlattr *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   In file included from net/ipv6/route.c:34:0:
   include/linux/socket.h:171:18: warning: passing argument 5 of 'lwtunnel_build_state' makes pointer from integer without a cast [-Wint-conversion]
    #define AF_INET6 10 /* IP version 6   */
                     ^
>> net/ipv6/route.c:1888:24: note: in expansion of macro 'AF_INET6'
            cfg->fc_encap, AF_INET6, cfg,
                           ^~~~~~~~
   In file included from include/net/ip_tunnels.h:17:0,
                    from include/net/dst_metadata.h:5,
                    from net/ipv6/route.c:57:
   include/net/lwtunnel.h:172:19: note: expected 'const void *' but argument is of type 'int'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   net/ipv6/route.c:1888:34: error: passing argument 6 of 'lwtunnel_build_state' from incompatible pointer type [-Werror=incompatible-pointer-types]
            cfg->fc_encap, AF_INET6, cfg,
                                     ^~~
   In file included from include/net/ip_tunnels.h:17:0,
                    from include/net/dst_metadata.h:5,
                    from net/ipv6/route.c:57:
   include/net/lwtunnel.h:172:19: note: expected 'struct lwtunnel_state **' but argument is of type 'struct fib6_config *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
>> net/ipv6/route.c:1887:9: error: too many arguments to function 'lwtunnel_build_state'
      err = lwtunnel_build_state(net, dev, cfg->fc_encap_type,
            ^~~~~~~~~~~~~~~~~~~~
   In file included from include/net/ip_tunnels.h:17:0,
                    from include/net/dst_metadata.h:5,
                    from net/ipv6/route.c:57:
   include/net/lwtunnel.h:172:19: note: declared here
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/lwtunnel_build_state +514 net/ipv4/fib_semantics.c

   508					nla_entype = nla_find(attrs, attrlen,
   509							      RTA_ENCAP_TYPE);
   510					if (!nla_entype)
   511						goto err_inval;
   512					if (cfg->fc_oif)
   513						dev = __dev_get_by_index(net, cfg->fc_oif);
 > 514					ret = lwtunnel_build_state(net, dev,
 > 515								   nla_get_u16(
   516								   nla_entype),
 > 517								   nla,  AF_INET, cfg,
   518								   &lwtstate);
   519					if (ret)
   520						goto errout;

---
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/octet-stream" (29178 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ