linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Manik Raina <manik@cisco.com>
To: <linux-kernel@vger.kernel.org>
Cc: <azu@sysgo.de>
Subject: [PATCH] : preventing multiple includes of the same header file
Date: Tue, 23 Oct 2001 16:20:35 +0530 (IST)	[thread overview]
Message-ID: <Pine.GSO.4.33.0110231618100.29108-100000@cbin2-view1.cisco.com> (raw)

Hi,

This patch should prevent multiple inclusions of some header
files in include/asm-ppc/

thanks
Manik

Index: serial.h
===================================================================
RCS file: /vger/linux/include/asm-ppc/serial.h,v
retrieving revision 1.14
diff -u -r1.14 serial.h
--- serial.h	23 May 2001 03:53:37 -0000	1.14
+++ serial.h	23 Oct 2001 10:45:31 -0000
@@ -6,6 +6,9 @@
  */

 #ifdef __KERNEL__
+#ifndef __PPC_SERIAL_H__
+#define __PPC_SERIAL_H__
+
 #include <linux/config.h>

 #ifdef CONFIG_GEMINI
@@ -133,4 +136,5 @@
 	MCA_SERIAL_PORT_DFNS

 #endif /* !CONFIG_GEMINI and others */
+#endif /* __PPC_SERIAL_H__ */
 #endif /* __KERNEL__ */
Index: smplock.h
===================================================================
RCS file: /vger/linux/include/asm-ppc/smplock.h,v
retrieving revision 1.6
diff -u -r1.6 smplock.h
--- smplock.h	23 May 2001 03:53:37 -0000	1.6
+++ smplock.h	23 Oct 2001 10:45:31 -0000
@@ -7,6 +7,9 @@
  * Default SMP lock implementation
  */
 #ifdef __KERNEL__
+#ifndef __PPC_SMPLOCK_H__
+#define __PPC_SMPLOCK_H__
+
 #include <linux/interrupt.h>
 #include <linux/spinlock.h>

@@ -53,4 +56,5 @@
 	if (--current->lock_depth < 0)
 		spin_unlock(&kernel_flag);
 }
+#endif /* __PPC_SMPLOCK_H__ */
 #endif /* __KERNEL__ */
Index: time.h
===================================================================
RCS file: /vger/linux/include/asm-ppc/time.h,v
retrieving revision 1.10
diff -u -r1.10 time.h
--- time.h	28 Aug 2001 21:33:28 -0000	1.10
+++ time.h	23 Oct 2001 10:45:31 -0000
@@ -9,6 +9,9 @@
  */

 #ifdef __KERNEL__
+#ifndef __PPC_TIME_H__
+#define __PPC_TIME_H__
+
 #include <linux/config.h>
 #include <linux/mc146818rtc.h>
 #include <linux/threads.h>
@@ -136,4 +139,5 @@
 ({unsigned z; asm ("mulhwu %0,%1,%2" : "=r" (z) : "r" (x), "r" (y)); z;})

 unsigned mulhwu_scale_factor(unsigned, unsigned);
+#endif /* __PPC_TIME_H__ */
 #endif /* __KERNEL__ */
Index: uninorth.h
===================================================================
RCS file: /vger/linux/include/asm-ppc/uninorth.h,v
retrieving revision 1.5
diff -u -r1.5 uninorth.h
--- uninorth.h	28 Aug 2001 21:33:28 -0000	1.5
+++ uninorth.h	23 Oct 2001 10:45:31 -0000
@@ -7,7 +7,8 @@
  *
  */
 #ifdef __KERNEL__
-
+#ifndef __PPC_UNINORTH_H__
+#define __PPC_UNINORTH_H__

 /*
  * Uni-N config space reg. definitions
@@ -131,4 +132,5 @@

 /* Uninorth 1.5 rev. has additional perf. monitor registers at 0xf00-0xf50 */

+#endif /* __PPC_UNINORTH_H__ */
 #endif /* __KERNEL__ */


             reply	other threads:[~2001-10-23 10:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-23 10:50 Manik Raina [this message]
2001-10-23 15:09 ` [PATCH] : preventing multiple includes of the same header file Tom Rini
2001-10-26 15:51   ` Manik Raina
2001-10-26 15:57     ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.33.0110231618100.29108-100000@cbin2-view1.cisco.com \
    --to=manik@cisco.com \
    --cc=azu@sysgo.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).