[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206282109.hYS21CsR-lkp@intel.com>
Date: Tue, 28 Jun 2022 21:29:12 +0800
From: kernel test robot <lkp@...el.com>
To: Leon Romanovsky <leonro@...dia.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org, Raed Salem <raeds@...dia.com>
Subject: [ammarfaizi2-block:mellanox/linux/queue-next 4/14]
include/net/xfrm.h:1959:3: error: call to undeclared function
'dev_put_track'; ISO C99 and later do not support implicit function
declarations
tree: https://github.com/ammarfaizi2/linux-block mellanox/linux/queue-next
head: 62681695cd9969a82026b2b93d0c4ca1a8500eee
commit: 4989687be72c5d305bf38d1f77e34f4ca2dde3d4 [4/14] xfrm: add an interface to offload policy
config: i386-randconfig-a004-20220627
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project df18167ac56d05f2ab55f9d874aee7ab6d5bc9a2)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/ammarfaizi2/linux-block/commit/4989687be72c5d305bf38d1f77e34f4ca2dde3d4
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block mellanox/linux/queue-next
git checkout 4989687be72c5d305bf38d1f77e34f4ca2dde3d4
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from net/ipv4/route.c:97:
>> include/net/xfrm.h:1959:3: error: call to undeclared function 'dev_put_track'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
dev_put_track(dev, &xdo->dev_tracker);
^
include/net/xfrm.h:1959:3: note: did you mean 'get_net_track'?
include/net/net_namespace.h:331:27: note: 'get_net_track' declared here
static inline struct net *get_net_track(struct net *net,
^
net/ipv4/route.c:880:6: warning: variable 'log_martians' set but not used [-Wunused-but-set-variable]
int log_martians;
^
1 warning and 1 error generated.
--
In file included from net/ipv4/ip_input.c:140:
>> include/net/xfrm.h:1959:3: error: call to undeclared function 'dev_put_track'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
dev_put_track(dev, &xdo->dev_tracker);
^
include/net/xfrm.h:1959:3: note: did you mean 'get_net_track'?
include/net/net_namespace.h:331:27: note: 'get_net_track' declared here
static inline struct net *get_net_track(struct net *net,
^
1 error generated.
--
In file included from net/ipv4/ah4.c:10:
>> include/net/xfrm.h:1959:3: error: call to undeclared function 'dev_put_track'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
dev_put_track(dev, &xdo->dev_tracker);
^
include/net/xfrm.h:1959:3: note: did you mean 'get_net_track'?
include/net/net_namespace.h:331:27: note: 'get_net_track' declared here
static inline struct net *get_net_track(struct net *net,
^
net/ipv4/ah4.c:513:4: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
aalg_desc->uinfo.auth.icv_fullbits / 8);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:548:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:475:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:447:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
1 warning and 1 error generated.
--
In file included from net/ipv4/esp4.c:9:
>> include/net/xfrm.h:1959:3: error: call to undeclared function 'dev_put_track'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
dev_put_track(dev, &xdo->dev_tracker);
^
include/net/xfrm.h:1959:3: note: did you mean 'get_net_track'?
include/net/net_namespace.h:331:27: note: 'get_net_track' declared here
static inline struct net *get_net_track(struct net *net,
^
net/ipv4/esp4.c:1114:5: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat]
aalg_desc->uinfo.auth.icv_fullbits / 8);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:548:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:475:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:447:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
1 warning and 1 error generated.
--
In file included from net/xfrm/xfrm_device.c:18:
>> include/net/xfrm.h:1959:3: error: call to undeclared function 'dev_put_track'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
dev_put_track(dev, &xdo->dev_tracker);
^
include/net/xfrm.h:1959:3: note: did you mean 'get_net_track'?
include/net/net_namespace.h:331:27: note: 'get_net_track' declared here
static inline struct net *get_net_track(struct net *net,
^
net/xfrm/xfrm_device.c:286:3: error: call to undeclared function 'dev_put_track'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
dev_put_track(dev, &xso->dev_tracker);
^
net/xfrm/xfrm_device.c:354:3: error: call to undeclared function 'dev_put_track'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
dev_put_track(dev, &xdo->dev_tracker);
^
3 errors generated.
vim +/dev_put_track +1959 include/net/xfrm.h
1949
1950 static inline void xfrm_dev_policy_free(struct xfrm_policy *x)
1951 {
1952 struct xfrm_dev_offload *xdo = &x->xdo;
1953 struct net_device *dev = xdo->dev;
1954
1955 if (dev && dev->xfrmdev_ops) {
1956 if (dev->xfrmdev_ops->xdo_dev_policy_free)
1957 dev->xfrmdev_ops->xdo_dev_policy_free(x);
1958 xdo->dev = NULL;
> 1959 dev_put_track(dev, &xdo->dev_tracker);
1960 }
1961 }
1962 #else
1963 static inline void xfrm_dev_resume(struct sk_buff *skb)
1964 {
1965 }
1966
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (131866 bytes)
Powered by blists - more mailing lists