public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sound/oss/sb_common.c: fix casting warning
@ 2007-10-25  8:06 Jeff Garzik
  2007-10-25  8:06 ` [PATCH] Permit silencing of __deprecated warnings Jeff Garzik
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Jeff Garzik @ 2007-10-25  8:06 UTC (permalink / raw)
  To: LKML; +Cc: akpm

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


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2007-10-26  3:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-25  8:06 [PATCH] sound/oss/sb_common.c: fix casting warning Jeff Garzik
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox