[tip:perf/core 18/21] drivers/misc/lkdtm_core.c:317:3: warning: 'unregister_jprobe' is deprecated
From: kbuild test robot
Date: Fri Oct 20 2017 - 08:58:00 EST
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: blackfin-allyesconfig (attached as .config)
compiler: bfin-uclinux-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=blackfin
All warnings (new ones prefixed by >>):
drivers/misc/lkdtm_core.c: In function 'lkdtm_register_cpoint':
>> drivers/misc/lkdtm_core.c:317:3: warning: 'unregister_jprobe' is deprecated [-Wdeprecated-declarations]
unregister_jprobe(lkdtm_jprobe);
^~~~~~~~~~~~~~~~~
In file included from drivers/misc/lkdtm_core.c:37:0:
include/linux/kprobes.h:479:33: note: declared here
static inline void __deprecated unregister_jprobe(struct jprobe *p)
^~~~~~~~~~~~~~~~~
>> drivers/misc/lkdtm_core.c:322:2: warning: 'register_jprobe' is deprecated [-Wdeprecated-declarations]
ret = register_jprobe(lkdtm_jprobe);
^~~
In file included from drivers/misc/lkdtm_core.c:37:0:
include/linux/kprobes.h:471:32: note: declared here
static inline int __deprecated register_jprobe(struct jprobe *p)
^~~~~~~~~~~~~~~
drivers/misc/lkdtm_core.c: In function 'lkdtm_module_exit':
drivers/misc/lkdtm_core.c:560:3: warning: 'unregister_jprobe' is deprecated [-Wdeprecated-declarations]
unregister_jprobe(lkdtm_jprobe);
^~~~~~~~~~~~~~~~~
In file included from drivers/misc/lkdtm_core.c:37:0:
include/linux/kprobes.h:479:33: note: declared here
static inline void __deprecated unregister_jprobe(struct jprobe *p)
^~~~~~~~~~~~~~~~~
vim +/unregister_jprobe +317 drivers/misc/lkdtm_core.c
0347af4e drivers/misc/lkdtm.c Simon Kagstrom 2010-03-05 304
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 305 static int lkdtm_register_cpoint(struct crashpoint *crashpoint,
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 306 struct crashtype *crashtype)
8bb31b9d drivers/misc/lkdtm.c Ankita Garg 2006-10-02 307 {
8bb31b9d drivers/misc/lkdtm.c Ankita Garg 2006-10-02 308 int ret;
8bb31b9d drivers/misc/lkdtm.c Ankita Garg 2006-10-02 309
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 310 /* If this doesn't have a symbol, just call immediately. */
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 311 if (!crashpoint->jprobe.kp.symbol_name) {
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 312 lkdtm_do_action(crashtype);
0347af4e drivers/misc/lkdtm.c Simon Kagstrom 2010-03-05 313 return 0;
8bb31b9d drivers/misc/lkdtm.c Ankita Garg 2006-10-02 314 }
8bb31b9d drivers/misc/lkdtm.c Ankita Garg 2006-10-02 315
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 316 if (lkdtm_jprobe != NULL)
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 @317 unregister_jprobe(lkdtm_jprobe);
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 318
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 319 lkdtm_crashpoint = crashpoint;
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 320 lkdtm_crashtype = crashtype;
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 321 lkdtm_jprobe = &crashpoint->jprobe;
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 @322 ret = register_jprobe(lkdtm_jprobe);
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 323 if (ret < 0) {
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 324 pr_info("Couldn't register jprobe %s\n",
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 325 crashpoint->jprobe.kp.symbol_name);
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 326 lkdtm_jprobe = NULL;
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 327 lkdtm_crashpoint = NULL;
c479e3fd drivers/misc/lkdtm_core.c Kees Cook 2016-06-29 328 lkdtm_crashtype = NULL;
0347af4e drivers/misc/lkdtm.c Simon Kagstrom 2010-03-05 329 }
0347af4e drivers/misc/lkdtm.c Simon Kagstrom 2010-03-05 330
8bb31b9d drivers/misc/lkdtm.c Ankita Garg 2006-10-02 331 return ret;
8bb31b9d drivers/misc/lkdtm.c Ankita Garg 2006-10-02 332 }
8bb31b9d drivers/misc/lkdtm.c Ankita Garg 2006-10-02 333
:::::: The code at line 317 was first introduced by commit
:::::: c479e3fd88703c4b1049d7102a3fa8c6b3affef5 lkdtm: use struct arrays instead of enums
:::::: TO: Kees Cook <keescook@xxxxxxxxxxxx>
:::::: CC: Kees Cook <keescook@xxxxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip