From nobody Wed Sep 28 21:06:41 2022 X-Original-To: dev-commits-src-all@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 4Md8Dy1lzrz4V4hh; Wed, 28 Sep 2022 21:06:42 +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 4Md8Dx6Rq9z3DCV; Wed, 28 Sep 2022 21:06:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664399201; 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=lUl/4PNWBs/hE1D0PmE0y4l1I9+7d1ShWJHqAJD4+lo=; b=rjw8QTg+YXhzOts7rDFcHljBqUID3TkRec04FbZOgTNazSxr0ig12yjze4xr98LK1fGhG1 2bEql4u/GdaMBgWb6HCt85rHy+jRAYCQVR6JWbu/5sYh9S998QfDQpwejE06awb5OqfCbU LrCAXHud3Dm46pmxgf5EMe6D/FkLcMCRQ+PizFMKDg2Gng5V6vN/XXLv4wYl8NsnpdRbE8 iitIjegRgHH1ftTFWp1S8kHiCbzxfgqeXZcoJkJFQZsSRe64cr4UqOPbi0hdKA4XrAZast 1xs7GvV0OHncfMoFyNM1uvQb94YRgAbKhrXkXZSAN5UTQ0NyH34fipEW2mmO+w== 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 4Md8Dx5WSqzbWG; Wed, 28 Sep 2022 21:06:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28SL6fD5037442; Wed, 28 Sep 2022 21:06:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28SL6fs5037441; Wed, 28 Sep 2022 21:06:41 GMT (envelope-from git) Date: Wed, 28 Sep 2022 21:06:41 GMT Message-Id: <202209282106.28SL6fs5037441@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 7550e242ab4c - main - zlib crc32: Add prototypes for recently-added static functions. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7550e242ab4c118ba48171577ccadf81ba739847 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664399201; 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=lUl/4PNWBs/hE1D0PmE0y4l1I9+7d1ShWJHqAJD4+lo=; b=vX3BT7ySfdTwXVI7cw4vIEnqkYYJTe7mCip39yIs7ecEdjQ7WjK86RFz+iZSJY9bq4j5f1 1GrQIY2f5kT86BBrkh+ZhzzF+D5pwbcMU1qD/lK0U3aMu5GZjm9A0HNsIIclY094COiJmB 9K1PkJv5sqbhziiyWNZrUBC6PsOG2kl3u/ycInyqg6kwZeoeAnnrnJ+pnz7acA3+ajMM1L gu8I3NGjFwiQ6loXJM82K2qJ9LOHEvfOPJFyeD8zLfRlX52dmJsidfV0iUkdiaLJNwPyTA wwxzbkpsT/v8vtriW9wx1znrxS9KHP+zlC1fOFQINvSmONNLZDyapulrlHU2zw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664399201; a=rsa-sha256; cv=none; b=ZQSgWpJLExg2dySRxtrWv9ULd0iJHVtvB1Ymo9VAHva8tCdx279oss+ZmpP5RflzIO7Vie pEBcX4LlOGz/7I9WtCxzVh1nSz2726VFdWdO0rKp4uLXwjeVXFarq+BVpnvP1DEkIFQZRT uaKYw+OkYheIsBb34JVytf9aJUJMIctUJmpcuCjwWmTyyZ6lFDQUwAYLmN0VK3DFTxq2LM BqLwmugLY6fFqar0dYjClLGzdUuivXQk0FMabYHrj17vDZSctbb/idftNt+J+N+hMrTNPu nD1ZD095PYXJs5ZmMgNyGgi9eeuw1VGOjCFMPNnOLeZZ3Y5EW8/oZ01DF6Hw8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7550e242ab4c118ba48171577ccadf81ba739847 commit 7550e242ab4c118ba48171577ccadf81ba739847 Author: John Baldwin AuthorDate: 2022-09-28 21:00:27 +0000 Commit: John Baldwin CommitDate: 2022-09-28 21:00:27 +0000 zlib crc32: Add prototypes for recently-added static functions. This appeases -Wstrict-prototypes with GCC. Using a separate prototype using the OF macro seems to be consistent with the rest of this file which still supports pre-ANSI C. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D36755 --- sys/contrib/zlib/crc32.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/contrib/zlib/crc32.c b/sys/contrib/zlib/crc32.c index 451887bc7ce4..382b9a322fda 100644 --- a/sys/contrib/zlib/crc32.c +++ b/sys/contrib/zlib/crc32.c @@ -114,6 +114,8 @@ local z_crc_t x2nmodp OF((z_off64_t n, unsigned k)); instruction, if one is available. This assumes that word_t is either 32 bits or 64 bits. */ +local z_word_t byte_swap OF((z_word_t word)); + local z_word_t byte_swap(word) z_word_t word; { @@ -714,6 +716,8 @@ unsigned long ZEXPORT crc32_z(crc, buf, len) least-significant byte of the word as the first byte of data, without any pre or post conditioning. This is used to combine the CRCs of each braid. */ +local z_crc_t crc_word OF((z_word_t data)); + local z_crc_t crc_word(data) z_word_t data; { @@ -723,6 +727,8 @@ local z_crc_t crc_word(data) return (z_crc_t)data; } +local z_word_t crc_word_big OF((z_word_t data)); + local z_word_t crc_word_big(data) z_word_t data; {