[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201809101844.PiorZs7P%fengguang.wu@intel.com>
Date: Mon, 10 Sep 2018 18:04:48 +0800
From: kbuild test robot <lkp@...el.com>
To: "David S. Miller" <davem@...emloft.net>
Cc: kbuild-all@...org, netdev@...r.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)
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@...ux.ibm.com>
:::::: CC: David S. Miller <davem@...emloft.net>
---
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/gzip" (29420 bytes)
Powered by blists - more mailing lists