git: 56e9a0136f87 - main - gsb_crc32: Fix a warning when compiled in userland.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 31 Jul 2023 20:26:21 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=56e9a0136f87de0dd5d834289d40835700bc9e5b

commit 56e9a0136f87de0dd5d834289d40835700bc9e5b
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-07-31 20:24:18 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
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 <sys/gsb_crc32.h> 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,