From: Andrew Morton Ben's compile-time-bad-kmalloc-flags debug patch blows up in the adaptec driver. A simple fix woulkd be to replace `0' here with __GFP_VALID. But surely M_WAITOK should set __GFP_WAIT?? Cc: Benjamin LaHaise Cc: James Bottomley Signed-off-by: Andrew Morton --- drivers/scsi/aic7xxx/aic79xx_osm.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/scsi/aic7xxx/aic79xx_osm.h~make-kmalloc-fail-for-swapped-size--gfp-flags-aic-fix drivers/scsi/aic7xxx/aic79xx_osm.h --- devel/drivers/scsi/aic7xxx/aic79xx_osm.h~make-kmalloc-fail-for-swapped-size--gfp-flags-aic-fix 2005-08-06 15:34:47.000000000 -0700 +++ devel-akpm/drivers/scsi/aic7xxx/aic79xx_osm.h 2005-08-06 15:34:47.000000000 -0700 @@ -440,7 +440,7 @@ struct ahd_platform_data { /************************** OS Utility Wrappers *******************************/ #define printf printk #define M_NOWAIT GFP_ATOMIC -#define M_WAITOK 0 +#define M_WAITOK GFP_KERNEL #define malloc(size, type, flags) kmalloc(size, flags) #define free(ptr, type) kfree(ptr) _