From: Joe Perches Date: Sun, 19 Aug 2007 22:19:43 +0000 Subject: [PATCH 5/5] mm/... convert #include "linux/..." to #include Message-Id: <1187561983.4200.145.camel@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christoph Lameter , Eric Dumazet , Pekka Enberg , linux-mm@kvack.org (untested) There are several files that #include "linux/file" not #include #include "asm/file" not #include Here's a little script that converts them: egrep -i -r -l --include=*.[ch] \ "^[[:space:]]*\#[[:space:]]*include[[:space:]]*\"(linux|asm)/(.*)\"" * \ | xargs sed -i -e 's/^[[:space:]]*#[[:space:]]*include[[:space:]]*"\(linux\|asm\)\/\(.*\)"/#include <\1\/\2>/g' Signed-off-by: Joe Perches diff --git a/mm/slab.c b/mm/slab.c index a684778..976aeff 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -334,7 +334,7 @@ static __always_inline int index_of(const size_t size) return i; \ else \ i++; -#include "linux/kmalloc_sizes.h" +#include #undef CACHE __bad_size(); } else