lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1187561928.4200.139.camel@localhost>
Date:	Sun, 19 Aug 2007 15:18:48 -0700
From:	Joe Perches <joe@...ches.com>
To:	kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Cc:	Alan Cox <alan@...hat.com>, Amit Choudhary <amit2030@...il.com>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Dave Airlie <airlied@...ux.ie>,
	Greg Kroah-Hartman <gregkh@...e.de>,
	Jean Delvare <khali@...ux-fr.org>,
	Paul Fulghum <paulkf@...rogate.com>,
	Pierre Ossman <drzeus-list@...eus.cx>,
	Roland Dreier <rolandd@...co.com>,
	Russell King <rmk@....linux.org.uk>,
	Yoann Padioleau <padator@...adoo.fr>,
	dri-devel@...ts.sourceforge.net, linux-pcmcia@...ts.infradead.org
Subject: [PATCH 2/5] drivers/char/... convert #include "linux/..." to
	#include <linux/...>

(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@...ches.com>

diff --git a/drivers/char/drm/drm_ioctl.c b/drivers/char/drm/drm_ioctl.c
index b195e10..902c4a1 100644
--- a/drivers/char/drm/drm_ioctl.c
+++ b/drivers/char/drm/drm_ioctl.c
@@ -36,7 +36,7 @@
#include "drmP.h"
#include "drm_core.h"

-#include "linux/pci.h"
+#include <linux/pci.h>

/**
  * Get the bus id.
diff --git a/drivers/char/pcmcia/synclink_cs.c
b/drivers/char/pcmcia/synclink_cs.c
index 2b88931..4a186ed 100644
--- a/drivers/char/pcmcia/synclink_cs.c
+++ b/drivers/char/pcmcia/synclink_cs.c
@@ -87,7 +87,7 @@

#include <asm/uaccess.h>

-#include "linux/synclink.h"
+#include <linux/synclink.h>

static MGSL_PARAMS default_params = {
MGSL_MODE_HDLC, /* unsigned long mode */
diff --git a/drivers/char/synclink.c b/drivers/char/synclink.c
index fdc256b..eb1d90a 100644
--- a/drivers/char/synclink.c
+++ b/drivers/char/synclink.c
@@ -114,7 +114,7 @@

#include <asm/uaccess.h>

-#include "linux/synclink.h"
+#include <linux/synclink.h>

#define RCLRVALUE 0xffff

diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c
index bbb7f12..cb3d061 100644
--- a/drivers/char/synclink_gt.c
+++ b/drivers/char/synclink_gt.c
@@ -81,7 +81,7 @@
#include <asm/types.h>
#include <asm/uaccess.h>

-#include "linux/synclink.h"
+#include <linux/synclink.h>

#if defined(CONFIG_HDLC) || (defined(CONFIG_HDLC_MODULE) &&
defined(CONFIG_SYNCLINK_GT_MODULE))
#define SYNCLINK_GENERIC_HDLC 1
diff --git a/drivers/char/synclinkmp.c b/drivers/char/synclinkmp.c
index c63013b..726581e 100644
--- a/drivers/char/synclinkmp.c
+++ b/drivers/char/synclinkmp.c
@@ -80,7 +80,7 @@

#include <asm/uaccess.h>

-#include "linux/synclink.h"
+#include <linux/synclink.h>

static MGSL_PARAMS default_params = {
MGSL_MODE_HDLC, /* unsigned long mode */


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ