]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
imported patch kernel-2.6.18-92.el5-fixes.patch kernel-2.6.18-92.el5.patch
authort_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:05:53 +0000 (12:05 +0000)
committert_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:05:53 +0000 (12:05 +0000)
13 files changed:
arch/i386/kernel/time-xen.c
arch/i386/pci/common.c
arch/i386/pci/direct.c
arch/i386/pci/pci.h
drivers/firmware/iscsi_ibft_find.c
drivers/net/dgrs.c
include/asm-i386/mach-xen/asm/setup.h
include/linux/elf.h
include/net/icmp.h
include/net/xfrm.h
kernel/module.c
net/ipv4/icmp.c
net/ipv4/udp.c

index 8e4a05014623383c526e1bd84bcf40ba4afd200f..dd67a063e1ad252ca4dadd95acfce58cef569b2a 100644 (file)
@@ -1168,7 +1168,7 @@ static int __init cpufreq_time_setup(void)
 core_initcall(cpufreq_time_setup);
 #endif
 
-#if CONFIG_CPU_FREQ
+#ifdef CONFIG_CPU_FREQ
 static int time_cpufreq_notifier(struct notifier_block *nb, unsigned long val, 
                                void *data)
 {
index 1838be8d509135281ef3d4dd13304071b16e94fd..76aa595d9b1ab94d40bed97951ad38cd7b22ce1a 100644 (file)
@@ -58,6 +58,32 @@ int pcibios_scanned;
  */
 DEFINE_SPINLOCK(pci_config_lock);
 
+/*
+ * Legacy PCI Config read and write routines for buses that can't use
+ * MMCONFIG accesses in systems where MMCONFIG is the default PCI config
+ * access mechanism.
+ */
+struct pci_raw_ops *pci_legacy_conf;
+
+static int pci_ops_legacy_read(struct pci_bus *bus, unsigned int devfn,
+                             int where, int size, u32 *value)
+{
+       return pci_legacy_conf->read(0, bus->number, devfn, where,
+                                    size, value);
+}
+
+static int pci_ops_legacy_write(struct pci_bus *bus, unsigned int devfn,
+                              int where, int size, u32 value)
+{
+       return pci_legacy_conf->write(0, bus->number, devfn, where,
+                                     size, value);
+}
+
+static struct pci_ops pci_legacy_ops = {
+       .read =         pci_ops_legacy_read,
+       .write =        pci_ops_legacy_write,
+};
+
 /*
  * Several buggy motherboards address only 16 devices and mirror
  * them to next 16 IDs. We try to detect this `feature' on all
index 53e6092e2088f07725d7f9118dfd5e5b2b630bef..56d5cc2ebcb4e4c2122b4902ffe618deed1f30e5 100644 (file)
@@ -175,32 +175,6 @@ static struct pci_raw_ops pci_direct_conf2 = {
        .write =        pci_conf2_write,
 };
 
-/*
- * Legacy PCI Config read and write routines for buses that can't use
- * MMCONFIG accesses in systems where MMCONFIG is the default PCI config
- * access mechanism.
- */
-static struct pci_raw_ops *pci_legacy_conf;
-
-static int pci_ops_legacy_read(struct pci_bus *bus, unsigned int devfn,
-                             int where, int size, u32 *value)
-{
-       return pci_legacy_conf->read(0, bus->number, devfn, where,
-                                    size, value);
-}
-
-static int pci_ops_legacy_write(struct pci_bus *bus, unsigned int devfn,
-                              int where, int size, u32 value)
-{
-       return pci_legacy_conf->write(0, bus->number, devfn, where,
-                                     size, value);
-}
-
-struct pci_ops pci_legacy_ops = {
-       .read =         pci_ops_legacy_read,
-       .write =        pci_ops_legacy_write,
-};
-
 /*
  * Before we decide to use direct hardware access mechanisms, we try to do some
  * trivial checks to ensure it at least _seems_ to be working -- we just test
index 301a7a5970830777c45ee37c2909dab7e55a1f30..bf0e55639b221ffc6782180ea98310df0d64294b 100644 (file)
@@ -48,8 +48,7 @@ enum pci_bf_sort_state {
        pci_dmi_bf,
 };
 
-extern struct pci_ops pci_legacy_ops;  /* direct.c */
-
+extern struct pci_raw_ops *pci_legacy_conf; /* common.c */
 /* pci-i386.c */
 
 extern unsigned int pcibios_max_latency;
index 8ef433a805e6c1ee173a3e48d506ea9245ad8f2d..81504a16dd27e9fbc96a2fc03991eb77cb1aae41 100644 (file)
@@ -16,6 +16,7 @@
  * GNU General Public License for more details.
  */
 
+#include <linux/sched.h>
 #include <linux/bootmem.h>
 #include <linux/blkdev.h>
 #include <linux/ctype.h>
index fa4f09432975b5d17ee5797b419c6b43f3150567..18ba834adff393982db2074f0a183746752ee4f4 100644 (file)
@@ -110,7 +110,7 @@ static char version[] __initdata =
  *     DGRS include files
  */
 typedef unsigned char uchar;
-typedef unsigned int bool;
+//typedef unsigned int bool;
 #define vol volatile
 
 #include "dgrs.h"
index c729454f6d6e58afd64daaaf3c93d52f43d5b9d7..ea0e9fa0c8e31cf7c2763883c73345b462dc51bf 100644 (file)
@@ -17,7 +17,7 @@
 #endif
 
 #define PARAM_SIZE 4096
-#define COMMAND_LINE_SIZE 256
+#define COMMAND_LINE_SIZE 2048
 
 #define OLD_CL_MAGIC_ADDR      0x90020
 #define OLD_CL_MAGIC           0xA33F
index d89ce5bcecb12a2944f185e8bba1368dfdbe5968..b210c7d12c58ee431e2e299e52e5fa221c795414 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __ASSEMBLY__
 #include <linux/types.h>
 #include <linux/auxvec.h>
+#include <linux/fs.h>
+
 #include <asm/elf.h>
 
 #ifndef elf_read_implies_exec
index 098161d64198bfdf21a3a87f3d82e9f9d1150cc0..6b1f74e2533d563ce460e096dad64a25bc31e7e0 100644 (file)
@@ -72,7 +72,10 @@ extern int sysctl_icmp_errors_use_inbound_ifaddr;
 extern int sysctl_icmp_ratelimit;
 extern int sysctl_icmp_ratemask;
 
-extern void xfrm4_decode_session_reverse(struct sk_buff *skb, struct flowi *fl);
+#ifdef CONFIG_XFRM
 extern int xfrm4_icmp_check(struct sk_buff *skb);
+#else
+static inline int xfrm4_icmp_check(struct sk_buff *skb) { return 1; }
+#endif
 
 #endif /* _ICMP_H */
index cdb53ff6431e6ea9bc8974e5c465c2291c0bc663..96cf3f645364f3bca9e00f5dd7bc36b41b04a3a4 100644 (file)
@@ -429,8 +429,8 @@ static inline struct audit_buffer *xfrm_audit_start(const char *op)
 #else
 #define xfrm_audit_log(a,s,t,r,p,x) do { ; } while (0)
 #define xfrm_audit_state_replay_overflow(x, s) do { ; } while (0)
-#define xfrm_audit_state_replay(s, f, sp, sq)  do { ; } while (0)
-#define xfrm_naudit_state_replay(s, f, sp, sq) do { ; } while (0)
+#define xfrm_audit_state_replay(s, sp, sq)     do { ; } while (0)
+#define xfrm_naudit_state_replay(s, sp, sq)    do { ; } while (0)
 #define xfrm_audit_state_notfound(s, f, sp, sq)        do { ; } while (0)
 #define xfrm_naudit_state_notfound(s, f, sp, sq) do { ; } while (0)
 #define xfrm_audit_state_icvfail(x, s, p)      do { ; } while (0)
@@ -855,16 +855,10 @@ static inline int xfrm_policy_check(struct sock *sk, int dir, struct sk_buff *sk
 {
        return 1;
 }
-static inline int xfrm4_decode_session_reverse(struct sk_buff *skb,
-                                              struct flowi *fl)
-{
-       return -ENOSYS;
-}
-static inline int xfrm6_decode_session_reverse(struct sk_buff *skb,
-                                              struct flowi *fl)
-{
-       return -ENOSYS;
-}
+static inline void xfrm4_decode_session_reverse(struct sk_buff *skb,
+                                              struct flowi *fl) { }
+static inline void xfrm6_decode_session_reverse(struct sk_buff *skb,
+                                              struct flowi *fl) { }
 static inline int xfrm4_policy_check_reverse(struct sock *sk, int dir,
                                             struct sk_buff *skb)
 {
index 69ef2fdaf43ddd43b904bf20a841fc5388a27831..40595a57fe9ead8135ff9899e57985b2bcfbeb2d 100644 (file)
@@ -66,6 +66,9 @@ static DEFINE_SPINLOCK(modlist_lock);
 static DEFINE_MUTEX(module_mutex);
 static LIST_HEAD(modules);
 
+/* Waiting for a module to finish initializing? */
+static DECLARE_WAIT_QUEUE_HEAD(module_wq);
+
 static BLOCKING_NOTIFIER_HEAD(module_notify_list);
 
 int register_module_notifier(struct notifier_block * nb)
@@ -538,9 +541,6 @@ static int already_uses(struct module *a, struct module *b)
        return 0;
 }
 
-/* Waiting for a module to finish initializing? */
-static DECLARE_WAIT_QUEUE_HEAD(module_wq);
-
 /* Module a uses b */
 static int use_module(struct module *a, struct module *b)
 {
@@ -1602,7 +1602,7 @@ static struct module *load_module(void __user *umod,
        mod = (void *)sechdrs[modindex].sh_addr;
        mod->gpgsig_ok = gpgsig_ok;
 
-#if CONFIG_MODULE_SIG
+#ifdef CONFIG_MODULE_SIG
        if (!mod->gpgsig_ok)
                add_taint_module(mod, TAINT_UNSIGNED_MODULE);
 #endif
@@ -2172,7 +2172,7 @@ static char *taint_flags(unsigned int taints, char *buf)
                        buf[bx++] = 'P';
                if (taints & TAINT_FORCED_MODULE)
                        buf[bx++] = 'F';
-#if CONFIG_MODULE_SIG
+#ifdef CONFIG_MODULE_SIG
                if (taints & TAINT_UNSIGNED_MODULE)
                        buf[bx++] = 'U';
 #endif
index 56558b729b2953e4238e6c4d4f05b5a90cfc6098..a65bcc84f0aa66c6c4202e8cd01f7ed1d62035ea 100644 (file)
@@ -92,7 +92,7 @@
 #include <asm/system.h>
 #include <asm/uaccess.h>
 #include <net/checksum.h>
-#include <linux/xfrm.h>
+#include <net/xfrm.h>
 
 /*
  *     Build xmit assembly blocks
index ff041f23503ae1694b49abcdc4a7afdf3201c36c..1a3466f7dbcd96c839b8781b4e789ebf67afc9a4 100644 (file)
@@ -81,6 +81,7 @@
 #include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/ioctls.h>
+#include <linux/sched.h>
 #include <linux/bootmem.h>
 #include <linux/types.h>
 #include <linux/fcntl.h>