[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201808040706.Kfe7rqCZ%fengguang.wu@intel.com>
Date: Sat, 4 Aug 2018 07:12:09 +0800
From: kbuild test robot <lkp@...el.com>
To: "David S. Miller" <davem@...emloft.net>
Cc: kbuild-all@...org, netdev@...r.kernel.org
Subject: [linux-next:master 11347/11797] include/linux/compiler.h:61:17:
warning: 'ib_query_gid' is deprecated
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 116b181bb646afedd770985de20a68721bdb2648
commit: 9f4c2b1ceca8021c68c23e655b275c693367a48c [11347/11797] next-20180802/net-next
config: x86_64-randconfig-s1-08040602 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
git checkout 9f4c2b1ceca8021c68c23e655b275c693367a48c
# save the attached .config to linux build tree
make ARCH=x86_64
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 [-Wdeprecated-declarations]
rc = ib_query_gid(smcibdev->ibdev, ibport, 0, &gid, &gattr);
^~
In file included from net/smc/smc_ib.c:19:0:
include/rdma/ib_cache.h:139:32: note: declared here
static inline __deprecated int ib_query_gid(struct ib_device *device,
^~~~~~~~~~~~
net/smc/smc_ib.c: In function 'smc_ib_determine_gid':
net/smc/smc_ib.c:190:3: warning: 'ib_query_gid' is deprecated [-Wdeprecated-declarations]
if (ib_query_gid(smcibdev->ibdev, ibport, i, &_gid, &gattr))
^~
In file included from net/smc/smc_ib.c:19:0:
include/rdma/ib_cache.h:139:32: note: declared here
static inline __deprecated int ib_query_gid(struct ib_device *device,
^~~~~~~~~~~~
net/smc/smc_ib.c:190:3: warning: 'ib_query_gid' is deprecated [-Wdeprecated-declarations]
if (ib_query_gid(smcibdev->ibdev, ibport, i, &_gid, &gattr))
^~
In file included from net/smc/smc_ib.c:19:0:
include/rdma/ib_cache.h:139:32: note: declared here
static inline __deprecated int ib_query_gid(struct ib_device *device,
^~~~~~~~~~~~
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 [-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))
^~
In file included from net/smc/smc_ib.c:19:0:
include/rdma/ib_cache.h:139:32: note: declared here
static inline __deprecated int ib_query_gid(struct ib_device *device,
^~~~~~~~~~~~
--
net//smc/smc_ib.c: In function 'smc_ib_fill_mac':
net//smc/smc_ib.c:152:2: warning: 'ib_query_gid' is deprecated [-Wdeprecated-declarations]
rc = ib_query_gid(smcibdev->ibdev, ibport, 0, &gid, &gattr);
^~
In file included from net//smc/smc_ib.c:19:0:
include/rdma/ib_cache.h:139:32: note: declared here
static inline __deprecated int ib_query_gid(struct ib_device *device,
^~~~~~~~~~~~
net//smc/smc_ib.c: In function 'smc_ib_determine_gid':
net//smc/smc_ib.c:190:3: warning: 'ib_query_gid' is deprecated [-Wdeprecated-declarations]
if (ib_query_gid(smcibdev->ibdev, ibport, i, &_gid, &gattr))
^~
In file included from net//smc/smc_ib.c:19:0:
include/rdma/ib_cache.h:139:32: note: declared here
static inline __deprecated int ib_query_gid(struct ib_device *device,
^~~~~~~~~~~~
net//smc/smc_ib.c:190:3: warning: 'ib_query_gid' is deprecated [-Wdeprecated-declarations]
if (ib_query_gid(smcibdev->ibdev, ibport, i, &_gid, &gattr))
^~
In file included from net//smc/smc_ib.c:19:0:
include/rdma/ib_cache.h:139:32: note: declared here
static inline __deprecated int ib_query_gid(struct ib_device *device,
^~~~~~~~~~~~
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 [-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))
^~
In file included from net//smc/smc_ib.c:19:0:
include/rdma/ib_cache.h:139:32: note: declared here
static inline __deprecated int ib_query_gid(struct ib_device *device,
^~~~~~~~~~~~
vim +/ib_query_gid +61 include/linux/compiler.h
2bcd521a Steven Rostedt 2008-11-21 50
2bcd521a Steven Rostedt 2008-11-21 51 #ifdef CONFIG_PROFILE_ALL_BRANCHES
2bcd521a Steven Rostedt 2008-11-21 52 /*
2bcd521a Steven Rostedt 2008-11-21 53 * "Define 'is'", Bill Clinton
2bcd521a Steven Rostedt 2008-11-21 54 * "Define 'if'", Steven Rostedt
2bcd521a Steven Rostedt 2008-11-21 55 */
ab3c9c68 Linus Torvalds 2009-04-07 56 #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
ab3c9c68 Linus Torvalds 2009-04-07 57 #define __trace_if(cond) \
b33c8ff4 Arnd Bergmann 2016-02-12 58 if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
2bcd521a Steven Rostedt 2008-11-21 59 ({ \
2bcd521a Steven Rostedt 2008-11-21 60 int ______r; \
2bcd521a Steven Rostedt 2008-11-21 @61 static struct ftrace_branch_data \
2bcd521a Steven Rostedt 2008-11-21 62 __attribute__((__aligned__(4))) \
2bcd521a Steven Rostedt 2008-11-21 63 __attribute__((section("_ftrace_branch"))) \
2bcd521a Steven Rostedt 2008-11-21 64 ______f = { \
2bcd521a Steven Rostedt 2008-11-21 65 .func = __func__, \
2bcd521a Steven Rostedt 2008-11-21 66 .file = __FILE__, \
2bcd521a Steven Rostedt 2008-11-21 67 .line = __LINE__, \
2bcd521a Steven Rostedt 2008-11-21 68 }; \
2bcd521a Steven Rostedt 2008-11-21 69 ______r = !!(cond); \
97e7e4f3 Witold Baryluk 2009-03-17 70 ______f.miss_hit[______r]++; \
2bcd521a Steven Rostedt 2008-11-21 71 ______r; \
2bcd521a Steven Rostedt 2008-11-21 72 }))
2bcd521a Steven Rostedt 2008-11-21 73 #endif /* CONFIG_PROFILE_ALL_BRANCHES */
2bcd521a Steven Rostedt 2008-11-21 74
:::::: The code at line 61 was first introduced by commit
:::::: 2bcd521a684cc94befbe2ce7d5b613c841b0d304 trace: profile all if conditionals
:::::: TO: Steven Rostedt <srostedt@...hat.com>
:::::: CC: Ingo Molnar <mingo@...e.hu>
---
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" (27074 bytes)
Powered by blists - more mailing lists