]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm-slab-suppress-out-of-memory-warning-unless-debug-is-enabled-fix-2
authorDavid Rientjes <rientjes@google.com>
Thu, 22 May 2014 00:42:36 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:36 +0000 (10:42 +1000)
commitfd2d72c82780780b0ee3cc71afb02c67d5002f19
treeaead22dde0d8d63c48eaa085a9a30d3f96bac429
parent81f91e3f9e9865ff667fa89713a7c44bbf521571
mm-slab-suppress-out-of-memory-warning-unless-debug-is-enabled-fix-2

Only define count_free() when CONFIG_SLUB_DEBUG since that's the only
context in which it is referenced.  Only define count_partial() when
CONFIG_SLUB_DEBUG or CONFIG_SYSFS since the sysfs interface still uses it
for partial slab counts.

Also only define node_nr_objs() when CONFIG_SLUB_DEBUG since that's the
only context in which it is referenced.

Signed-off-by: David Rientjes <rientjes@google.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/slub.c