Re: patch for kern_clock.c

2008-04-10 Thread RW
On Thu, 10 Apr 2008 06:24:54 +0200 (CEST)
Wojciech Puchar [EMAIL PROTECTED] wrote:

 sent it as sent-pr, not to mailing list i think
 

You can also do this from the website:

http://www.freebsd.org/send-pr.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


patch for kern_clock.c

2008-04-09 Thread Rudy



I have a machine with 6.3-STABLE in /usr/src.  The system is a 5.5 kernel (not 
sure if this matters).

Any how, buildkernel fails.  Ther error:
/usr/src/sys/kern/kern_clock.c: In function `sysctl_kern_cp_times': 
/usr/src/sys/kern/kern_clock.c:123: warning: unused variable `i'



The patch for kern_clock.c:


--- kern_clock.c.orig   Wed Apr  9 18:18:27 2008
+++ kern_clock.cWed Apr  9 18:18:07 2008
@@ -120,9 +120,10 @@
 {
struct pcpu *pcpu;
int error;
-   int i, c;
+   int c;
long *cp_time;
 #ifdef SCTL_MASK32
+   int i;
unsigned int cp_time32[CPUSTATES];
 #endif
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: patch for kern_clock.c

2008-04-09 Thread Wojciech Puchar

sent it as sent-pr, not to mailing list i think


On Wed, 9 Apr 2008, Rudy wrote:




I have a machine with 6.3-STABLE in /usr/src.  The system is a 5.5 kernel 
(not sure if this matters).


Any how, buildkernel fails.  Ther error:
/usr/src/sys/kern/kern_clock.c: In function `sysctl_kern_cp_times': 
/usr/src/sys/kern/kern_clock.c:123: warning: unused variable `i'



The patch for kern_clock.c:


--- kern_clock.c.orig   Wed Apr  9 18:18:27 2008
+++ kern_clock.cWed Apr  9 18:18:07 2008
@@ -120,9 +120,10 @@
{
   struct pcpu *pcpu;
   int error;
-   int i, c;
+   int c;
   long *cp_time;
#ifdef SCTL_MASK32
+   int i;
   unsigned int cp_time32[CPUSTATES];
#endif
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]