1 From kernel 2.6.26rc2, SetPageReserved and ClearPageReserved changed from
2 macros to inline functions, that are generated using macros (among which
5 The functions were redefined because they don't exist as macros, and then
6 preventing compilation.
8 This patch allows to compile the quickcam/qce-ga/qc-usb module on kernels
11 An other fix could use #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26).
13 Signed-off-by: Guillaume Bedot <littletux@mandriva.org>
14 --- qc-usb-0.6.6.orig/qc-memory.c 2008-05-27 16:41:19.000000000 +0200
15 +++ qc-usb-0.6.6/qc-memory.c 2008-05-27 16:41:35.000000000 +0200
17 #define pte_offset(pmd,adr) pte_offset_map(pmd,adr) /* Emulation for a kernel using the new rmap-vm */
18 #endif /* Fix by Michele Balistreri <brain87@gmx.net> */
21 #ifndef SetPageReserved
22 #define SetPageReserved(p) mem_map_reserve(p)
24 #ifndef ClearPageReserved
25 #define ClearPageReserved(p) mem_map_unreserve(p)
30 /* {{{ [fold] kvirt_to_pa(): obtain physical address from virtual address obtained by vmalloc() */