* pm storing void * in int
@ 2002-03-04 19:13 Pavel Machek
0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2002-03-04 19:13 UTC (permalink / raw)
To: kernel list, Rusty trivial patch monkey Russell, patches
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-03-04 23:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-04 19:13 pm storing void * in int Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®