[PATCH 11/16] 64bit resource: introduce resource_size_t for the start and end of struct resource
- From: Greg KH <greg@xxxxxxxxx>
- Date: Mon, 12 Jun 2006 17:31:13 -0700
From: Greg Kroah-Hartman <gregkh@xxxxxxx>
But do not change it from what it currently is (unsigned long)
Based on a patch series originally from Vivek Goyal <vgoyal@xxxxxxxxxx>
Cc: Vivek Goyal <vgoyal@xxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
include/linux/ioport.h | 4 +++-
include/linux/types.h | 2 ++
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/include/linux/ioport.h b/include/linux/ioport.h
index cd6bd00..535bd95 100644
--- a/include/linux/ioport.h
+++ b/include/linux/ioport.h
@@ -9,13 +9,15 @@ #ifndef _LINUX_IOPORT_H
#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;
};
diff --git a/include/linux/types.h b/include/linux/types.h
index 1046c7a..047eb8b 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -178,6 +178,8 @@ #endif
#ifdef __KERNEL__
typedef unsigned __bitwise__ gfp_t;
+
+typedef unsigned long resource_size_t;
#endif
struct ustat {
--
1.4.0
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- Reworked 64bit resource patches
- From: Greg KH
- [PATCH 01/16] 64bit resource: C99 changes for struct resource declarations
- From: Greg KH
- [PATCH 02/16] 64bit resource: fix up printks for resources in sound drivers
- From: Greg KH
- [PATCH 03/16] 64bit resource: fix up printks for resources in networks drivers
- From: Greg KH
- [PATCH 04/16] 64bit resource: fix up printks for resources in pci core and hotplug drivers
- From: Greg KH
- [PATCH 05/16] 64bit resource: fix up printks for resources in mtd drivers
- From: Greg KH
- [PATCH 06/16] 64bit resource: fix up printks for resources in ide drivers
- From: Greg KH
- [PATCH 07/16] 64bit resource: fix up printks for resources in video drivers
- From: Greg KH
- [PATCH 08/16] 64bit resource: fix up printks for resources in pcmcia drivers
- From: Greg KH
- [PATCH 09/16] 64bit resource: fix up printks for resources in arch and core code
- From: Greg KH
- [PATCH 10/16] 64bit resource: fix up printks for resources in misc drivers
- From: Greg KH
- Reworked 64bit resource patches
- Prev by Date: [PATCH 03/16] 64bit resource: fix up printks for resources in networks drivers
- Next by Date: [PATCH 14/16] 64bit resource: change pnp core to use resource_size_t
- Previous by thread: [PATCH 10/16] 64bit resource: fix up printks for resources in misc drivers
- Next by thread: [PATCH 12/16] 64bit resource: change resource core to use resource_size_t
- Index(es):
Relevant Pages
|