Commit a6c6193a authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

pcmcia: correct types

We should be using resource_size_t and unsigned types correctly, otherwise
we sign extend the flags on a 64bit box, which is not what we want.
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c4277e9e
...@@ -80,9 +80,9 @@ struct pccard_resource_ops { ...@@ -80,9 +80,9 @@ struct pccard_resource_ops {
* Stuff internal to module "pcmcia_rsrc": * Stuff internal to module "pcmcia_rsrc":
*/ */
extern int static_init(struct pcmcia_socket *s); extern int static_init(struct pcmcia_socket *s);
extern struct resource *pcmcia_make_resource(unsigned long start, extern struct resource *pcmcia_make_resource(resource_size_t start,
unsigned long end, resource_size_t end,
int flags, const char *name); unsigned long flags, const char *name);
/* /*
* Stuff internal to module "pcmcia_core": * Stuff internal to module "pcmcia_core":
......
...@@ -30,8 +30,9 @@ int static_init(struct pcmcia_socket *s) ...@@ -30,8 +30,9 @@ int static_init(struct pcmcia_socket *s)
return 0; return 0;
} }
struct resource *pcmcia_make_resource(unsigned long start, unsigned long end, struct resource *pcmcia_make_resource(resource_size_t start,
int flags, const char *name) resource_size_t end,
unsigned long flags, const char *name)
{ {
struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL); struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment