lkml.org 
[lkml]   [2006]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Prevent multiple inclusion of linux/sysrq.h
Hi,

From: Thomas Petazzoni <thomas.petazzoni@enix.org>

Prevent multiple inclusions of include/linux/sysrq.h using traditional
#ifndef..#endif.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>

---

Index: linux-2.6/include/linux/sysrq.h
===================================================================
--- linux-2.6.orig/include/linux/sysrq.h 2006-09-23 00:04:05.000000000 +0200
+++ linux-2.6/include/linux/sysrq.h 2006-09-23 00:05:27.000000000 +0200
@@ -11,6 +11,8 @@
* based upon discusions in irc://irc.openprojects.net/#kernelnewbies
*/

+#ifndef _LINUX_SYSRQ_H
+#define _LINUX_SYSRQ_H

struct pt_regs;
struct tty_struct;
@@ -57,3 +59,5 @@
#define unregister_sysrq_key(ig,nore) __reterr()

#endif
+
+#endif /* _LINUX_SYSRQ_H */
--
PETAZZONI Thomas - thomas.petazzoni@enix.org
http://{thomas,sos,kos}.enix.org - Jabber: thomas.petazzoni@jabber.dk
http://{agenda,livret}dulibre.org - http://www.toulibre.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2006-09-24 13:53    [W:0.838 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site