[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201710202053.ruGTq0RN%fengguang.wu@intel.com>
Date: Fri, 20 Oct 2017 20:59:58 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Masami Hiramatsu <mhiramat@...nel.org>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
tipbuild@...or.com, Ingo Molnar <mingo@...nel.org>
Subject: [tip:perf/core 18/21] net/dccp/probe.c:166:2: warning:
'register_jprobe' is deprecated
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/core
head: 9b17374e11c7ce2cf0b2b990fa4aa0360921aa2b
commit: 590c845930457d25d27dc1fdd964a1ce18ef2d7d [18/21] kprobes: Disable the jprobes APIs
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 590c845930457d25d27dc1fdd964a1ce18ef2d7d
# save the attached .config to linux build tree
make.cross ARCH=ia64
All warnings (new ones prefixed by >>):
net/dccp/probe.c: In function 'dccpprobe_init':
>> net/dccp/probe.c:166:2: warning: 'register_jprobe' is deprecated [-Wdeprecated-declarations]
ret = register_jprobe(&dccp_send_probe);
^~~
In file included from net/dccp/probe.c:26:0:
include/linux/kprobes.h:471:32: note: declared here
static inline int __deprecated register_jprobe(struct jprobe *p)
^~~~~~~~~~~~~~~
net/dccp/probe.c:170:4: warning: 'register_jprobe' is deprecated [-Wdeprecated-declarations]
ret = register_jprobe(&dccp_send_probe);
^~~
In file included from net/dccp/probe.c:26:0:
include/linux/kprobes.h:471:32: note: declared here
static inline int __deprecated register_jprobe(struct jprobe *p)
^~~~~~~~~~~~~~~
net/dccp/probe.c: In function 'dccpprobe_exit':
>> net/dccp/probe.c:190:2: warning: 'unregister_jprobe' is deprecated [-Wdeprecated-declarations]
unregister_jprobe(&dccp_send_probe);
^~~~~~~~~~~~~~~~~
In file included from net/dccp/probe.c:26:0:
include/linux/kprobes.h:479:33: note: declared here
static inline void __deprecated unregister_jprobe(struct jprobe *p)
^~~~~~~~~~~~~~~~~
--
net/ipv4/tcp_probe.c: In function 'tcpprobe_init':
>> net/ipv4/tcp_probe.c:280:2: warning: 'register_jprobe' is deprecated [-Wdeprecated-declarations]
ret = register_jprobe(&tcp_jprobe);
^~~
In file included from net/ipv4/tcp_probe.c:24:0:
include/linux/kprobes.h:471:32: note: declared here
static inline int __deprecated register_jprobe(struct jprobe *p)
^~~~~~~~~~~~~~~
net/ipv4/tcp_probe.c: In function 'tcpprobe_exit':
>> net/ipv4/tcp_probe.c:298:2: warning: 'unregister_jprobe' is deprecated [-Wdeprecated-declarations]
unregister_jprobe(&tcp_jprobe);
^~~~~~~~~~~~~~~~~
In file included from net/ipv4/tcp_probe.c:24:0:
include/linux/kprobes.h:479:33: note: declared here
static inline void __deprecated unregister_jprobe(struct jprobe *p)
^~~~~~~~~~~~~~~~~
--
net/sctp/probe.c: In function 'sctp_setup_jprobe':
>> net/sctp/probe.c:189:2: warning: 'register_jprobe' is deprecated [-Wdeprecated-declarations]
int ret = register_jprobe(&sctp_recv_probe);
^~~
In file included from net/sctp/probe.c:28:0:
include/linux/kprobes.h:471:32: note: declared here
static inline int __deprecated register_jprobe(struct jprobe *p)
^~~~~~~~~~~~~~~
net/sctp/probe.c:194:3: warning: 'register_jprobe' is deprecated [-Wdeprecated-declarations]
ret = register_jprobe(&sctp_recv_probe);
^~~
In file included from net/sctp/probe.c:28:0:
include/linux/kprobes.h:471:32: note: declared here
static inline int __deprecated register_jprobe(struct jprobe *p)
^~~~~~~~~~~~~~~
net/sctp/probe.c: In function 'sctpprobe_exit':
>> net/sctp/probe.c:240:2: warning: 'unregister_jprobe' is deprecated [-Wdeprecated-declarations]
unregister_jprobe(&sctp_recv_probe);
^~~~~~~~~~~~~~~~~
In file included from net/sctp/probe.c:28:0:
include/linux/kprobes.h:479:33: note: declared here
static inline void __deprecated unregister_jprobe(struct jprobe *p)
^~~~~~~~~~~~~~~~~
vim +/register_jprobe +166 net/dccp/probe.c
e41542f5 Ian McDonald 2006-09-22 154
e41542f5 Ian McDonald 2006-09-22 155 static __init int dccpprobe_init(void)
e41542f5 Ian McDonald 2006-09-22 156 {
e41542f5 Ian McDonald 2006-09-22 157 int ret = -ENOMEM;
e41542f5 Ian McDonald 2006-09-22 158
e41542f5 Ian McDonald 2006-09-22 159 init_waitqueue_head(&dccpw.wait);
e41542f5 Ian McDonald 2006-09-22 160 spin_lock_init(&dccpw.lock);
c1e13f25 Stefani Seibold 2009-12-21 161 if (kfifo_alloc(&dccpw.fifo, bufsize, GFP_KERNEL))
45465487 Stefani Seibold 2009-12-21 162 return ret;
d4beaa66 Gao feng 2013-02-18 163 if (!proc_create(procname, S_IRUSR, init_net.proc_net, &dccpprobe_fops))
e41542f5 Ian McDonald 2006-09-22 164 goto err0;
e41542f5 Ian McDonald 2006-09-22 165
965cdea8 Wang Weidong 2013-12-17 @166 ret = register_jprobe(&dccp_send_probe);
965cdea8 Wang Weidong 2013-12-17 167 if (ret) {
965cdea8 Wang Weidong 2013-12-17 168 ret = request_module("dccp");
965cdea8 Wang Weidong 2013-12-17 169 if (!ret)
965cdea8 Wang Weidong 2013-12-17 @170 ret = register_jprobe(&dccp_send_probe);
965cdea8 Wang Weidong 2013-12-17 171 }
965cdea8 Wang Weidong 2013-12-17 172
e41542f5 Ian McDonald 2006-09-22 173 if (ret)
e41542f5 Ian McDonald 2006-09-22 174 goto err1;
e41542f5 Ian McDonald 2006-09-22 175
e41542f5 Ian McDonald 2006-09-22 176 pr_info("DCCP watch registered (port=%d)\n", port);
e41542f5 Ian McDonald 2006-09-22 177 return 0;
e41542f5 Ian McDonald 2006-09-22 178 err1:
ece31ffd Gao feng 2013-02-18 179 remove_proc_entry(procname, init_net.proc_net);
e41542f5 Ian McDonald 2006-09-22 180 err0:
45465487 Stefani Seibold 2009-12-21 181 kfifo_free(&dccpw.fifo);
e41542f5 Ian McDonald 2006-09-22 182 return ret;
e41542f5 Ian McDonald 2006-09-22 183 }
e41542f5 Ian McDonald 2006-09-22 184 module_init(dccpprobe_init);
e41542f5 Ian McDonald 2006-09-22 185
e41542f5 Ian McDonald 2006-09-22 186 static __exit void dccpprobe_exit(void)
e41542f5 Ian McDonald 2006-09-22 187 {
45465487 Stefani Seibold 2009-12-21 188 kfifo_free(&dccpw.fifo);
ece31ffd Gao feng 2013-02-18 189 remove_proc_entry(procname, init_net.proc_net);
e41542f5 Ian McDonald 2006-09-22 @190 unregister_jprobe(&dccp_send_probe);
e41542f5 Ian McDonald 2006-09-22 191
:::::: The code at line 166 was first introduced by commit
:::::: 965cdea825693c821d200e38fac9402cde6dce6a dccp: catch failed request_module call in dccp_probe init
:::::: TO: Wang Weidong <wangweidong1@...wei.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" (48793 bytes)
Powered by blists - more mailing lists