Enable warnings and fix a few one (those which occur in almost every file).
authordjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Fri, 13 Jan 2006 14:52:05 +0000 (08:52 -0600)
committerdjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Fri, 13 Jan 2006 14:52:05 +0000 (08:52 -0600)
The next step is to fix warnings one by one.

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
# User tristan.gingold@bull.net

xen/arch/ia64/Rules.mk
xen/arch/ia64/linux-xen/sal.c
xen/arch/ia64/xen/sn_console.c
xen/include/asm-ia64/config.h
xen/include/asm-ia64/vmmu.h

index 9d02b6ef16650e5013c289508d97475345ca8767..2a879dd2d1ddb851c4acbdc0e9508f8782b96492 100644 (file)
@@ -23,10 +23,10 @@ CFLAGS  += -I$(BASEDIR)/include/asm-ia64 -I$(BASEDIR)/include/asm-ia64/linux \
            -I$(BASEDIR)/include/asm-ia64/linux-xen                     \
           -I$(BASEDIR)/include/asm-ia64/linux-null                     \
            -I$(BASEDIR)/arch/ia64/linux -I$(BASEDIR)/arch/ia64/linux-xen
-CFLAGS  += -Wno-pointer-arith -Wredundant-decls
+#CFLAGS  += -Wno-pointer-arith -Wredundant-decls
 CFLAGS  += -DIA64 -DXEN -DLINUX_2_6 -DV_IOSAPIC_READY
 CFLAGS += -ffixed-r13 -mfixed-range=f12-f15,f32-f127
-CFLAGS += -w -g
+CFLAGS += -g
 #CFLAGS  += -DVTI_DEBUG
 ifeq ($(VALIDATE_VT),y)
 CFLAGS  += -DVALIDATE_VT
index a818818206ef78ae2f6d32a8ee22e82f548c9ea5..475435d3741a527d4e79313cf5ff5e4738fe1db8 100644 (file)
@@ -16,6 +16,7 @@
 
 #ifdef XEN
 #include <linux/smp.h>
+#include <xen/lib.h>
 #endif
 #include <asm/page.h>
 #include <asm/sal.h>
index d29a82935ca511ef181c37cd927f0be6d922116f..14d1a95babe47e726207c2acf9dee7fa7e308435 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright (c) 2005 Silicon Graphics, Inc.  All Rights Reserved.
  */
 
+#include <xen/lib.h>
 #include <asm/acpi.h>
 #include <asm/sn/sn_sal.h>
 #include <xen/serial.h>
index 4d730b4b1a7a6be5a4207285f0e8216590a399ee..ed89d2996ab46476e527d657eb5967408ffa2056 100644 (file)
@@ -92,7 +92,7 @@ extern char _end[]; /* standard ELF symbol */
 //#define __acquire(x) (void)0
 //#define __release(x) (void)0
 //#define __cond_lock(x) (x)
-#define __must_check
+//#define __must_check
 #define __deprecated
 #ifndef RELOC_HIDE
 # define RELOC_HIDE(ptr, off)                                  \
@@ -187,7 +187,9 @@ void sort_extable(struct exception_table_entry *start,
                  struct exception_table_entry *finish);
 void sort_main_extable(void);
 
+#if 0 /* Already defined in xen/lib.h */
 #define printk printf
+#endif
 
 #undef  __ARCH_IRQ_STAT
 
@@ -205,7 +207,6 @@ void sort_main_extable(void);
 #define        OPT_CONSOLE_STR "com2"
 #endif
 
-#define __attribute_used__     __attribute__ ((unused))
 #define __nocast
 
 // see include/asm-x86/atomic.h (different from standard linux)
@@ -255,9 +256,6 @@ struct screen_info { };
 #define seq_printf(a,b...) printf(b)
 #define CONFIG_BLK_DEV_INITRD // needed to reserve memory for domain0
 
-// needed for newer ACPI code
-#define asmlinkage
-
 #define FORCE_CRASH()  asm("break 0;;");
 
 void dummy_called(char *function);
@@ -306,13 +304,8 @@ extern int ht_per_core;
 #endif
 
 
-// FOLLOWING ADDED FOR XEN POST-NGIO and/or LINUX 2.6.7
-
-// following derived from linux/include/linux/compiler-gcc3.h
-// problem because xen (over?)simplifies include/xen/compiler.h
-#if __GNUC_MAJOR < 3 || __GNUC_MINOR__ >= 3
-# define __attribute_used__    __attribute__((__used__))
-#else
-# define __attribute_used__    __attribute__((__unused__))
+#ifndef __ASSEMBLY__
+#include <linux/linkage.h>
 #endif
+
 #endif /* _IA64_CONFIG_H_ */
index 429c79b4dcf84d6315f399f84173a7c0c5c2ebcb..03d5f3644d502eacf09072b03009a2cff33841f7 100644 (file)
@@ -151,8 +151,8 @@ typedef union thash_cch_mem {
 typedef u64 *(THASH_FN)(PTA pta, u64 va);
 typedef u64 *(TTAG_FN)(PTA pta, u64 va);
 typedef u64 *(GET_MFN_FN)(domid_t d, u64 gpfn, u64 pages);
-typedef void *(REM_NOTIFIER_FN)(struct hash_cb *hcb, thash_data_t *entry);
-typedef void (RECYCLE_FN)(struct hash_cb *hc, u64 para);
+typedef void *(REM_NOTIFIER_FN)(struct thash_cb *hcb, thash_data_t *entry);
+typedef void (RECYCLE_FN)(struct thash_cb *hc, u64 para);
 typedef ia64_rr (GET_RR_FN)(struct vcpu *vcpu, u64 reg);
 typedef thash_data_t *(FIND_OVERLAP_FN)(struct thash_cb *hcb, 
         u64 va, u64 ps, int rid, char cl, search_section_t s_sect);