Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Sep 1995 09:14:40 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        current@FreeBSD.ORG
Subject:   Re: test coverage of LINT
Message-ID:  <199509100714.JAA20649@uriah.heep.sax.de>
In-Reply-To: <199509100344.NAA19536@godzilla.zeta.org.au> from "Bruce Evans" at Sep 10, 95 01:44:35 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Bruce Evans wrote:
> 
> `grep 'define N.*0'' in /sys/compile/LINT should produce no output but
> actually produces the left half of the following:

> od.h:#define NOD 0				# source files missing

Under development.  Only the hooks are reserved yet, there used to be
some discussion on the SCSI list about required changes to the SCSI
configuration stuff.

> su.h:#define NSU 0				# should be enabled ???

IMHO, it's obsolete and has been replaced by the `uk' device.

Julian?  Peter?

> BTW1, most drivers are unecessarily ifdefed with
> 
> #include "foo.h"
> #if NFOO > 0
> <body of driver>
> #endif
> 
> NFOO is guaranteed to be > 0 if the driver is configured (except possibly
> for cases involving cross references).  I'd like to remove these ifdefs.

I'd rather temporarily add an #else\n#error "Should not happen" to see
if there are some weird constellations.  You won't recognize any ill
side-effects (except of the bloat) otherwise (the driver won't be
referenced anyway).

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)



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