Skip to content

Commit 1011b69

Browse files
krzkdavem330
authored andcommitted
ide: ht6560b: Fix cast to pointer from integer of different size
Integer passed as pointer to drvdata should be cast to unsigned long to avoid warning (compile testing on alpha architecture): drivers/ide/ht6560b.c: In function ‘ht6560b_init_dev’: drivers/ide/ht6560b.c:318:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 98949a1 commit 1011b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ide/ht6560b.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ static void __init ht6560b_init_dev(ide_drive_t *drive)
310310
{
311311
ide_hwif_t *hwif = drive->hwif;
312312
/* Setting default configurations for drives. */
313-
int t = (HT_CONFIG_DEFAULT << 8) | HT_TIMING_DEFAULT;
313+
unsigned long t = (HT_CONFIG_DEFAULT << 8) | HT_TIMING_DEFAULT;
314314

315315
if (hwif->channel)
316316
t |= (HT_SECONDARY_IF << 8);

0 commit comments

Comments
 (0)