From nobody Fri Nov 11 18:36:32 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 4N86qP04k5z4dbXn; Fri, 11 Nov 2022 18:36:33 +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 4N86qN6mbYz3tSr; Fri, 11 Nov 2022 18:36:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191792; 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=egz+WfBXi3A87RcRAnsg0xOlg/o+D07AVtjG8Gk6cvw=; b=MYHYX2XtBIvze9s+99jp1n2axXYAu4WOIU/cD5wEQHtaE52nMGKlrbMPvlrbxeSIDjlJIC GvlyZ7s0XuQsUSapxCHv4OOb6MWC2zftcIZobYw/EpCMZ48/HaZ6BZxhIQ08Of7jSO+yr0 3XrUALiMJYszCjz2o8kKAq7yiL1r5VIvoq9yZw6wpat6J8WSZp6azps42g2BwzLH/aERmu 2OqdtkpyeclfoQflOUDwzTU3wdTsjp5zt/ya2F2s3z8XVaVVpzXy2SB+/hypDDiZ1jmxKH bfz03tvfegd3KAtQU+L4/AfCJDaAnDZLRn2j9J9bNG1EdX2J40xwvmm3AD6/Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191792; 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=egz+WfBXi3A87RcRAnsg0xOlg/o+D07AVtjG8Gk6cvw=; b=pfy1SX3wQSMwcnLbLmMqEYyxDOjaN7aAf9ZEz89X5OWdz1WxZpyvtukTR+RRCUTZcLi239 wYCq5lE2yBBy4ANbmMCWMhCIRXZmn4ohZlAXeEWkZv8UQjRrV+2dm/t4V03A+LoZsu/rT8 Ob11Upcv4QhBXbgqLcxEErq/SceBBimqFzFYwBF+l4qsPx8GM1DXZ0w7JY9Mr5QROEQPKG tpu8WFhJee4MQeObWEfm1hKHpNB+izvumi32tRId7Cxo72qmZcmUSCEM0heB9SYuYxPmTK /EP5lNP2WqsmP3P2epaNIt+OMzMUmDZE7ml9QAC/GFxDWEnsLATO15ETd9jhVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668191792; a=rsa-sha256; cv=none; b=qAHq3NYUNqm1U2D4/RjHuzoyryaxp/cFp6ATDszdW2be1gKx0qj5PxFOK1f6E/X7eSfZ/I zpBzG5aVLYsZMeC7Lrwn6uL5ezh+b/Ik6uhMSUbnqF5qK8BAr/SVzPpiUHWnCRdn+abqAr O9ZawQCgBqNcgea87zZLaP84966rYyorQxIzBHmE0nt3RnBgRjNODHkuAPn7Kv8y/VQBiz zf9/0vDjzGrXQSXhhFiFLCAnAUYn5bn+2/9KtifbNfaX9Qz9Cc69lldRMa1wVgPtEaM5hO 8WEfXeulA5Z62UqxsGgFDwcZgnigqOtMJy9AdtuwQTxDxxK6MnsFWjL7Vmx7wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4N86qN5rMFzt9J; Fri, 11 Nov 2022 18:36:32 +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 2ABIaW5M003728; Fri, 11 Nov 2022 18:36:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABIaWZ4003727; Fri, 11 Nov 2022 18:36:32 GMT (envelope-from git) Date: Fri, 11 Nov 2022 18:36:32 GMT Message-Id: <202211111836.2ABIaWZ4003727@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 2b4453ad8f84 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 2b4453ad8f8456cda4b22dd4a93e7b23cd399d6b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2b4453ad8f8456cda4b22dd4a93e7b23cd399d6b commit 2b4453ad8f8456cda4b22dd4a93e7b23cd399d6b Author: John Baldwin AuthorDate: 2022-09-28 21:00:27 +0000 Commit: John Baldwin CommitDate: 2022-11-11 18:18:52 +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 (cherry picked from commit 7550e242ab4c118ba48171577ccadf81ba739847) --- 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; {