From: Andi Kleen <ak@muc.de>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] 64bit warning fixes
Date: Thu, 7 Feb 2002 18:09:32 +0100 [thread overview]
Message-ID: <20020207180932.A25214@averell> (raw)
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);
reply other threads:[~2002-02-07 17:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020207180932.A25214@averell \
--to=ak@muc.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).