From: kbuild test robot <fengguang.wu@intel.com>
To: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: kbuild-all@01.org, netdev@vger.kernel.org
Subject: [net-next:master 194/208] include/net/sock.h:1363:13: error: 'lockdep_sock_is_held' defined but not used
Date: Fri, 8 Apr 2016 05:34:28 +0800 [thread overview]
Message-ID: <201604080525.GUAYfEjK%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2190 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 889750bd2e08a94d52a116056d462b3a8e5616a7
commit: 1e1d04e678cf72442f57ce82803c7a407769135f [194/208] net: introduce lockdep_is_held and update various places to use it
config: sparc64-allnoconfig (attached as .config)
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
git checkout 1e1d04e678cf72442f57ce82803c7a407769135f
# save the attached .config to linux build tree
make.cross ARCH=sparc64
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 arch/sparc/kernel/sys_sparc32.c:24:
include/net/sock.h: In function 'lockdep_sock_is_held':
include/net/sock.h:1367:2: error: implicit declaration of function 'lockdep_is_held' [-Werror=implicit-function-declaration]
return lockdep_is_held(&sk->sk_lock) ||
^
arch/sparc/kernel/sys_sparc32.c: At top level:
>> include/net/sock.h:1363:13: error: 'lockdep_sock_is_held' defined but not used [-Werror=unused-function]
static bool lockdep_sock_is_held(const struct sock *csk)
^
cc1: all warnings being treated as errors
vim +/lockdep_sock_is_held +1363 include/net/sock.h
1357 sizeof((sk)->sk_lock)); \
1358 lockdep_set_class_and_name(&(sk)->sk_lock.slock, \
1359 (skey), (sname)); \
1360 lockdep_init_map(&(sk)->sk_lock.dep_map, (name), (key), 0); \
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: 4893 bytes --]
reply other threads:[~2016-04-07 21:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201604080525.GUAYfEjK%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=hannes@stressinduktion.org \
--cc=kbuild-all@01.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox