All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Cc: alexn@dsv.su.se
Subject: [PATCH] AoE warning on 64-bit archs
Date: Wed, 9 Mar 2005 16:19:22 -0800	[thread overview]
Message-ID: <1110413962220@kroah.com> (raw)
In-Reply-To: <20050310001812.GA31984@kroah.com>

ChangeSet 1.2035, 2005/03/09 10:20:37-08:00, alexn@dsv.su.se

[PATCH] AoE warning on 64-bit archs

I just accidently built AoE on x86-64 and it emits a warning
due to conversion of types of different size, trivial fix:


Signed-off-by: Alexander Nyberg <alexn@dsv.su.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>


 drivers/block/aoe/aoechr.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/block/aoe/aoechr.c b/drivers/block/aoe/aoechr.c
--- a/drivers/block/aoe/aoechr.c	2005-03-09 16:16:13 -08:00
+++ b/drivers/block/aoe/aoechr.c	2005-03-09 16:16:13 -08:00
@@ -178,13 +178,13 @@
 static ssize_t
 aoechr_read(struct file *filp, char __user *buf, size_t cnt, loff_t *off)
 {
-	int n;
+	unsigned long n;
 	char *mp;
 	struct ErrMsg *em;
 	ssize_t len;
 	ulong flags;
 
-	n = (int) filp->private_data;
+	n = (unsigned long) filp->private_data;
 	switch (n) {
 	case MINOR_ERR:
 		spin_lock_irqsave(&emsgs_lock, flags);


  reply	other threads:[~2005-03-10  1:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-10  0:18 [BK PATCH] AOE fixes for 2.6.11 Greg KH
2005-03-10  0:19 ` Greg KH [this message]
2005-03-10  0:19   ` [PATCH] aoe: add documentation for udev users Greg KH
2005-03-10  0:19     ` [PATCH] aoe: update " Greg KH
2005-03-10  0:19       ` [PATCH] aoe: fail IO on disk errors Greg KH
2005-03-10  0:19         ` [PATCH] aoe status.sh: handle sysfs not in /etc/mtab Greg KH
2005-03-10  0:19           ` [PATCH] aoe: drivers/block/aoe/aoechr.c cleanups Greg KH

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=1110413962220@kroah.com \
    --to=greg@kroah.com \
    --cc=alexn@dsv.su.se \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.