svn commit: r245771 - in projects/counters/sys: kern sys

Bruce Evans brde at optusnet.com.au
Tue Jan 22 07:57:23 UTC 2013


On Tue, 22 Jan 2013, Gleb Smirnoff wrote:

> Log:
>  Remove namespace pollution.
>
>  Noticed by:	bde
>
> Modified:
>  projects/counters/sys/kern/subr_counter.c
>  projects/counters/sys/sys/counter.h
>
> ...
> Modified: projects/counters/sys/sys/counter.h
> ==============================================================================
> --- projects/counters/sys/sys/counter.h	Tue Jan 22 06:21:44 2013	(r245770)
> +++ projects/counters/sys/sys/counter.h	Tue Jan 22 06:22:40 2013	(r245771)
> @@ -29,9 +29,6 @@
> #ifndef __SYS_COUNTER_H__
> #define __SYS_COUNTER_H__
>
> -#include <sys/param.h>
> -#include <sys/systm.h>
> -
> typedef uint64_t *counter_u64_t;
>
> #include <machine/counter.h>

Thanks.

There are several other headers in <sys> in -current that include sys/param.h:

 	acl.h:#include <sys/param.h>
 	fail.h:#include <sys/param.h>
 	ktr.h:#include <sys/param.h>
 	malloc.h:#include <sys/param.h>
 	pmckern.h:#include <sys/param.h>
 	posix4.h:#include <sys/param.h>
 	procfs.h:#include <sys/param.h>
 	ptrace.h:#include <sys/param.h>
 	tty.h:#include <sys/param.h>

In FreeBSD-[3-5], procfs.h was the only one of these.  posix4.h also had it,
but wasn't in <sys>.

Bruce


More information about the svn-src-projects mailing list