Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2007 00:19:03 +0200
From:      Olivier Houchard <cognet@ci0.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys proc.h
Message-ID:  <20071016221903.GA75176@ci0.org>
In-Reply-To: <200710161637.36950.jhb@freebsd.org>
References:  <200710161957.l9GJvaFr075367@repoman.freebsd.org> <200710161637.36950.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 16, 2007 at 04:37:36PM -0400, John Baldwin wrote:
> On Tuesday 16 October 2007 03:57:36 pm Olivier Houchard wrote:
> > cognet      2007-10-16 19:57:36 UTC
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:        (Branch: RELENG_6)
> >     sys/sys              proc.h 
> >   Log:
> >   Make td_sqqueue explicitely signed, as we compare it with >= 0. On arm,
> >   char defaults to unsigned.
> 
> It probably should really be unsigned like td_tsqueue (serves the same 
> purpose) FWIW, however it is currently an 'int' in HEAD.
> 
> Probably changing td_sqqueue to u_char in HEAD, 7.x and 6.x would be the best 
> fix.

I didn't investigate much. I saw it was an int on -CURRENT, and this test :
	MPASS(td->td_sqqueue < NR_SLEEPQS && td->td_sqqueue >= 0);
If td_squeue can be unsigned, the test is wrong.

Regards, 

Olivier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071016221903.GA75176>