Messages in this thread Patch in this message | | | Subject | PATCH: Fix 32bitism in SDHCI | From | Alan Cox <> | Date | Thu, 15 Jun 2006 16:33:25 +0100 |
| |
The data field is ulong, pointers fit in ulongs. Casting them to int is bad for 64bit systems.
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.17-rc6/drivers/mmc/sdhci.c linux-2.6.17-rc6/drivers/mmc/sdhci.c --- linux.vanilla-2.6.17-rc6/drivers/mmc/sdhci.c 2006-06-06 14:01:11.000000000 +0100 +++ linux-2.6.17-rc6/drivers/mmc/sdhci.c 2006-06-15 11:59:57.580510280 +0100 @@ -1073,7 +1073,7 @@ tasklet_init(&host->finish_tasklet, sdhci_tasklet_finish, (unsigned long)host); - setup_timer(&host->timer, sdhci_timeout_timer, (int)host); + setup_timer(&host->timer, sdhci_timeout_timer, (unsigned long)host); ret = request_irq(host->irq, sdhci_irq, SA_SHIRQ, host->slot_descr, host); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |