From: kbuild test robot <lkp@intel.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: kbuild-all@01.org, netdev@vger.kernel.org
Subject: [afaerber:lora-next 14445/14606] net//smc/smc_ib.c:152:2: warning: 'ib_query_gid' is deprecated (declared at include/rdma/ib_cache.h:139)
Date: Mon, 10 Sep 2018 18:04:48 +0800 [thread overview]
Message-ID: <201809101844.PiorZs7P%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3301 bytes --]
tree: git://github.com/afaerber/linux lora-next
head: 51325f8cd6dd80cba7ac6e881fe523ad0475c927
commit: 6a991b35a2fa0b75d99f03c564b40b6b9a5d2aed [14445/14606] Merge remote-tracking branch 'net-next/master'
config: i386-randconfig-j0-09101243 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout 6a991b35a2fa0b75d99f03c564b40b6b9a5d2aed
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
net//smc/smc_ib.c: In function 'smc_ib_fill_mac':
>> net//smc/smc_ib.c:152:2: warning: 'ib_query_gid' is deprecated (declared at include/rdma/ib_cache.h:139) [-Wdeprecated-declarations]
rc = ib_query_gid(smcibdev->ibdev, ibport, 0, &gid, &gattr);
^
net//smc/smc_ib.c: In function 'smc_ib_determine_gid':
net//smc/smc_ib.c:190:3: warning: 'ib_query_gid' is deprecated (declared at include/rdma/ib_cache.h:139) [-Wdeprecated-declarations]
if (ib_query_gid(smcibdev->ibdev, ibport, i, &_gid, &gattr))
^
net//smc/smc_ib.c:190:3: warning: 'ib_query_gid' is deprecated (declared at include/rdma/ib_cache.h:139) [-Wdeprecated-declarations]
In file included from include/linux/kernel.h:10:0,
from include/linux/list.h:9,
from include/linux/random.h:10,
from net//smc/smc_ib.c:15:
include/linux/compiler.h:61:17: warning: 'ib_query_gid' is deprecated (declared at include/rdma/ib_cache.h:139) [-Wdeprecated-declarations]
static struct ftrace_branch_data \
^
include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^
net//smc/smc_ib.c:190:3: note: in expansion of macro 'if'
if (ib_query_gid(smcibdev->ibdev, ibport, i, &_gid, &gattr))
^
vim +/ib_query_gid +152 net//smc/smc_ib.c
bd4ad577 Ursula Braun 2017-01-09 145
7005ada6 Ursula Braun 2018-07-25 146 static int smc_ib_fill_mac(struct smc_ib_device *smcibdev, u8 ibport)
be6a3f38 Ursula Braun 2018-06-28 147 {
be6a3f38 Ursula Braun 2018-06-28 148 struct ib_gid_attr gattr;
7005ada6 Ursula Braun 2018-07-25 149 union ib_gid gid;
be6a3f38 Ursula Braun 2018-06-28 150 int rc;
be6a3f38 Ursula Braun 2018-06-28 151
7005ada6 Ursula Braun 2018-07-25 @152 rc = ib_query_gid(smcibdev->ibdev, ibport, 0, &gid, &gattr);
be6a3f38 Ursula Braun 2018-06-28 153 if (rc || !gattr.ndev)
be6a3f38 Ursula Braun 2018-06-28 154 return -ENODEV;
be6a3f38 Ursula Braun 2018-06-28 155
be6a3f38 Ursula Braun 2018-06-28 156 memcpy(smcibdev->mac[ibport - 1], gattr.ndev->dev_addr, ETH_ALEN);
be6a3f38 Ursula Braun 2018-06-28 157 dev_put(gattr.ndev);
be6a3f38 Ursula Braun 2018-06-28 158 return 0;
be6a3f38 Ursula Braun 2018-06-28 159 }
be6a3f38 Ursula Braun 2018-06-28 160
:::::: The code at line 152 was first introduced by commit
:::::: 7005ada68d1774d7c1109deaba0c2cd8e46f5091 net/smc: use correct vlan gid of RoCE device
:::::: TO: Ursula Braun <ubraun@linux.ibm.com>
:::::: CC: David S. Miller <davem@davemloft.net>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29420 bytes --]
reply other threads:[~2018-09-10 14:58 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=201809101844.PiorZs7P%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=davem@davemloft.net \
--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