[PATCH 5/5] mm/... convert #include "linux/..." to #include <linux/...>

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kernel-janitors@...>, <linux-kernel@...>
Cc: Christoph Lameter <clameter@...>, Eric Dumazet <dada1@...>, Pekka Enberg <penberg@...>, <linux-mm@...>
Date: Sunday, August 19, 2007 - 6:19 pm

(untested)

There are several files that 
#include "linux/file" not #include <linux/file>
#include "asm/file" not #include <asm/file>

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 <joe@perches.com>

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 <linux/kmalloc_sizes.h>
 #undef CACHE
 		__bad_size();
 	} else


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 5/5] mm/... convert #include "linux/..." to #include ..., Joe Perches, (Sun Aug 19, 6:19 pm)
Re: [PATCH 5/5] mm/... convert #include "linux/..." to #incl..., Christoph Lameter, (Mon Aug 20, 2:06 pm)
Re: [PATCH 5/5] mm/... convert #include "linux/..." to #incl..., Christoph Lameter, (Mon Aug 20, 2:57 pm)