[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201602262254.BbO8M5Wa%fengguang.wu@intel.com>
Date: Fri, 26 Feb 2016 22:30:08 +0800
From: kbuild test robot <lkp@...el.com>
To: Alexander Potapenko <glider@...gle.com>
Cc: kbuild-all@...org, adech.fo@...il.com, cl@...ux.com,
dvyukov@...gle.com, akpm@...ux-foundation.org,
ryabinin.a.a@...il.com, rostedt@...dmis.org,
iamjoonsoo.kim@....com, js1304@...il.com, kcc@...gle.com,
kasan-dev@...glegroups.com, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [PATCH v3 2/7] mm, kasan: SLAB support
Hi Alexander,
[auto build test WARNING on tip/x86/core]
[also build test WARNING on v4.5-rc5]
[cannot apply to next-20160226]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Alexander-Potapenko/SLAB-support-for-KASAN/20160226-213301
config: x86_64-randconfig-s0-02262205 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from mm/kasan/report.c:16:
mm/kasan/report.c: In function 'print_track':
>> include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^
include/linux/printk.h:252:9: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^
>> mm/kasan/report.c:120:2: note: in expansion of macro 'pr_err'
pr_err("PID = %lu, CPU = %lu, timestamp = %lu\n", track->pid,
^
include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^
include/linux/printk.h:252:9: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^
>> mm/kasan/report.c:120:2: note: in expansion of macro 'pr_err'
pr_err("PID = %lu, CPU = %lu, timestamp = %lu\n", track->pid,
^
>> include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'long unsigned int:42' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH'
#define KERN_ERR KERN_SOH "3" /* error conditions */
^
include/linux/printk.h:252:9: note: in expansion of macro 'KERN_ERR'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
^
>> mm/kasan/report.c:120:2: note: in expansion of macro 'pr_err'
pr_err("PID = %lu, CPU = %lu, timestamp = %lu\n", track->pid,
^
mm/kasan/report.c: At top level:
mm/kasan/report.c:124:13: warning: 'print_object' defined but not used [-Wunused-function]
static void print_object(struct kmem_cache *cache, void *object)
^
vim +/pr_err +120 mm/kasan/report.c
104 if (addr >= (void *)_stext && addr < (void *)_end)
105 return true;
106 if (is_module_address((unsigned long)addr))
107 return true;
108 return false;
109 }
110
111 static inline bool init_task_stack_addr(const void *addr)
112 {
113 return addr >= (void *)&init_thread_union.stack &&
114 (addr <= (void *)&init_thread_union.stack +
115 sizeof(init_thread_union.stack));
116 }
117
118 static void print_track(struct kasan_track *track)
119 {
> 120 pr_err("PID = %lu, CPU = %lu, timestamp = %lu\n", track->pid,
121 track->cpu, track->when);
122 }
123
124 static void print_object(struct kmem_cache *cache, void *object)
125 {
126 struct kasan_alloc_meta *alloc_info = get_alloc_info(cache, object);
127 struct kasan_free_meta *free_info;
128
---
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/octet-stream" (28937 bytes)
Powered by blists - more mailing lists