login
Header Space

 
 

[PATCH] sound/oss/sb_common.c: fix casting warning

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>
Cc: <akpm@...>
Date: Thursday, October 25, 2007 - 4:06 am

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

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] sound/oss/sb_common.c: fix casting warning, Jeff Garzik, (Thu Oct 25, 4:06 am)
[PATCH] ISDN/capidrv: fix casting warning, Jeff Garzik, (Thu Oct 25, 4:06 am)
Re: [PATCH] ISDN/capidrv: fix casting warning, Karsten Keil, (Thu Oct 25, 5:51 am)
Re: [PATCH] ISDN/capidrv: fix casting warning, Jeff Garzik, (Thu Oct 25, 8:53 pm)
[PATCH] Remove #warnings for longstanding conditions., Jeff Garzik, (Thu Oct 25, 4:06 am)
Re: [PATCH] Remove #warnings for longstanding conditions., Matthew Wilcox, (Thu Oct 25, 7:22 am)
Re: [PATCH] Remove #warnings for longstanding conditions., Matthew Wilcox, (Thu Oct 25, 10:14 pm)
[PATCH] Permit silencing of __deprecated warnings., Jeff Garzik, (Thu Oct 25, 4:06 am)
Re: [PATCH] Permit silencing of __deprecated warnings., Arjan van de Ven, (Thu Oct 25, 11:07 pm)
Re: [PATCH] Permit silencing of __deprecated warnings., Sam Ravnborg, (Thu Oct 25, 7:02 am)
Re: [PATCH] Permit silencing of __deprecated warnings., Andrew Morton, (Thu Oct 25, 4:15 am)
Re: [PATCH] Permit silencing of __deprecated warnings., Linus Torvalds, (Thu Oct 25, 11:34 am)
Re: [PATCH] Permit silencing of __deprecated warnings., Jeff Garzik, (Thu Oct 25, 4:20 am)
speck-geostationary