Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Sep 2010 21:35:28 +0400
From:      pluknet <pluknet@gmail.com>
To:        Matthew D Fleming <mdf@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r212182 - head/sys/kern
Message-ID:  <AANLkTi=pEArHiS-V-sX=hn8v=t=9t5swOPs63BXrMgXR@mail.gmail.com>
In-Reply-To: <201009031723.o83HNR7k056625@svn.freebsd.org>
References:  <201009031723.o83HNR7k056625@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3 September 2010 21:23, Matthew D Fleming <mdf@freebsd.org> wrote:
> Author: mdf
> Date: Fri Sep =A03 17:23:26 2010
> New Revision: 212182
> URL: http://svn.freebsd.org/changeset/base/212182
>
> Log:
> =A0Fix user-space libsbuf build. =A0Why isn't CTASSERT available to
> =A0user-space?
>
> Modified:
> =A0head/sys/kern/subr_sbuf.c
>
> Modified: head/sys/kern/subr_sbuf.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/sys/kern/subr_sbuf.c =A0 Fri Sep =A03 16:12:39 2010 =A0 =A0 =A0 =
=A0(r212181)
> +++ head/sys/kern/subr_sbuf.c =A0 Fri Sep =A03 17:23:26 2010 =A0 =A0 =A0 =
=A0(r212182)
> @@ -116,8 +116,10 @@ _assert_sbuf_state(const char *fun, stru
>
> =A0#endif /* _KERNEL && INVARIANTS */
>
> +#ifdef _KERNEL
> =A0CTASSERT(powerof2(SBUF_MAXEXTENDSIZE));
> =A0CTASSERT(powerof2(SBUF_MAXEXTENDINCR));
> +#endif
>
> =A0static int
> =A0sbuf_extendsize(int size)

Hi,

as I can see, the next (and maybe preferred) model is used in system header=
s:

#ifdef CTASSERT
CTASSERT(...);
#endif

--=20
wbr,
pluknet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=pEArHiS-V-sX=hn8v=t=9t5swOPs63BXrMgXR>