lkml.org 
[lkml]   [2002]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectpm storing void * in int
Hi!

...which is no-no for 64bit apps. (In case you wonder, data in pm.c
is void *). Please apply,
Pavel

--- linux/include/linux/pm.h Thu Feb 28 23:14:54 2002
+++ linux.64/include/linux/pm.h Mon Mar 4 19:58:01 2002
@@ -103,8 +103,8 @@
void *data;

unsigned long flags;
- int state;
- int prev_state;
+ unsigned long state;
+ unsigned long prev_state;

struct list_head entry;
};
--- linux/kernel/pm.c Sat May 5 11:10:04 2001
+++ linux.64/kernel/pm.c Mon Mar 4 19:58:12 2002
@@ -162,7 +162,7 @@
case PM_SUSPEND:
case PM_RESUME:
prev_state = dev->state;
- next_state = (int) data;
+ next_state = (unsigned long) data;
if (prev_state != next_state) {
if (dev->callback)
status = (*dev->callback)(dev, rqst, data);
--
(about SSSCA) "I don't say this lightly. However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.039 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site