Compile bombs out in bridging:

br.c: In function `brg_probe':
br.c:2458: `loops_per_sec' undeclared (first use in this function)
br.c:2458: (Each undeclared identifier is reported only once
br.c:2458: for each function it appears in.)
br.c:2442: warning: `bogomips' might be used uninitialized in this function
br.c: At top level:
br.c:165: warning: `br_get_ifnames' declared `static' but never defined
make[3]: *** [br.o] Error 1
make[2]: *** [first_rule] Error 2
make[1]: *** [_subdir_bridge] Error 2
make: *** [_dir_net] Error 2


In the style of the other loops_per_sec->loops_per_jiffy changes this makes
it compile (not booted, yet...)

--- net/bridge/br.c~    Sun Sep 10 11:38:46 2000
+++ net/bridge/br.c     Sun Oct  1 00:26:26 2000
@@ -2455,7 +2455,7 @@
 
        /* Set up MAC address based on BogoMIPs figure for first CPU and time
         */ 
-       bogomips = (loops_per_sec+2500)/500000 ;
+       bogomips = (loops_per_jiffy+2500)/(500000/HZ);
        get_fast_time(&utime);
 
        /* Ummmm....  YES! */


        M
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to