Skip to contentSkip to conversation

remove duplicate INVALID_* defines from arch.h

PATCH New Jesse Barnes 1 participant 1 message Oct 29, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove duplicate INVALID_* defines from arch.h

When I did the sparse stuff, I noticed some duplicate INVALID_* defines. This patch removes one set of them and adds the proper include file to sn_sal.h.

Thanks,
Jesse

===== include/asm-ia64/sn/arch.h 1.11 vs edited =====

include/asm-ia64/sn/arch.h +0 -6
@@ -27,12 +27,6 @@
 #define NASID_TO_COMPACT_NODEID(nasid)  (nasid_to_cnodeid(nasid))
 #define COMPACT_TO_NASID_NODEID(cnode)  (cnodeid_to_nasid(cnode))
 
-
-#define INVALID_NASID		((nasid_t)-1)
-#define INVALID_SLAB            (slabid_t)-1
-#define INVALID_MODULE		((moduleid_t)-1)
-#define	INVALID_PARTID		((partid_t)-1)
-
 extern void sn_flush_all_caches(long addr, long bytes);
 
 #endif /* _ASM_IA64_SN_ARCH_H */

===== include/asm-ia64/sn/sn_sal.h 1.15 vs edited =====

include/asm-ia64/sn/sn_sal.h +1 -0
@@ -16,6 +16,7 @@
 #include <asm/sal.h>
 #include <asm/sn/sn_cpuid.h>
 #include <asm/sn/arch.h>
+#include <asm/sn/geo.h>
 #include <asm/sn/nodepda.h>
 
 // SGI Specific Calls