Re: [PATCH] selftests/livepatch: introduce tests

From: kbuild test robot
Date: Thu Mar 29 2018 - 16:43:35 EST


Hi Joe,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.16-rc7 next-20180329]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Joe-Lawrence/selftests-livepatch-introduce-tests/20180330-004235
config: s390-allyesconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=s390

All errors (new ones prefixed by >>):

lib/livepatch/test_klp_atomic_replace.c: In function 'livepatch_init':
>> lib/livepatch/test_klp_atomic_replace.c:46:7: error: 'struct klp_patch' has no member named 'replace'
patch.replace = replace;
^
--
lib/livepatch/test_klp_callbacks_demo2.c: In function 'livepatch_callbacks_demo2_init':
>> lib/livepatch/test_klp_callbacks_demo2.c:81:7: error: 'struct klp_patch' has no member named 'replace'
patch.replace = replace;
^

vim +46 lib/livepatch/test_klp_atomic_replace.c

41
42 static int livepatch_init(void)
43 {
44 int ret;
45
> 46 patch.replace = replace;
47
48 ret = klp_register_patch(&patch);
49 if (ret)
50 return ret;
51 ret = klp_enable_patch(&patch);
52 if (ret) {
53 WARN_ON(klp_unregister_patch(&patch));
54 return ret;
55 }
56 return 0;
57 }
58

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip