* [PATCH] 64bit warning fixes
@ 2002-02-07 17:09 Andi Kleen
0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2002-02-07 17:09 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
Hi Linus,
This patch just fixes some harmless but ugly warnings on 64bit compilations.
>From the x86-64 tree.
For 2.5.4pre2. Please consider applying.
Thanks,
-Andi
--- ../../v2.5/linux/include/linux/pm.h Thu Feb 7 01:46:26 2002
+++ linux/include/linux/pm.h Thu Feb 7 17:32:17 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;
};
--- ../../v2.5/linux/kernel/pm.c Tue Jan 15 17:53:36 2002
+++ linux/kernel/pm.c Thu Feb 7 17:32:17 2002
@@ -154,7 +154,7 @@
int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data)
{
int status = 0;
- int prev_state, next_state;
+ unsigned long prev_state, next_state;
if (in_interrupt())
BUG();
@@ -163,7 +163,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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-07 17:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-07 17:09 [PATCH] 64bit warning fixes Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox