Re: [PATCH] kasan: Respect /proc/sys/kernel/traceoff_on_warning

From: kbuild test robot
Date: Wed Jan 25 2017 - 10:34:26 EST


Hi Peter,

[auto build test ERROR on mmotm/master]
[also build test ERROR on v4.10-rc5 next-20170125]
[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/Peter-Zijlstra/kasan-Respect-proc-sys-kernel-traceoff_on_warning/20170125-230535
base: git://git.cmpxchg.org/linux-mmotm.git master
config: x86_64-randconfig-x008-201704 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

mm/kasan/report.c: In function 'kasan_report':
>> mm/kasan/report.c:303:2: error: implicit declaration of function 'disable_trace_on_warning' [-Werror=implicit-function-declaration]
disable_trace_on_warning();
^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/disable_trace_on_warning +303 mm/kasan/report.c

297 {
298 struct kasan_access_info info;
299
300 if (likely(!kasan_report_enabled()))
301 return;
302
> 303 disable_trace_on_warning();
304
305 info.access_addr = (void *)addr;
306 info.access_size = size;

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

Attachment: .config.gz
Description: application/gzip