linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Lameter <cl@linux.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: Joonsoo Kim <js1304@gmail.com>,
	Glauber Costa <glommer@parallels.com>,
	linux-mm@kvack.org, David Rientjes <rientjes@google.com>
Subject: [3.12 3/5] slabs: Remove unnecessary #includes
Date: Wed, 31 Jul 2013 17:22:49 +0000	[thread overview]
Message-ID: <0000014035c0e66c-98875436-a963-4e74-be1c-361e58652bec-000000@email.amazonses.com> (raw)
In-Reply-To: <20130731171257.629155011@linux.com>

Now that there are only some struct definitions left in
sl?b_def.h we can remove most of the #include statements.

Signed-off-by: Christoph Lameter <cl@linux.com>

Index: linux/include/linux/slab_def.h
===================================================================
--- linux.orig/include/linux/slab_def.h	2013-07-18 11:11:59.757679886 -0500
+++ linux/include/linux/slab_def.h	2013-07-18 11:11:59.753679819 -0500
@@ -3,20 +3,6 @@
 
 /*
  * Definitions unique to the original Linux SLAB allocator.
- *
- * What we provide here is a way to optimize the frequent kmalloc
- * calls in the kernel by selecting the appropriate general cache
- * if kmalloc was called with a size that can be established at
- * compile time.
- */
-
-#include <linux/init.h>
-#include <linux/compiler.h>
-
-/*
- * struct kmem_cache
- *
- * manages a cache.
  */
 
 struct kmem_cache {
Index: linux/include/linux/slub_def.h
===================================================================
--- linux.orig/include/linux/slub_def.h	2013-07-18 11:11:59.757679886 -0500
+++ linux/include/linux/slub_def.h	2013-07-18 11:13:32.000000000 -0500
@@ -6,10 +6,6 @@
  *
  * (C) 2007 SGI, Christoph Lameter
  */
-#include <linux/types.h>
-#include <linux/gfp.h>
-#include <linux/bug.h>
-#include <linux/workqueue.h>
 #include <linux/kobject.h>
 
 enum stat_item {

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2013-07-31 17:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20130731171257.629155011@linux.com>
2013-07-31 17:12 ` [3.12 2/5] Move kmalloc definitions to slab.h Christoph Lameter
2013-07-31 17:12 ` [3.12 1/5] Move kmalloc_node functions to common code Christoph Lameter
2013-07-31 17:22 ` Christoph Lameter [this message]
2013-07-31 17:22 ` [3.12 5/5] seq_file: Use kmalloc_large for page sized allocation Christoph Lameter
2013-07-31 17:22 ` [3.12 4/5] slub: remove verify_mem_not_deleted() Christoph Lameter

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=0000014035c0e66c-98875436-a963-4e74-be1c-361e58652bec-000000@email.amazonses.com \
    --to=cl@linux.com \
    --cc=glommer@parallels.com \
    --cc=js1304@gmail.com \
    --cc=linux-mm@kvack.org \
    --cc=penberg@kernel.org \
    --cc=rientjes@google.com \
    /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