Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi, i just compiled again 2.4.21-15.0.4.EL and run into the same problem. i then searched the page_count makro in the kernel tree and found it defined in mm_inline.h. So I added #include <linux/init.h> to drbd_main.c, drbd_receiver.c and drbd_worker.c. Now everything compiles fine and modprobe drbd delivers no error :-) Christian p.s. I'm not a coder, so I hope, I did nothing stupid... Lars Ellenberg wrote: >/ 2004-07-26 17:19:49 -0400 >\ Kelly Opal: > > >>Hi >> I was digging through the compile and found these 2 warnings. I hope >>this will help in finding the problem. >> >>drbd_worker.c: In function `w_e_end_rsdata_req': >>drbd_worker.c:619: warning: implicit declaration of function >>`page_count' >> >>drbd_receiver.c: In function `drbd_put_ee': >>drbd_receiver.c:346: warning: implicit declaration of function >>`page_count' >> >>This is the entry in the mm.h file >> >>#define is_page_cache_freeable(page) (page_count(page) - !!page->buffers >>== 1) >> >> > >no. obviously the define of is_page_cache_freeable, not the define of >page_count... > > > >>So I put #include <linux/mm.h> in the drbd_reciever.c file as well. >> >> >you mean into drbd_worker.c (in the patch you quoted, I put it already >into drbd_receiver.c). ok. > > > >>But >>the problem persists. >> >> > >as already stated: mm.h is already included implicitly. > > > >>I also tried using 0.6.13 and got the same error. >>I then tried it on RH Enterprise 3 Workstation and got the same thing. >> >>Hope this helps >> >> > >it does not. >I repeat. page_count IS A MACRO. >so go and find the definiton of that macro in you kernel source tree. >or compile against kernel.org 2.4.whatever, or better 2.6 >(please do this anyways, just as an exercise :) > > > Lars Ellenberg > > > -- ========================== IT-Professional Services Christian Kowarzik Kaiserstrasse 28b 40479 Duesseldorf Telefon 0211-5451137 Mobil 0179-2262890 Fax 0211-1520050 =========================