Skip to content
  • Pekka Enberg's avatar
    slab: fix gfp flag in setup_cpu_cache() · eb91f1d0
    Pekka Enberg authored
    
    
    Fixes the following warning during bootup when compiling with CONFIG_SLAB:
    
      [    0.000000] ------------[ cut here ]------------
      [    0.000000] WARNING: at kernel/lockdep.c:2282 lockdep_trace_alloc+0x91/0xb9()
      [    0.000000] Hardware name:
      [    0.000000] Modules linked in:
      [    0.000000] Pid: 0, comm: swapper Not tainted 2.6.30 #491
      [    0.000000] Call Trace:
      [    0.000000]  [<ffffffff81087d84>] ? lockdep_trace_alloc+0x91/0xb9
      [    0.000000]  [<ffffffff81061764>] warn_slowpath_common+0x7c/0xa9
      [    0.000000]  [<ffffffff810617a5>] warn_slowpath_null+0x14/0x16
      [    0.000000]  [<ffffffff81087d84>] lockdep_trace_alloc+0x91/0xb9
      [    0.000000]  [<ffffffff810f5b03>] kmem_cache_alloc_node_notrace+0x26/0xdf
      [    0.000000]  [<ffffffff81487f4e>] ? setup_cpu_cache+0x7e/0x210
      [    0.000000]  [<ffffffff81487fe3>] setup_cpu_cache+0x113/0x210
      [    0.000000]  [<ffffffff810f73ff>] kmem_cache_create+0x409/0x486
      [    0.000000]  [<ffffffff818131c1>] kmem_cache_init+0x232/0x593
      [    0.000000]  [<ffffffff8180987c>] ? mem_init+0x156/0x161
      [    0.000000]  [<ffffffff817f8aae>] start_kernel+0x1cc/0x3b9
      [    0.000000]  [<ffffffff817f829a>] x86_64_start_reservations+0xaa/0xae
      [    0.000000]  [<ffffffff817f837f>] x86_64_start_kernel+0xe1/0xe8
      [    0.000000] ---[ end trace 4eaa2a86a8e2da22 ]---
    
    Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
    eb91f1d0