drivers/ide/ide-cd.c: In function ‘cdrom_analyze_sense_data’:
drivers/ide/ide-cd.c:180: warning: comparison of distinct pointer types lacks a cast
[ which actually hints us into real issue -> please think what would
happen if bio_sectors() returns _zero_ before and after the patch ]
I applied the patch replacing the above code with:
bio_sectors = max(bio_sectors(failed_command->bio), 4U);
sector &= ~(bio_sectors - 1);
Thanks,
Bart
--