All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Christoph Lameter <clameter@sgi.com>,
	Eric Dumazet <dada1@cosmosbay.com>,
	Pekka Enberg <penberg@cs.helsinki.fi>,
	linux-mm@kvack.org
Subject: [PATCH 5/5] mm/... convert #include "linux/..." to #include
Date: Sun, 19 Aug 2007 22:19:43 +0000	[thread overview]
Message-ID: <1187561983.4200.145.camel@localhost> (raw)

(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



WARNING: multiple messages have this Message-ID (diff)
From: Joe Perches <joe@perches.com>
To: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Christoph Lameter <clameter@sgi.com>,
	Eric Dumazet <dada1@cosmosbay.com>,
	Pekka Enberg <penberg@cs.helsinki.fi>,
	linux-mm@kvack.org
Subject: [PATCH 5/5] mm/... convert #include "linux/..." to #include <linux/...>
Date: Sun, 19 Aug 2007 15:19:43 -0700	[thread overview]
Message-ID: <1187561983.4200.145.camel@localhost> (raw)

(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



WARNING: multiple messages have this Message-ID (diff)
From: Joe Perches <joe@perches.com>
To: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Christoph Lameter <clameter@sgi.com>,
	Eric Dumazet <dada1@cosmosbay.com>,
	Pekka Enberg <penberg@cs.helsinki.fi>,
	linux-mm@kvack.org
Subject: [PATCH 5/5] mm/... convert #include "linux/..." to #include <linux/...>
Date: Sun, 19 Aug 2007 15:19:43 -0700	[thread overview]
Message-ID: <1187561983.4200.145.camel@localhost> (raw)

(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


--
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>

             reply	other threads:[~2007-08-19 22:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-19 22:19 Joe Perches [this message]
2007-08-19 22:19 ` [PATCH 5/5] mm/... convert #include "linux/..." to #include <linux/...> Joe Perches
2007-08-19 22:19 ` Joe Perches
2007-08-20 18:06 ` [PATCH 5/5] mm/... convert #include "linux/..." to #include Christoph Lameter
2007-08-20 18:06   ` [PATCH 5/5] mm/... convert #include "linux/..." to #include <linux/...> Christoph Lameter
2007-08-20 18:06   ` Christoph Lameter
2007-08-20 18:49   ` [PATCH 5/5] mm/... convert #include "linux/..." to #include Joe Perches
2007-08-20 18:49     ` [PATCH 5/5] mm/... convert #include "linux/..." to #include <linux/...> Joe Perches
2007-08-20 18:49     ` Joe Perches
2007-08-20 18:57     ` [PATCH 5/5] mm/... convert #include "linux/..." to #include Christoph Lameter
2007-08-20 18:57       ` [PATCH 5/5] mm/... convert #include "linux/..." to #include <linux/...> Christoph Lameter
2007-08-20 18:57       ` 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=1187561983.4200.145.camel@localhost \
    --to=joe@perches.com \
    --cc=clameter@sgi.com \
    --cc=dada1@cosmosbay.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=penberg@cs.helsinki.fi \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.