]> err.no Git - linux-2.6/commitdiff
[PATCH] 64bit resource: introduce resource_size_t for the start and end of struct...
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 12 Jun 2006 22:49:31 +0000 (15:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Jun 2006 16:23:59 +0000 (09:23 -0700)
But do not change it from what it currently is (unsigned long)

Based on a patch series originally from Vivek Goyal <vgoyal@in.ibm.com>

Cc: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/ioport.h
include/linux/types.h

index cd6bd001ba4edbc68dfc5b52f08ef3bb832c785e..535bd9585897e2fd8aacd7dbf54d5652069f7689 100644 (file)
@@ -9,13 +9,15 @@
 #define _LINUX_IOPORT_H
 
 #include <linux/compiler.h>
+#include <linux/types.h>
 /*
  * Resources are tree-like, allowing
  * nesting etc..
  */
 struct resource {
+       resource_size_t start;
+       resource_size_t end;
        const char *name;
-       unsigned long start, end;
        unsigned long flags;
        struct resource *parent, *sibling, *child;
 };
index a5e46e783ffa03ca4d38e918e09f4e8b78367380..a021e1577336f33831e4e5c1d343dc1d2e1043cc 100644 (file)
@@ -177,6 +177,8 @@ typedef __u64 __bitwise __be64;
 
 #ifdef __KERNEL__
 typedef unsigned __bitwise__ gfp_t;
+
+typedef unsigned long resource_size_t;
 #endif
 
 struct ustat {