From nobody Mon Jul 31 20:26:21 2023 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 4RF8sP2h3lz4pShP; Mon, 31 Jul 2023 20:26:23 +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 4RF8sB5CM3z4C90; Mon, 31 Jul 2023 20:26:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690835182; 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=J6Iwh5dhZO69cZXOXdBgxjANfX0Wf5IEZNfbVlNHDkI=; b=B+rPQsVdNcsNpBUoXIPxEuts/Ppw60PFLaqaou4mnMX9+u9JQDu2yC3oVKkTgICndSi4As g4bWiX4hOUtCFgcyKH9DBQp58jq2ho5Iml/9HXvwJC7KLxwQoXdUI7lz5HDLapsEBHa3nK 81/l+s4OfG9CQ8bjKSmsI0fVlUkOLY/qLWtFoBMaaqtVktJ98FSxOYP9CRx7d0Fb1/lUks 7pCKoc7janu8urmUcL8/nW86wLKHY4tFyoCGs6vxhZnFooscuQzQv3LRhIYO25T9yZaVK2 wWjRxiepatXc/NDY3k5KGUTbny1Vn8wqvIxva4TeF69uv4XsHCus6deh8wY1+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690835182; 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=J6Iwh5dhZO69cZXOXdBgxjANfX0Wf5IEZNfbVlNHDkI=; b=ih9b+Spp7L2dlEwjiGBk9ckoiFyhNQQ7DlPQFd5bYdXcHj/UOcgXes5Gj52pOGYnFdvjjU SUiZe96KR5nxYMLNOFtgqTiM52gOsvAPGJCdB91OnSVVTQjEUBxsaY/Li6abaVUcIdvWQe hK/k6ktm1p8S8c7pYSyeUEWxGUTT+2vhrY6TEWNC0l00h50Hmz1iEN4cO2wnbpJqpn/mYz Qyfrlm4JV1/6Sy/KfzcFcHSRsSoCX7en9uIbse4dSHw95NxnEwtNIk/+JRWbWlkVhKna/w z1zfBQJL4H8wk/bwQRiTexNgKpq22ltylXLhoCesxven7g2HxJCz9ZUd8Xg43Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690835182; a=rsa-sha256; cv=none; b=NQI8AOGxEaiEmWOLkuQEMlEkwOs6MS7oeISMh6m/IB9yvtjAN6Fif0qjRzdaXYI3NtMUL4 hKOVu+otxqBcnrhYU2chyP9qlqon3/Przm+jK5zaM0I1XzWdANJLhnt5G4iXtY1vKXHiqJ oRIbWFtgPU2Thxb3DOMI0CYvd7JMuPJxJrTE7OxN+TnV8ZdVzZUP0zAU57wv0+9/8Ye9Ix RHnOjltXVBWTAjjqdJ06DtJJfq2dWNa7CDwNPsyz9ZhHZG7E73bKKtIEx8jWw6wayXOMNx MwyiU3LGUC7bZpi3EjRxMHhO9p6E+hIVZEKW520y6JYb56oqYUFqdOIAj5EQ3A== 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 4RF8sB2kpQz18pF; Mon, 31 Jul 2023 20:26:22 +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 36VKQLae057928; Mon, 31 Jul 2023 20:26:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36VKQLQV057927; Mon, 31 Jul 2023 20:26:21 GMT (envelope-from git) Date: Mon, 31 Jul 2023 20:26:21 GMT Message-Id: <202307312026.36VKQLQV057927@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: 56e9a0136f87 - main - gsb_crc32: Fix a warning when compiled in userland. 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: 56e9a0136f87de0dd5d834289d40835700bc9e5b Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=56e9a0136f87de0dd5d834289d40835700bc9e5b commit 56e9a0136f87de0dd5d834289d40835700bc9e5b Author: John Baldwin AuthorDate: 2023-07-31 20:24:18 +0000 Commit: John Baldwin CommitDate: 2023-07-31 20:24:18 +0000 gsb_crc32: Fix a warning when compiled in userland. crc32_tab[] is only exposed as a global in for the kernel, not for userland. Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D40614 --- sys/libkern/gsb_crc32.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/libkern/gsb_crc32.c b/sys/libkern/gsb_crc32.c index 27b9a926888b..8b13d27b5c08 100644 --- a/sys/libkern/gsb_crc32.c +++ b/sys/libkern/gsb_crc32.c @@ -64,6 +64,9 @@ __FBSDID("$FreeBSD$"); #endif #endif /* _KERNEL */ +#ifndef _KERNEL +static +#endif const uint32_t crc32_tab[] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,