Skip to content

Commit

Permalink
[PATCH] 64bit resource: introduce resource_size_t for the start and e…
Browse files Browse the repository at this point in the history
…nd 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>
  • Loading branch information
Greg Kroah-Hartman committed Jun 27, 2006
1 parent e29419f commit cf7c712
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/linux/ioport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
2 changes: 2 additions & 0 deletions include/linux/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ typedef __u64 __bitwise __be64;

#ifdef __KERNEL__
typedef unsigned __bitwise__ gfp_t;

typedef unsigned long resource_size_t;
#endif

struct ustat {
Expand Down

0 comments on commit cf7c712

Please sign in to comment.