Skip to contentSkip to conversation

sparc: merge header files with trivial differences

PATCH New Sam Ravnborg 1 participant 1 message Jun 28, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 24/25 sparc: merge header files with trivial differences

A manual inspection revealed that the following headerfiles contained only trivial differences:
hw_irq.h idprom.h kmap_types.h kvm.h spinlock_types.h sunbpp.h unaligned.h

The only noteworthy change are that sparc64 had a volatile qualifer that sparc missed in spinlock_types.h.

In addition a few comments were updated.

---
 include/asm-sparc/idprom.h           |    2 +-
 include/asm-sparc/kmap_types.h       |    4 ++
 include/asm-sparc/spinlock_types.h   |    2 +-
 include/asm-sparc64/hw_irq.h         |    5 +--
 include/asm-sparc64/idprom.h         |   26 +----------
 include/asm-sparc64/kmap_types.h     |   26 +----------
 include/asm-sparc64/kvm.h            |    7 +---
 include/asm-sparc64/spinlock_types.h |   21 +--------
 include/asm-sparc64/sunbpp.h         |   81 +---------------------------------
 include/asm-sparc64/unaligned.h      |   11 +----
 10 files changed, 13 insertions(+), 172 deletions(-)
include/asm-sparc/idprom.h +1 -1
index 41adb41..6976aa2 100644
@@ -1,7 +1,7 @@
 /*
  * idprom.h: Macros and defines for idprom routines
  *
- * Copyright (C) 1995 David S. Miller ([email protected])
+ * Copyright (C) 1995,1996 David S. Miller ([email protected])
  */
 
 #ifndef _SPARC_IDPROM_H
include/asm-sparc/kmap_types.h +4 -0
index e215f71..602f5e0 100644
@@ -1,6 +1,10 @@
 #ifndef _ASM_KMAP_TYPES_H
 #define _ASM_KMAP_TYPES_H
 
+/* Dummy header just to define km_type.  None of this
+ * is actually used on sparc.  -DaveM
+ */
+
 enum km_type {
 	KM_BOUNCE_READ,
 	KM_SKB_SUNRPC_DATA,
include/asm-sparc/spinlock_types.h +1 -1
index 0a0fb11..37cbe01 100644
@@ -6,7 +6,7 @@
 #endif
 
 typedef struct {
-	unsigned char lock;
+	volatile unsigned char lock;
 } raw_spinlock_t;
 
 #define __RAW_SPIN_LOCK_UNLOCKED	{ 0 }
include/asm-sparc64/hw_irq.h +1 -4
index 8e44a83..16920a2 100644
@@ -1,4 +1 @@
-#ifndef __ASM_SPARC64_HW_IRQ_H
-#define __ASM_SPARC64_HW_IRQ_H
-
-#endif
+#include <asm-sparc/hw_irq.h>
include/asm-sparc64/idprom.h +1 -25
index a363fa0..c22f9c3 100644
@@ -1,25 +1 @@
-/*
- * idprom.h: Macros and defines for idprom routines
- *
- * Copyright (C) 1996 David S. Miller ([email protected])
- */
-
-#ifndef _SPARC64_IDPROM_H
-#define _SPARC64_IDPROM_H
-
-#include <linux/types.h>
-
-struct idprom {
-	u8		id_format;	/* Format identifier (always 0x01) */
-	u8		id_machtype;	/* Machine type */
-	u8		id_ethaddr[6];	/* Hardware ethernet address */
-	s32		id_date;	/* Date of manufacture */
-	u32		id_sernum:24;	/* Unique serial number */
-	u8		id_cksum;	/* Checksum - xor of the data bytes */
-	u8		reserved[16];
-};
-
-extern struct idprom *idprom;
-extern void idprom_init(void);
-
-#endif /* !(_SPARC_IDPROM_H) */
+#include <asm-sparc/idprom.h>
include/asm-sparc64/kmap_types.h +1 -25
index 34c1d3d..276530c 100644
@@ -1,25 +1 @@
-#ifndef _ASM_KMAP_TYPES_H
-#define _ASM_KMAP_TYPES_H
-
-/* Dummy header just to define km_type.  None of this
- * is actually used on sparc64.  -DaveM
- */
-
-enum km_type {
-	KM_BOUNCE_READ,
-	KM_SKB_SUNRPC_DATA,
-	KM_SKB_DATA_SOFTIRQ,
-	KM_USER0,
-	KM_USER1,
-	KM_BIO_SRC_IRQ,
-	KM_BIO_DST_IRQ,
-	KM_PTE0,
-	KM_PTE1,
-	KM_IRQ0,
-	KM_IRQ1,
-	KM_SOFTIRQ0,
-	KM_SOFTIRQ1,
-	KM_TYPE_NR
-};
-
-#endif
+#include <asm-sparc/kmap_types.h>
include/asm-sparc64/kvm.h +1 -6
index 380537a..53564ad 100644
@@ -1,6 +1 @@
-#ifndef __LINUX_KVM_SPARC64_H
-#define __LINUX_KVM_SPARC64_H
-
-/* sparc64 does not support KVM */
-
-#endif
+#include <asm-sparc/kvm.h>
include/asm-sparc64/spinlock_types.h +1 -20
index e128112..48d81c8 100644
@@ -1,20 +1 @@
-#ifndef __SPARC64_SPINLOCK_TYPES_H
-#define __SPARC64_SPINLOCK_TYPES_H
-
-#ifndef __LINUX_SPINLOCK_TYPES_H
-# error "please don't include this file directly"
-#endif
-
-typedef struct {
-	volatile unsigned char lock;
-} raw_spinlock_t;
-
-#define __RAW_SPIN_LOCK_UNLOCKED	{ 0 }
-
-typedef struct {
-	volatile unsigned int lock;
-} raw_rwlock_t;
-
-#define __RAW_RW_LOCK_UNLOCKED		{ 0 }
-
-#endif
+#include <asm-sparc/spinlock_types.h>
include/asm-sparc64/sunbpp.h +1 -80

81 lines not on this page · raw message

include/asm-sparc64/unaligned.h +1 -10
index edcebb0..19fbf95 100644
@@ -1,10 +1 @@
-#ifndef _ASM_SPARC64_UNALIGNED_H
-#define _ASM_SPARC64_UNALIGNED_H
-
-#include <linux/unaligned/be_struct.h>
-#include <linux/unaligned/le_byteshift.h>
-#include <linux/unaligned/generic.h>
-#define get_unaligned	__get_unaligned_be
-#define put_unaligned	__put_unaligned_be
-
-#endif /* _ASM_SPARC64_UNALIGNED_H */
+#include <asm-sparc/unaligned.h>
Signature · 1 line
1.5.4.1.143.ge7e51