Netdev List
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: kbuild-all@01.org, netdev@vger.kernel.org
Subject: [linux-next:master 11347/11797] include/linux/compiler.h:61:17: warning: 'ib_query_gid' is deprecated
Date: Sat, 4 Aug 2018 07:12:09 +0800	[thread overview]
Message-ID: <201808040706.Kfe7rqCZ%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 7016 bytes --]

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@redhat.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
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: 27074 bytes --]

                 reply	other threads:[~2018-08-04  1:11 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=201808040706.Kfe7rqCZ%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