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: <201609150842.ZXSuouZ1%fengguang.wu@intel.com>
Date:   Thu, 15 Sep 2016 08:42:13 +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 WARNING on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Tom-Herbert/net-ILA-resolver-and-generic-resolver-backend/20160915-073357
config: microblaze-mmu_defconfig (attached as .config)
compiler: microblaze-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=microblaze 

All warnings (new ones prefixed by >>):

   net/ipv4/fib_semantics.c: In function 'fib_encap_match':
>> net/ipv4/fib_semantics.c:614:8: warning: passing argument 1 of 'lwtunnel_build_state' from incompatible pointer type
     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:8: warning: passing argument 2 of 'lwtunnel_build_state' makes integer from pointer without a cast
     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' 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:8: warning: passing argument 3 of 'lwtunnel_build_state' makes pointer from integer without a cast
     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'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^
   net/ipv4/fib_semantics.c:614:8: warning: passing argument 4 of 'lwtunnel_build_state' makes integer from pointer without a cast
     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,
                      ^
   net/ipv4/fib_semantics.c:614:8: warning: passing argument 5 of 'lwtunnel_build_state' makes pointer from integer without a cast
     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 '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:614:8: warning: passing argument 6 of 'lwtunnel_build_state' from incompatible pointer type
     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 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:10: warning: passing argument 1 of 'lwtunnel_build_state' from incompatible pointer type
       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:10: warning: passing argument 2 of 'lwtunnel_build_state' makes integer from pointer without a cast
       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' 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:10: warning: passing argument 3 of 'lwtunnel_build_state' makes pointer from integer without a cast
       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'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^
   net/ipv4/fib_semantics.c:1102:10: warning: passing argument 4 of 'lwtunnel_build_state' makes integer from pointer without a cast
       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 'unsigned int' but argument is of type 'struct nlattr *'
    static inline int lwtunnel_build_state(struct net_device *dev, u16 encap_type,
                      ^
   net/ipv4/fib_semantics.c:1102:10: warning: passing argument 5 of 'lwtunnel_build_state' makes pointer from integer without a cast
       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 '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:1102:10: warning: passing argument 6 of 'lwtunnel_build_state' from incompatible pointer type
       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 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,
                      ^

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

   598	#endif /* CONFIG_IP_ROUTE_MULTIPATH */
   599	
   600	static int fib_encap_match(struct net *net, u16 encap_type,
   601				   struct nlattr *encap,
   602				   int oif, const struct fib_nh *nh,
   603				   const struct fib_config *cfg)
   604	{
   605		struct lwtunnel_state *lwtstate;
   606		struct net_device *dev = NULL;
   607		int ret, result = 0;
   608	
   609		if (encap_type == LWTUNNEL_ENCAP_NONE)
   610			return 0;
   611	
   612		if (oif)
   613			dev = __dev_get_by_index(net, oif);
 > 614		ret = lwtunnel_build_state(net, dev, encap_type, encap,
   615					   AF_INET, cfg, &lwtstate);
   616		if (!ret) {
   617			result = lwtunnel_cmp_encap(lwtstate, nh->nh_lwtstate);
   618			lwtstate_free(lwtstate);
   619		}
   620	
   621		return result;
   622	}

---
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" (12345 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ