lkml.org 
[lkml]   [2017]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v6 5/7] mm: make tlb_flush_pending global
Hi Minchan,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.13-rc3]
[cannot apply to next-20170802]
[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/Nadav-Amit/mm-migrate-prevent-racy-access-to-tlb_flush_pending/20170802-205715
config: sh-allyesconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/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=sh

All warnings (new ones prefixed by >>):

In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:13,
from mm/debug.c:8:
mm/debug.c: In function 'dump_mm':
>> include/linux/kern_levels.h:4:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 40 has type 'int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:7:20: note: in expansion of macro 'KERN_SOH'
#define KERN_EMERG KERN_SOH "0" /* system is unusable */
^~~~~~~~
>> include/linux/printk.h:295:9: note: in expansion of macro 'KERN_EMERG'
printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
>> mm/debug.c:102:2: note: in expansion of macro 'pr_emerg'
pr_emerg("mm %p mmap %p seqnum %d task_size %lu\n"
^~~~~~~~
>> include/linux/kern_levels.h:4:18: warning: format '%p' expects argument of type 'void *', but argument 41 has type 'long unsigned int' [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:7:20: note: in expansion of macro 'KERN_SOH'
#define KERN_EMERG KERN_SOH "0" /* system is unusable */
^~~~~~~~
>> include/linux/printk.h:295:9: note: in expansion of macro 'KERN_EMERG'
printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
>> mm/debug.c:102:2: note: in expansion of macro 'pr_emerg'
pr_emerg("mm %p mmap %p seqnum %d task_size %lu\n"
^~~~~~~~
>> include/linux/kern_levels.h:4:18: warning: too many arguments for format [-Wformat-extra-args]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
include/linux/kern_levels.h:7:20: note: in expansion of macro 'KERN_SOH'
#define KERN_EMERG KERN_SOH "0" /* system is unusable */
^~~~~~~~
>> include/linux/printk.h:295:9: note: in expansion of macro 'KERN_EMERG'
printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~
>> mm/debug.c:102:2: note: in expansion of macro 'pr_emerg'
pr_emerg("mm %p mmap %p seqnum %d task_size %lu\n"
^~~~~~~~

vim +/pr_emerg +102 mm/debug.c

82742a3a5 Sasha Levin 2014-10-09 99
31c9afa6d Sasha Levin 2014-10-09 100 void dump_mm(const struct mm_struct *mm)
31c9afa6d Sasha Levin 2014-10-09 101 {
7a82ca0d6 Andrew Morton 2014-10-09 @102 pr_emerg("mm %p mmap %p seqnum %d task_size %lu\n"
31c9afa6d Sasha Levin 2014-10-09 103 #ifdef CONFIG_MMU
31c9afa6d Sasha Levin 2014-10-09 104 "get_unmapped_area %p\n"
31c9afa6d Sasha Levin 2014-10-09 105 #endif
31c9afa6d Sasha Levin 2014-10-09 106 "mmap_base %lu mmap_legacy_base %lu highest_vm_end %lu\n"
dc6c9a35b Kirill A. Shutemov 2015-02-11 107 "pgd %p mm_users %d mm_count %d nr_ptes %lu nr_pmds %lu map_count %d\n"
31c9afa6d Sasha Levin 2014-10-09 108 "hiwater_rss %lx hiwater_vm %lx total_vm %lx locked_vm %lx\n"
846383359 Konstantin Khlebnikov 2016-01-14 109 "pinned_vm %lx data_vm %lx exec_vm %lx stack_vm %lx\n"
31c9afa6d Sasha Levin 2014-10-09 110 "start_code %lx end_code %lx start_data %lx end_data %lx\n"
31c9afa6d Sasha Levin 2014-10-09 111 "start_brk %lx brk %lx start_stack %lx\n"
31c9afa6d Sasha Levin 2014-10-09 112 "arg_start %lx arg_end %lx env_start %lx env_end %lx\n"
31c9afa6d Sasha Levin 2014-10-09 113 "binfmt %p flags %lx core_state %p\n"
31c9afa6d Sasha Levin 2014-10-09 114 #ifdef CONFIG_AIO
31c9afa6d Sasha Levin 2014-10-09 115 "ioctx_table %p\n"
31c9afa6d Sasha Levin 2014-10-09 116 #endif
31c9afa6d Sasha Levin 2014-10-09 117 #ifdef CONFIG_MEMCG
31c9afa6d Sasha Levin 2014-10-09 118 "owner %p "
31c9afa6d Sasha Levin 2014-10-09 119 #endif
31c9afa6d Sasha Levin 2014-10-09 120 "exe_file %p\n"
31c9afa6d Sasha Levin 2014-10-09 121 #ifdef CONFIG_MMU_NOTIFIER
31c9afa6d Sasha Levin 2014-10-09 122 "mmu_notifier_mm %p\n"
31c9afa6d Sasha Levin 2014-10-09 123 #endif
31c9afa6d Sasha Levin 2014-10-09 124 #ifdef CONFIG_NUMA_BALANCING
31c9afa6d Sasha Levin 2014-10-09 125 "numa_next_scan %lu numa_scan_offset %lu numa_scan_seq %d\n"
31c9afa6d Sasha Levin 2014-10-09 126 #endif
31c9afa6d Sasha Levin 2014-10-09 127 #if defined(CONFIG_NUMA_BALANCING) || defined(CONFIG_COMPACTION)
31c9afa6d Sasha Levin 2014-10-09 128 "tlb_flush_pending %d\n"
31c9afa6d Sasha Levin 2014-10-09 129 #endif
b8eceeb99 Vlastimil Babka 2016-03-15 130 "def_flags: %#lx(%pGv)\n",
31c9afa6d Sasha Levin 2014-10-09 131
31c9afa6d Sasha Levin 2014-10-09 132 mm, mm->mmap, mm->vmacache_seqnum, mm->task_size,
31c9afa6d Sasha Levin 2014-10-09 133 #ifdef CONFIG_MMU
31c9afa6d Sasha Levin 2014-10-09 134 mm->get_unmapped_area,
31c9afa6d Sasha Levin 2014-10-09 135 #endif
31c9afa6d Sasha Levin 2014-10-09 136 mm->mmap_base, mm->mmap_legacy_base, mm->highest_vm_end,
31c9afa6d Sasha Levin 2014-10-09 137 mm->pgd, atomic_read(&mm->mm_users),
31c9afa6d Sasha Levin 2014-10-09 138 atomic_read(&mm->mm_count),
31c9afa6d Sasha Levin 2014-10-09 139 atomic_long_read((atomic_long_t *)&mm->nr_ptes),
dc6c9a35b Kirill A. Shutemov 2015-02-11 140 mm_nr_pmds((struct mm_struct *)mm),
31c9afa6d Sasha Levin 2014-10-09 141 mm->map_count,
31c9afa6d Sasha Levin 2014-10-09 142 mm->hiwater_rss, mm->hiwater_vm, mm->total_vm, mm->locked_vm,
846383359 Konstantin Khlebnikov 2016-01-14 143 mm->pinned_vm, mm->data_vm, mm->exec_vm, mm->stack_vm,
31c9afa6d Sasha Levin 2014-10-09 144 mm->start_code, mm->end_code, mm->start_data, mm->end_data,
31c9afa6d Sasha Levin 2014-10-09 145 mm->start_brk, mm->brk, mm->start_stack,
31c9afa6d Sasha Levin 2014-10-09 146 mm->arg_start, mm->arg_end, mm->env_start, mm->env_end,
31c9afa6d Sasha Levin 2014-10-09 147 mm->binfmt, mm->flags, mm->core_state,
31c9afa6d Sasha Levin 2014-10-09 148 #ifdef CONFIG_AIO
31c9afa6d Sasha Levin 2014-10-09 149 mm->ioctx_table,
31c9afa6d Sasha Levin 2014-10-09 150 #endif
31c9afa6d Sasha Levin 2014-10-09 151 #ifdef CONFIG_MEMCG
31c9afa6d Sasha Levin 2014-10-09 152 mm->owner,
31c9afa6d Sasha Levin 2014-10-09 153 #endif
31c9afa6d Sasha Levin 2014-10-09 154 mm->exe_file,
31c9afa6d Sasha Levin 2014-10-09 155 #ifdef CONFIG_MMU_NOTIFIER
31c9afa6d Sasha Levin 2014-10-09 156 mm->mmu_notifier_mm,
31c9afa6d Sasha Levin 2014-10-09 157 #endif
31c9afa6d Sasha Levin 2014-10-09 158 #ifdef CONFIG_NUMA_BALANCING
31c9afa6d Sasha Levin 2014-10-09 159 mm->numa_next_scan, mm->numa_scan_offset, mm->numa_scan_seq,
31c9afa6d Sasha Levin 2014-10-09 160 #endif
fd2fc6e1f Nadav Amit 2017-08-01 161 atomic_read(&mm->tlb_flush_pending),
b8eceeb99 Vlastimil Babka 2016-03-15 162 mm->def_flags, &mm->def_flags
31c9afa6d Sasha Levin 2014-10-09 163 );
31c9afa6d Sasha Levin 2014-10-09 164 }
31c9afa6d Sasha Levin 2014-10-09 165

:::::: The code at line 102 was first introduced by commit
:::::: 7a82ca0d6437261d0727ce472ae4f3a05a9ce5f7 mm/debug.c: use pr_emerg()

:::::: TO: Andrew Morton <akpm@linux-foundation.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-08-02 16:30    [W:0.317 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site