ramon.roca@xxxxxxxxxx wrote:
I'd a Pinnacle PCTV Pro correctly running on RH 8.0 using bttv 0.7.1.106.Now I've installed RH 9, and since I've got the blue screen, i just went to apply the latest bttv 0-7-106 again. However, when doing the make, I'm getting the following error when compiling bttv-driver.c: -----------------------bttv-driver.c: In function `do_bttv_mmap':bttv-driver.c:2201: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast bttv-driver.c:2201: incompatible type for argument 4 of `remap_page_range_R2baf18f2' bttv-driver.c:2201: too few arguments to function `remap_page_range_R2baf18f2'bttv-driver.c: At top level: bttv-driver.c:2233: warning: initialization from incompatible pointer type make[3]: *** [bttv-driver.o] Error 1 ------------------------
I ran into this with my drivers too. RedHat made this change as part of some VM accounting patch. The remap_page_range() in their kernel is equivalent to the one from the 2.5 kernel.
I use the attached script to detect if the system is RH 9 running an RH kernel. If so, it emits "-DRH9_REMAP", which I pass to GCC and check for in the code with an #ifdef. I was hoping that they had put a #define in their kernel that would make this easier to detect, but no such luck.
Really the driver taht comes with RH9 is slightly different from the one that comes with 0.7.106, also in early bttv versions uses 5 parameters when calling remap_page_range as well.
Aside from that, any other differences are likely due to the fact that the kernel isn't 2.4.20, but 2.4.21-pre3.
-- Mark McClelland mark@xxxxxxxxxxxxxxxx
Attachment:
get_cflags.sh
Description: Bourne shell script