aboutsummaryrefslogtreecommitdiff
path: root/sys/libkern
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-07-31 20:24:18 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-07-31 20:24:18 +0000
commit56e9a0136f87de0dd5d834289d40835700bc9e5b (patch)
tree0bce8ea570ee79daaa08241f29539838dc112eff /sys/libkern
parentdd262a8273d78c3dd552706087826ff4db6a34d1 (diff)
downloadsrc-56e9a0136f87de0dd5d834289d40835700bc9e5b.tar.gz
src-56e9a0136f87de0dd5d834289d40835700bc9e5b.zip
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
Diffstat (limited to 'sys/libkern')
-rw-r--r--sys/libkern/gsb_crc32.c3
1 files changed, 3 insertions, 0 deletions
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,