mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: akpm@linux-foundation.org
Subject: [PATCH] sound/oss/sb_common.c: fix casting warning
Date: Thu, 25 Oct 2007 04:06:12 -0400 (EDT)	[thread overview]
Message-ID: <a576b5944eb04a18d4df3dd27cd32e7f13601470.1193299380.git.jeff@garzik.org> (raw)

sound/oss/sb_common.c: In function 'probe_sbmpu':
sound/oss/sb_common.c:1231: warning: cast to pointer from integer of different size

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
---
 sound/oss/sb_common.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/oss/sb_common.c b/sound/oss/sb_common.c
index 07cbacf..77d0e5e 100644
--- a/sound/oss/sb_common.c
+++ b/sound/oss/sb_common.c
@@ -1228,7 +1228,8 @@ int probe_sbmpu(struct address_info *hw_config, struct module *owner)
 		}
 		attach_mpu401(hw_config, owner);
 		if (last_sb->irq == -hw_config->irq)
-			last_sb->midi_irq_cookie=(void *)hw_config->slots[1];
+			last_sb->midi_irq_cookie =
+				(void *)(long) hw_config->slots[1];
 		return 1;
 	}
 #endif
-- 
1.5.2.4


             reply	other threads:[~2007-10-25  8:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-25  8:06 Jeff Garzik [this message]
2007-10-25  8:06 ` [PATCH] Permit silencing of __deprecated warnings Jeff Garzik
2007-10-25  8:15   ` Andrew Morton
2007-10-25  8:20     ` Jeff Garzik
2007-10-25 15:34     ` Linus Torvalds
2007-10-25 11:02   ` Sam Ravnborg
2007-10-26  3:07   ` Arjan van de Ven
2007-10-25  8:06 ` [PATCH] Remove #warnings for longstanding conditions Jeff Garzik
2007-10-25  9:52   ` Karsten Keil
2007-10-25 11:22   ` Matthew Wilcox
2007-10-26  2:07     ` Jeff Garzik
2007-10-26  2:14       ` Matthew Wilcox
2007-10-26  2:19         ` Jeff Garzik
2007-10-25  8:06 ` [PATCH] ISDN/capidrv: fix casting warning Jeff Garzik
2007-10-25  9:51   ` Karsten Keil
2007-10-26  0:53     ` Jeff Garzik

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=a576b5944eb04a18d4df3dd27cd32e7f13601470.1193299380.git.jeff@garzik.org \
    --to=jeff@garzik.org \
    --cc=akpm@linux-foundation.org \
    --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 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®