public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* convert #include "linux/..." to #include <linux/...> [PATCH]s follow
@ 2007-08-19 22:17 Joe Perches
  2007-08-19 22:19 ` Jesper Juhl
  2007-08-19 22:33 ` Jan Engelhardt
  0 siblings, 2 replies; 7+ messages in thread
From: Joe Perches @ 2007-08-19 22:17 UTC (permalink / raw)
  To: kernel-janitors, linux-kernel; +Cc: Andy Whitcroft

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'

Maybe a similar check could be added to checkpatch.pl


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-08-19 23:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-19 22:17 convert #include "linux/..." to #include <linux/...> [PATCH]s follow Joe Perches
2007-08-19 22:19 ` Jesper Juhl
2007-08-19 22:33 ` Jan Engelhardt
2007-08-19 22:44   ` Al Viro
2007-08-19 22:49     ` Joe Perches
2007-08-19 22:58       ` Al Viro
2007-08-19 23:05   ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox