From 56e9a0136f87de0dd5d834289d40835700bc9e5b Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 31 Jul 2023 13:24:18 -0700 Subject: 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(+) (limited to 'sys/libkern') 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, -- cgit v1.2.3