Paul E. McKenney 5bb1bb353c mm: Don't build mm_dump_obj() on CONFIG_PRINTK=n kernels
The mem_dump_obj() functionality adds a few hundred bytes, which is a
small price to pay.  Except on kernels built with CONFIG_PRINTK=n, in
which mem_dump_obj() messages will be suppressed.  This commit therefore
makes mem_dump_obj() be a static inline empty function on kernels built
with CONFIG_PRINTK=n and excludes all of its support functions as well.
This avoids kernel bloat on systems that cannot use mem_dump_obj().

Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: <linux-mm@kvack.org>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
2021-03-08 14:18:46 -08:00
..
2021-02-26 09:41:00 -08:00
2021-02-24 13:38:27 -08:00
2021-02-26 09:41:01 -08:00
2021-02-26 09:40:59 -08:00
2020-12-15 12:13:47 -08:00
2021-02-23 13:39:45 -08:00
2021-03-02 17:25:46 -07:00
2021-02-26 09:40:59 -08:00
2021-02-26 09:40:59 -08:00
2021-02-26 09:40:59 -08:00