From nobody Sat Nov 18 04:06:21 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SXKvd3shWz51kFT; Sat, 18 Nov 2023 04:06:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SXKvd32y5z4sw2; Sat, 18 Nov 2023 04:06:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700280381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=43MoHvZtMrKZRnshYmzRuAsyfC8wVVPADsDRQtZKyNs=; b=ArJRCy4ZozcLmALilqkMTMuz193uKibeMSDVL6y+BKwxs0N1c0Uay5zeQWSscmnZTIP4pl nSS7XUXS2K7aL0KWRdECX/GqeNflwF9vZc2nrk/SrsES3vehhfivc6StrA+a/nytz07XAw U6T8t9nor9PuiX4faw+tHF5CYuvUPubrIAIkAme6BSt8ymYPbnvK+x14HLJwNu1aWu6Gwb AXsJtbR3bozYWrfiVUyeEwkmUoP9154UAx2aKDPd/QWL48+U51k0PTwrx6+u0lZ+HKT8rv N8J6xnFxjBKPuF8x8VjTM5mkzn2Tl82XHQfu2Phd4odhPonSWy0sXHtD7XSwkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700280381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=43MoHvZtMrKZRnshYmzRuAsyfC8wVVPADsDRQtZKyNs=; b=oVku5oe0EMGYWsHLvWGIf6Z+HarraTmyr2E+O9MIa1O6Fvb8ixlU0IInbAIhJiqNUMBN9Z 4jLJzCRkKJuX5gBBINd3lIN/cYY9u/UHIVx4Jj3Kv6J3L7XBBShtzyazS2JgI1Anf6ML2N TNEawWaVJMK7DZNPB3KnpVG14a44NQZRUSgzOuRIm7ZM8nxmDjgXT/B8nV4n73VftgYP94 C7gnwlwATZ9Xe4VTiugMPB2yQBhNFQ2z31fX5pYaG164ldYklEwZUfY6x8bxFzxszZSh/J 9wIgN5780bsTsW1ZPG1ESeELroEmP4PgmfGArPTEEaX6+AnpTcDw8nscAqHwSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700280381; a=rsa-sha256; cv=none; b=eOsAveZWAfhWK1h4F2RMb1+ugzehvBxWTO/W4jPNuuzIlKoTbC2aAqFOpQCVcQIAdIm4kZ m2SBaxv2n4mRsowFLbUCn12h08q6hpm6HjrbHWcP1FvKjxAA5miDi5x5do+Es3IULHC4G2 FvrsvoB2UAVJIUZslrHpfvtGWDRr8OVy6OhFd+ZtnibK/++hfhZo6MUyPJggA0YtYLI/pu FrVZv1061aWiEmK5b7gHkkkpPdLIZrtG7Nc7vUFq/vj97cz/AU618JBFbso4k4TMxOgi0r TUyBjk9c5NI7cggxalBT6829cyN/WDi9K9drhxwcTaOTpG9cdplIF7chRfN8AA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SXKvd1qKQz19lT; Sat, 18 Nov 2023 04:06:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AI46LjI081492; Sat, 18 Nov 2023 04:06:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AI46Luw081489; Sat, 18 Nov 2023 04:06:21 GMT (envelope-from git) Date: Sat, 18 Nov 2023 04:06:21 GMT Message-Id: <202311180406.3AI46Luw081489@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: f863f39636dc - main - pnpinfo: Remove __P List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f863f39636dcb007e977840b0a8d0e796de50007 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f863f39636dcb007e977840b0a8d0e796de50007 commit f863f39636dcb007e977840b0a8d0e796de50007 Author: Warner Losh AuthorDate: 2023-11-18 03:46:20 +0000 Commit: Warner Losh CommitDate: 2023-11-18 04:04:59 +0000 pnpinfo: Remove __P We don't need to compile on a K&R compiler (and we've long ago lost the ability to do so). It's not even clear if it ever worked with a pure K&R compiler, but maybe it once did... Sponsored by: Netflix --- contrib/pnpinfo/pnpinfo.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/contrib/pnpinfo/pnpinfo.c b/contrib/pnpinfo/pnpinfo.c index e13ea0d99f57..4ec99b3b27e1 100644 --- a/contrib/pnpinfo/pnpinfo.c +++ b/contrib/pnpinfo/pnpinfo.c @@ -50,8 +50,8 @@ __FBSDID("$FreeBSD$"); void pnp_write(int d, u_char r) { - outb (_PNP_ADDRESS, d); - outb (_PNP_WRITE_DATA, r); + outb(_PNP_ADDRESS, d); + outb(_PNP_WRITE_DATA, r); } /* The READ_DATA port that we are using currently */ @@ -74,14 +74,14 @@ pnp_readw(int d) int logdevs=0; -void DELAY __P((int i)); -void send_Initiation_LFSR(); -int get_serial __P((u_char *data)); -int get_resource_info __P((u_char *buffer, int len)); -int handle_small_res __P((u_char *resinfo, int item, int len)); -void handle_large_res __P((u_char *resinfo, int item, int len)); -void dump_resdata __P((u_char *data, int csn)); -int isolation_protocol(); +void DELAY(int i); +void send_Initiation_LFSR(void); +int get_serial(u_char *data); +int get_resource_info(u_char *buffer, int len); +int handle_small_res(u_char *resinfo, int item, int len); +void handle_large_res(u_char *resinfo, int item, int len); +void dump_resdata(u_char *data, int csn); +int isolation_protocol(void); /* @@ -89,7 +89,7 @@ int isolation_protocol(); * This function busy-waits. */ void -DELAY (int i) +DELAY(int i) { struct timeval t; long start, stop; @@ -235,7 +235,7 @@ report_dma_info(int x) void -report_memory_info (int x) +report_memory_info(int x) { if (x & 0x1) printf ("Memory Range: Writeable\n");