
Bug fixed by commit e1fbd9210d5
Type | IncompatibleType |
Config | "AMIGA_Z2RAM && LBDAF" (2nd degree) |
Fix-in | code |
Location | drivers/ |
#include <stdio.h> #ifdef CONFIG_LBDAF typedef unsigned long long sector_t; #else typedef unsigned long sector_t; #endif sector_t blk_rq_pos() { return 0; } #ifdef CONFIG_AMIGA_Z2RAM static void do_z2_request() { printf("bad access: block=%lu\n", blk_rq_pos()); // ERROR } #endif int main() { #ifdef CONFIG_AMIGA_Z2RAM do_z2_request(); #endif return 0; }
#include <stdio.h> #ifdef CONFIG_LBDAF typedef unsigned long long sector_t; #else typedef unsigned long sector_t; #endif int main() { #ifdef CONFIG_AMIGA_Z2RAM // do_z2_request(); printf("bad access: block=%lu\n", (sector_t) 0); // ERROR #endif return 0; }
. drivers/block/z2ram.c:80: printk( KERN_ERR DEVICE_NAME ": bad access: block=%lu, count=%u\n",