From nobody Tue Jul 02 19:15:09 2024 X-Original-To: dev-commits-src-main@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 4WDCKT4JKHz5P6j4; Tue, 02 Jul 2024 19:15:09 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDCKT3LTKz4c5k; Tue, 2 Jul 2024 19:15:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719947709; 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=2/UIETrhqsXeN3OYZanS8l3S6SvOCB1xTxwWJDs3bVo=; b=XOOd6QaO0RVlkHqX8bZYYDmsQt+3HqpjbtAtzBh4/FQHcuzU4+iOM//4zEZHEjbto/hl+z g1wwuvnpT9paSGZWtqTqX66Ar3f5s0eacv6YV+PwVAdPSwSzy1NTvn8/K1M/j0qU6ezWcG 0KPNvhUxypx0wD6mGQBrXSbc74QJUSiAQSPOKUdEJ22xpAoPULn36U4n4k2KuRHuLnSjkT p3H9xk228dCYuO1AGiBahea8rFD33VuN2KB52PRRI8IPCwJ3hw6Ry0UROjseGZ7KNvbbU2 4cCG1TkFlN/ZNGh9ZRfWgCnrQ/fDdJ5aZsLaBHRsZeVI3Yix0jwasHPcaHXFlw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719947709; a=rsa-sha256; cv=none; b=uu2lQ91wNCxNUNZCp3Urt7kCXdq7HHT6RPTa4cXW8/6f8M9zdqArPR2rjfrSS7XJD6Nv2E 1KLsG8bJgqKFkV87wioZAt2BPN5TaepPAfvoXys3UJc/cTY210Ymom8E56a6ZGoAiU7iMM SqprrXgF2QSvsSr/ZYQORRrPwQ3Dax0dRkZJlbSFcfcuu8o0o+V1y3rCHz19Ww6bgIm74J 2AnmULWpSLYUy8u4Ykw+Cw/hlG1SU/7CgRLWHWkRP693Xxoatz/ufjpwL+G2zbkBg8egc2 EAZRywf75DFCYSSOo6FE7WAF1ZIz4EuJHJDKXH0AyqVvKjFT0+mcx+trJ+1qww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719947709; 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=2/UIETrhqsXeN3OYZanS8l3S6SvOCB1xTxwWJDs3bVo=; b=FndlUy94TecSZpgzfStbqqPAYpN9ZVx0Y4a+1ACnA82Voq83BA/ng+OLyECqeDnd8D2SZq wiE59+5rOa3+eNLDepOv8e87w7vY8z9M8o2qSJ5+xmRL9YGIz+Rnr6Jj23z2mX4ojSqkvx uUVMY8CRepBifpUiReoHSITFOcyLQM5WR8a2BZ9bbDYpJyxInQq8CnzC66/dWT1VUxgYYF FEzvLul00tFDL6M+P9RCNSmB7RLyXlejX8TUSIq63uaXaHtudHAJdORPvpQyEwoojZv/X6 nObZjMedjbJhUI+bMkKbX23klZhlFhu4JYokoVc8slAlMV6+N7NZnE6F15Mq1Q== 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 4WDCKT2xC5z11FS; Tue, 2 Jul 2024 19:15:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 462JF9oP014031; Tue, 2 Jul 2024 19:15:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 462JF98s014028; Tue, 2 Jul 2024 19:15:09 GMT (envelope-from git) Date: Tue, 2 Jul 2024 19:15:09 GMT Message-Id: <202407021915.462JF98s014028@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ryan Libby Subject: git: 19008cdf7bef - main - gsb_crc32.c: avoid gcc -Wunused-const-variable in user build List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rlibby X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 19008cdf7befe5351b9118174432d107e0c39431 Auto-Submitted: auto-generated The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=19008cdf7befe5351b9118174432d107e0c39431 commit 19008cdf7befe5351b9118174432d107e0c39431 Author: Ryan Libby AuthorDate: 2024-07-02 19:12:22 +0000 Commit: Ryan Libby CommitDate: 2024-07-02 19:12:22 +0000 gsb_crc32.c: avoid gcc -Wunused-const-variable in user build Fixup after 56e9a0136f87 gsb_crc32: Fix a warning when compiled in userland. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D45824 --- sys/libkern/gsb_crc32.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/libkern/gsb_crc32.c b/sys/libkern/gsb_crc32.c index 58bd3e720278..8cfee97d8d55 100644 --- a/sys/libkern/gsb_crc32.c +++ b/sys/libkern/gsb_crc32.c @@ -59,11 +59,7 @@ #include #include #endif -#endif /* _KERNEL */ -#ifndef _KERNEL -static -#endif const uint32_t crc32_tab[] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, @@ -128,6 +124,7 @@ const uint32_t crc32_tab[] = { * return crc ^ ~0U; * } */ +#endif /* _KERNEL */ /* CRC32C routines, these use a different polynomial */ /*****************************************************************/