Skip to contentSkip to conversation

Prevent multiple inclusion of linux/sysrq.h

PATCH New Thomas Petazzoni 1 participant 1 message Sep 24, 2006 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Prevent multiple inclusion of linux/sysrq.h

Hi,

From: Thomas Petazzoni <[email protected]>

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

---

include/linux/sysrq.h +4 -0
Index: linux-2.6/include/linux/sysrq.h
===================================================================
@@ -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 */
Signature · 4 lines
PETAZZONI Thomas - [email protected] 
http://{thomas,sos,kos}.enix.org - Jabber: [email protected]
http://{agenda,livret}dulibre.org - http://www.toulibre.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7