Messages in this thread Patch in this message | | | Date | Sat, 28 Aug 2004 16:11:00 +0200 (MEST) | From | Mikael Pettersson <> | Subject | [PATCH][2.4.28-pre2] drivers/ide/pci/sc1200.c cast-as-lvalue fix |
| |
Fix for cast-as-lvalue in drivers/ide/pci/sc1200.c. Backport from 2.6.
/Mikael
--- linux-2.4.28-pre2/drivers/ide/pci/sc1200.c.~1~ 2003-06-14 13:30:22.000000000 +0200 +++ linux-2.4.28-pre2/drivers/ide/pci/sc1200.c 2004-08-28 14:58:54.000000000 +0200 @@ -418,7 +418,7 @@ ss = kmalloc(sizeof(sc1200_saved_state_t), GFP_KERNEL); if (ss == NULL) return -ENOMEM; - (sc1200_saved_state_t *)hwif->config_data = ss; + hwif->config_data = (unsigned long)ss; } ss = (sc1200_saved_state_t *)hwif->config_data; // - 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/
| |