From owner-cvs-all Wed Feb 27 9:45:26 2002 Delivered-To: cvs-all@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 8C02D37B405; Wed, 27 Feb 2002 09:45:19 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id g1RHjBR04676; Wed, 27 Feb 2002 09:45:11 -0800 Date: Wed, 27 Feb 2002 09:45:11 -0800 From: Brooks Davis To: Bruce Evans Cc: Mikhail Teterin , brooks@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/awi if_awi_pccard.c Message-ID: <20020227094511.A546@Odin.AC.HMC.Edu> References: <200202262044.g1QKigX25029@aldan.algebra.com> <20020227224407.P48555-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020227224407.P48555-100000@gamplex.bde.org>; from bde@zeta.org.au on Wed, Feb 27, 2002 at 10:56:38PM +1100 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 27, 2002 at 10:56:38PM +1100, Bruce Evans wrote: > This an indication that if_name should have type "const char *", and > that we don't have -Wwrite-strings turned on for the kernel yet. >=20 > device_get_name(dev) already returns "const char *". The change should > have no effect on the warning, but "works" because -Wwrite-strings is > not turned on so the compiler can't see that "awi" also has type > "const char *". >=20 > We are a long way from having a const-clean kernel, due to the missing > -Wwrite-strings and missing consts at strategic places (mainly at > syscall entry points). My thought was that this fix was wrong (though I didn't realize that it shouldn't work) but I wanted to get the kernel building without current warnings before screwing around with struct ifnet since that's likely to create even more warnings. Once we've got LINT more or less working again, I'd like to see this change go in or possiably a conversion to the NetBSD style if_xname (replacing if_name and if_unit). If you have a suggestion for a less bogus interim fix, I'd be happy to commmit it. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8fRsmXY6L6fI4GtQRAtGHAKCNw2Gv1soIn2mvhBa5hXLmvJbf6gCfeYxL nXOLAy4G6qMkrnqcL6yjde0= =V8yT -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message