convert #include "linux/..." to #include <linux/...> [PATCH]s follow

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kernel-janitors@...>, <linux-kernel@...>
Cc: Andy Whitcroft <apw@...>
Date: Sunday, August 19, 2007 - 6:17 pm

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

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

Messages in current thread:
convert #include "linux/..." to #include <linux/...> [..., Joe Perches, (Sun Aug 19, 6:17 pm)