Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2001 00:09:05 +0200
From:      Jesper Skriver <jesper@skriver.dk>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        current@FreeBSD.org, "Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk>
Subject:   Re: NEWCARD broken in -current
Message-ID:  <20010330000905.B13266@skriver.dk>
In-Reply-To: <XFMail.010329131309.jhb@FreeBSD.org>; from jhb@FreeBSD.org on Thu, Mar 29, 2001 at 01:13:09PM -0800
References:  <20010328231709.A96500@skriver.dk> <XFMail.010329131309.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 29, 2001 at 01:13:09PM -0800, John Baldwin wrote:
> > 
> > Index: src/sys/dev/pccbb/pccbb.c
> > ===================================================================
> > RCS file: /home/ncvs/src/sys/dev/pccbb/pccbb.c,v
> > retrieving revision 1.12
> > diff -u -r1.12 pccbb.c
> > --- src/sys/dev/pccbb/pccbb.c 2001/02/09 06:08:52     1.12
> > +++ src/sys/dev/pccbb/pccbb.c 2001/03/28 20:51:20
> > @@ -53,6 +53,8 @@
> >  #include <sys/kernel.h>
> >  #include <sys/kthread.h>
> >  #include <sys/malloc.h>
> > +#include <sys/types.h>
> > +#include <sys/lock.h>
> >  #include <sys/mutex.h>
> >  
> >  #include <sys/bus.h>
> 
> Please sort the includes or at least attempt to as that is style(9).  You'll
> need to mvoe lock.h up before malloc.h.  types.h is special, it belongs as the
> very first header unless sys/param.h is the first header (param.h includes
> types.h).

The above was committed, so would the below fix it right ?

Index: src/sys/dev/pccbb/pccbb.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/pccbb/pccbb.c,v
retrieving revision 1.13
diff -u -r1.13 pccbb.c
--- src/sys/dev/pccbb/pccbb.c   2001/03/29 10:23:45     1.13
+++ src/sys/dev/pccbb/pccbb.c   2001/03/29 22:06:51
@@ -52,9 +52,8 @@
 #include <sys/errno.h>
 #include <sys/kernel.h>
 #include <sys/kthread.h>
-#include <sys/malloc.h>
-#include <sys/types.h>
 #include <sys/lock.h>
+#include <sys/malloc.h>
 #include <sys/mutex.h>
 
 #include <sys/bus.h>


/Jesper

-- 
Jesper Skriver, jesper(at)skriver(dot)dk  -  CCIE #5456
Work:    Network manager   @ AS3292 (Tele Danmark DataNetworks)
Private: FreeBSD committer @ AS2109 (A much smaller network ;-)

One Unix to rule them all, One Resolver to find them,
One IP to bring them all and in the zone to bind them.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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