blkdev.h paddr overflows
This patch, originally from Zwane Mwaikambo for my current page clustering tree, corrects overflows with pfn's shifted to paddrs. The portion of the fix casting the pfn's to dma_addr_t, included here, is applicable to mainline.
Please apply,
Bill
===== include/linux/blkdev.h 1.94 vs edited =====
include/linux/blkdev.h +2 -2
@@ -287,8 +287,8 @@* BLK_BOUNCE_ANY : don't bounce anything * BLK_BOUNCE_ISA : bounce pages above ISA DMA boundary */ -#define BLK_BOUNCE_HIGH (blk_max_low_pfn << PAGE_SHIFT) -#define BLK_BOUNCE_ANY (blk_max_pfn << PAGE_SHIFT) +#define BLK_BOUNCE_HIGH ((dma_addr_t)blk_max_low_pfn << PAGE_SHIFT) +#define BLK_BOUNCE_ANY ((dma_addr_t)blk_max_pfn << PAGE_SHIFT)#define BLK_BOUNCE_ISA (ISA_DMA_THRESHOLD)extern int init_emergency_isa_pool (void );