From owner-cvs-sys Tue Sep 24 10:48:55 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA15585 for cvs-sys-outgoing; Tue, 24 Sep 1996 10:48:55 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA15318; Tue, 24 Sep 1996 10:48:09 -0700 (PDT) Date: Tue, 24 Sep 1996 10:48:09 -0700 (PDT) From: Bruce Evans Message-Id: <199609241748.KAA15318@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/i386/include cpufunc.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/09/24 10:48:08 Modified: sys/i386/include cpufunc.h Log: Fixed a few hundred warnings (2400 in LINT) for signed vs unsigned comparisons in the inb() and outb() macros. I decided that int args are OK here. Any type that can hold a u_int16_t without overflow is correct, and 32-bit types are optimal. Introduced a few tens of warnings (100 in LINT) for use of pessimized (short) types for the port arg. Only a few drivers are affected by this. u_short pessimizations aren't detected. Added `__extension__' before the statement-expression in inb() so that it can be compiled without warnings by gcc -pedantic. Revision Changes Path 1.56 +13 -6 src/sys/i386/include/cpufunc.h