* [net-next:master 194/196] include/net/sock.h:1367:9: error: implicit declaration of function 'lockdep_is_held'
@ 2016-04-07 21:00 kbuild test robot
2016-04-07 21:09 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2016-04-07 21:00 UTC (permalink / raw)
To: Hannes Frederic Sowa; +Cc: kbuild-all, netdev
[-- Attachment #1: Type: text/plain, Size: 1791 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 1fbbe1a8a9b195c4ac856540dfaef49d663c2e91
commit: 1e1d04e678cf72442f57ce82803c7a407769135f [194/196] net: introduce lockdep_is_held and update various places to use it
config: i386-tinyconfig (attached as .config)
reproduce:
git checkout 1e1d04e678cf72442f57ce82803c7a407769135f
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
In file included from include/linux/tcp.h:22:0,
from include/linux/ipv6.h:75,
from include/net/ipv6.h:16,
from include/linux/sunrpc/clnt.h:27,
from include/linux/nfs_fs.h:30,
from init/do_mounts.c:32:
include/net/sock.h: In function 'lockdep_sock_is_held':
>> include/net/sock.h:1367:9: error: implicit declaration of function 'lockdep_is_held' [-Werror=implicit-function-declaration]
return lockdep_is_held(&sk->sk_lock) ||
^
init/do_mounts.c: At top level:
include/net/sock.h:1363:13: warning: 'lockdep_sock_is_held' defined but not used [-Wunused-function]
static bool lockdep_sock_is_held(const struct sock *csk)
^
cc1: some warnings being treated as errors
vim +/lockdep_is_held +1367 include/net/sock.h
1361 } while (0)
1362
1363 static bool lockdep_sock_is_held(const struct sock *csk)
1364 {
1365 struct sock *sk = (struct sock *)csk;
1366
> 1367 return lockdep_is_held(&sk->sk_lock) ||
1368 lockdep_is_held(&sk->sk_lock.slock);
1369 }
1370
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 6274 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [net-next:master 194/196] include/net/sock.h:1367:9: error: implicit declaration of function 'lockdep_is_held'
2016-04-07 21:00 [net-next:master 194/196] include/net/sock.h:1367:9: error: implicit declaration of function 'lockdep_is_held' kbuild test robot
@ 2016-04-07 21:09 ` David Miller
2016-04-07 22:12 ` Hannes Frederic Sowa
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2016-04-07 21:09 UTC (permalink / raw)
To: fengguang.wu; +Cc: hannes, kbuild-all, netdev
From: kbuild test robot <fengguang.wu@intel.com>
Date: Fri, 8 Apr 2016 05:00:42 +0800
> include/net/sock.h: In function 'lockdep_sock_is_held':
>>> include/net/sock.h:1367:9: error: implicit declaration of function 'lockdep_is_held' [-Werror=implicit-function-declaration]
> return lockdep_is_held(&sk->sk_lock) ||
...
> 1361 } while (0)
> 1362
> 1363 static bool lockdep_sock_is_held(const struct sock *csk)
> 1364 {
> 1365 struct sock *sk = (struct sock *)csk;
> 1366
>> 1367 return lockdep_is_held(&sk->sk_lock) ||
> 1368 lockdep_is_held(&sk->sk_lock.slock);
> 1369 }
Hmmm, Hannes to we need to make this a macro just like lockdep_is_held() is?
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [net-next:master 194/196] include/net/sock.h:1367:9: error: implicit declaration of function 'lockdep_is_held'
2016-04-07 21:09 ` David Miller
@ 2016-04-07 22:12 ` Hannes Frederic Sowa
0 siblings, 0 replies; 3+ messages in thread
From: Hannes Frederic Sowa @ 2016-04-07 22:12 UTC (permalink / raw)
To: David Miller, fengguang.wu; +Cc: kbuild-all, netdev
On Thu, Apr 7, 2016, at 23:09, David Miller wrote:
> From: kbuild test robot <fengguang.wu@intel.com>
> Date: Fri, 8 Apr 2016 05:00:42 +0800
>
> > include/net/sock.h: In function 'lockdep_sock_is_held':
> >>> include/net/sock.h:1367:9: error: implicit declaration of function 'lockdep_is_held' [-Werror=implicit-function-declaration]
> > return lockdep_is_held(&sk->sk_lock) ||
> ...
> > 1361 } while (0)
> > 1362
> > 1363 static bool lockdep_sock_is_held(const struct sock *csk)
> > 1364 {
> > 1365 struct sock *sk = (struct sock *)csk;
> > 1366
> >> 1367 return lockdep_is_held(&sk->sk_lock) ||
> > 1368 lockdep_is_held(&sk->sk_lock.slock);
> > 1369 }
>
> Hmmm, Hannes to we need to make this a macro just like lockdep_is_held()
> is?
I think my newest patch should fix it. I simply forgot the inline
keyword. inline functions get invisible if not used by the compiler.
Sorry,
Hannes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-07 22:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-07 21:00 [net-next:master 194/196] include/net/sock.h:1367:9: error: implicit declaration of function 'lockdep_is_held' kbuild test robot
2016-04-07 21:09 ` David Miller
2016-04-07 22:12 ` Hannes Frederic Sowa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox