[PATCH] 64bit resource: introduce resource_size_t for the start and end of struct resource
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>
This commit is contained in:
@ -9,13 +9,15 @@
|
|||||||
#define _LINUX_IOPORT_H
|
#define _LINUX_IOPORT_H
|
||||||
|
|
||||||
#include <linux/compiler.h>
|
#include <linux/compiler.h>
|
||||||
|
#include <linux/types.h>
|
||||||
/*
|
/*
|
||||||
* Resources are tree-like, allowing
|
* Resources are tree-like, allowing
|
||||||
* nesting etc..
|
* nesting etc..
|
||||||
*/
|
*/
|
||||||
struct resource {
|
struct resource {
|
||||||
|
resource_size_t start;
|
||||||
|
resource_size_t end;
|
||||||
const char *name;
|
const char *name;
|
||||||
unsigned long start, end;
|
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
struct resource *parent, *sibling, *child;
|
struct resource *parent, *sibling, *child;
|
||||||
};
|
};
|
||||||
|
@ -177,6 +177,8 @@ typedef __u64 __bitwise __be64;
|
|||||||
|
|
||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
typedef unsigned __bitwise__ gfp_t;
|
typedef unsigned __bitwise__ gfp_t;
|
||||||
|
|
||||||
|
typedef unsigned long resource_size_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct ustat {
|
struct ustat {
|
||||||
|
Reference in New Issue
Block a user