All of lore.kernel.org
 help / color / mirror / Atom feed
* convert #include "linux/..." to #include <linux/...> [PATCH]s
@ 2007-08-19 22:17 ` Joe Perches
  0 siblings, 0 replies; 14+ 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] 14+ messages in thread

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

Thread overview: 14+ 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 Joe Perches
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:19   ` Jesper Juhl
2007-08-19 22:33 ` convert #include "linux/..." to #include <linux/...> [PATCH]s Jan Engelhardt
2007-08-19 22:33   ` convert #include "linux/..." to #include <linux/...> [PATCH]s follow Jan Engelhardt
2007-08-19 22:44   ` Al Viro
2007-08-19 22:44     ` Al Viro
2007-08-19 22:49     ` convert #include "linux/..." to #include <linux/...> [PATCH]s Joe Perches
2007-08-19 22:49       ` convert #include "linux/..." to #include <linux/...> [PATCH]s follow Joe Perches
2007-08-19 22:58       ` Al Viro
2007-08-19 22:58         ` Al Viro
2007-08-19 23:05   ` convert #include "linux/..." to #include <linux/...> [PATCH]s Joe Perches
2007-08-19 23:05     ` convert #include "linux/..." to #include <linux/...> [PATCH]s follow Joe Perches

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.