linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Christoph Lameter <cl@linux-foundation.org>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 12891/13017] mm/slub.c:2396:1: warning: '___slab_alloc' uses dynamic stack allocation
Date: Wed, 11 Nov 2015 14:34:19 +0800	[thread overview]
Message-ID: <201511111413.65wysS6A%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3673 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   2bba65ab5f9f1cebd21d95c410b96952851f58b3
commit: e191357c4c31d02eb30736a49327ef32407fab47 [12891/13017] slub: create new ___slab_alloc function that can be called with irqs disabled
config: s390-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout e191357c4c31d02eb30736a49327ef32407fab47
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   mm/slub.c: In function 'unfreeze_partials.isra.42':
   mm/slub.c:2019:1: warning: 'unfreeze_partials.isra.42' uses dynamic stack allocation
    }
    ^
   mm/slub.c: In function 'get_partial_node.isra.43':
   mm/slub.c:1654:1: warning: 'get_partial_node.isra.43' uses dynamic stack allocation
    }
    ^
   mm/slub.c: In function 'deactivate_slab':
   mm/slub.c:1951:1: warning: 'deactivate_slab' uses dynamic stack allocation
    }
    ^
   mm/slub.c: In function '__slab_free':
   mm/slub.c:2696:1: warning: '__slab_free' uses dynamic stack allocation
    }
    ^
   mm/slub.c: In function '___slab_alloc':
>> mm/slub.c:2396:1: warning: '___slab_alloc' uses dynamic stack allocation
    }
    ^

vim +/___slab_alloc +2396 mm/slub.c

71c7a06f Christoph Lameter 2008-02-14  2380  		return NULL;
497b66f2 Christoph Lameter 2011-08-09  2381  	}
2cfb7455 Christoph Lameter 2011-06-01  2382  
f6e7def7 Christoph Lameter 2012-05-09  2383  	page = c->page;
5091b74a Christoph Lameter 2012-07-31  2384  	if (likely(!kmem_cache_debug(s) && pfmemalloc_match(page, gfpflags)))
497b66f2 Christoph Lameter 2011-08-09  2385  		goto load_freelist;
497b66f2 Christoph Lameter 2011-08-09  2386  
497b66f2 Christoph Lameter 2011-08-09  2387  	/* Only entered in the debug case */
d0e0ac97 Chen Gang         2013-07-15  2388  	if (kmem_cache_debug(s) &&
d0e0ac97 Chen Gang         2013-07-15  2389  			!alloc_debug_processing(s, page, freelist, addr))
497b66f2 Christoph Lameter 2011-08-09  2390  		goto new_slab;	/* Slab failed checks. Next slab needed */
894b8788 Christoph Lameter 2007-05-10  2391  
f6e7def7 Christoph Lameter 2012-05-09  2392  	deactivate_slab(s, page, get_freepointer(s, freelist));
c17dda40 Christoph Lameter 2012-05-09  2393  	c->page = NULL;
c17dda40 Christoph Lameter 2012-05-09  2394  	c->freelist = NULL;
6faa6833 Christoph Lameter 2012-05-09  2395  	return freelist;
894b8788 Christoph Lameter 2007-05-10 @2396  }
894b8788 Christoph Lameter 2007-05-10  2397  
894b8788 Christoph Lameter 2007-05-10  2398  /*
e191357c Christoph Lameter 2015-11-11  2399   * Another one that disabled interrupt and compensates for possible
e191357c Christoph Lameter 2015-11-11  2400   * cpu changes by refetching the per cpu area pointer.
e191357c Christoph Lameter 2015-11-11  2401   */
e191357c Christoph Lameter 2015-11-11  2402  static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node,
e191357c Christoph Lameter 2015-11-11  2403  			  unsigned long addr, struct kmem_cache_cpu *c)
e191357c Christoph Lameter 2015-11-11  2404  {

:::::: The code at line 2396 was first introduced by commit
:::::: 894b8788d7f265eb7c6f75a9a77cedeb48f51586 slub: support concurrent local and remote frees and allocs on a slab

:::::: TO: Christoph Lameter <clameter@sgi.com>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 39189 bytes --]

             reply	other threads:[~2015-11-11  6:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11  6:34 kbuild test robot [this message]
2015-11-11 20:41 ` [linux-next:master 12891/13017] mm/slub.c:2396:1: warning: '___slab_alloc' uses dynamic stack allocation Andrew Morton
2015-11-13 11:52   ` Martin Schwidefsky
2015-11-13 15:13     ` Andreas Krebbel1
     [not found]     ` <201511131513.tADFDwJN030997@d06av03.portsmouth.uk.ibm.com>
2015-11-13 15:22       ` Christoph Lameter
2015-11-13 15:32         ` Andreas Krebbel1
     [not found]         ` <201511131532.tADFWgYs000305@d06av09.portsmouth.uk.ibm.com>
2015-11-13 17:05           ` Christoph Lameter
     [not found]     ` <201511131414.tADEE1co028795@d06av10.portsmouth.uk.ibm.com>
2015-11-16  8:47       ` Martin Schwidefsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201511111413.65wysS6A%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=cl@linux-foundation.org \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).