From nobody Wed Feb 02 20:25:24 2022 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 C8C2519AFD0B; Wed, 2 Feb 2022 20:25:24 +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 4Jptb85KQWz3sqb; Wed, 2 Feb 2022 20:25:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643833524; 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=h/yZ/SkZ0w3ETn7Gj3FG6K3PvLbRjrI71uL7WMCX3vI=; b=dOHNbGmF2RSbbAxgaJz8PKtjlizu0RhJq42TJcXUksUcrdt0kv7HxmE/yqnlY8frzN3DzM 1cpAG+mz+SmLxGhvTtiWU2KrWx3sxS5sTF6ks6utSkwWgt+DM/w+iH0wuPDirjtHg+azx9 f10I2HbvlLFhGVHozw4nGOspVoHC2HacnbqcyS1OGQB0nlOInHlkQxrTNKsNSUtrRNrmAE aZdvXKhvEft8TIXWCT/yMge3MbWd2o4NBraIP38lgxeMwEKoYdV6tIyQfQpBC+gIARlUpf /sMS9qsdm7vHbsFnpiFFSRU4WBFCKq26PsYXX7OHYSHePIufv2GyN3H2H2qJSw== 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 968CD2B4E; Wed, 2 Feb 2022 20:25:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 212KPOtf078188; Wed, 2 Feb 2022 20:25:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 212KPOam078187; Wed, 2 Feb 2022 20:25:24 GMT (envelope-from git) Date: Wed, 2 Feb 2022 20:25:24 GMT Message-Id: <202202022025.212KPOam078187@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: 63b7c2df8ec4 - main - Disable -Wunused-function for {ed,x}25519_ref10.c in libsodium. 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: 63b7c2df8ec41bf9ac33ccaf9b9d16c7dc28ea0c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643833524; 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=h/yZ/SkZ0w3ETn7Gj3FG6K3PvLbRjrI71uL7WMCX3vI=; b=Y0kdakiWGVR5JuxUhUW0w3VYKd2AJw0KpdLJt49YicUvBhq1uooafKIdULROmFFluNedVC bPTg82jCccwqpnlqe/m0n3NNX9aarommDdV7oxCvNpxAF1R60lIv1ZaJgsSyL1cre5j8De InnJa4HcfGGrfeUstig1VajXqc2EOVX9oJdN6z38UUQVbAb5oIRCpXFa3RSLOHs3k+dIx6 j2wA3LekmcIy+V8sZpC4FALUdtRvL2bRsaFqCvTth5ai0ZslZuqE2mNJ/76o/fpaju5qvg gjRfazhJb4vAOGaGh1SWQoJ0nFyhrlP5OAR8BxsCUhY9l7HxUsc4tzaIOmezyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643833524; a=rsa-sha256; cv=none; b=hCxZTKwcEg8gFWKAn/ePwV9yTploeavcgLuNAmB8N/ZHsEWs88rLwefX0tEwxB5fqVhMV1 2RPIyyfNoUYJT68DD7ZFo3RLPlVfbDN9SGXh+edBpzqtn9L1iAcwZllig1dVQIHJsSTVpr A7HEtrUbUj4ivkEwuEKIvZ5FAONjUqVn2kS5rawp60Rnp+aJFmffVNtCa9iG6EiXtnHLGB k8sFubL5TBX6rinx50/nQD/TgTU8UgnywGNHoSz/b6wsAOPfOTJoYZL9OQmiYTwy+LHXbl f4GXJGfhTL8L+ZRPjwKx6C+f6/oHq3y9fYbkBaPQFAZOKJFhibXvlk+VPWSpVw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=63b7c2df8ec41bf9ac33ccaf9b9d16c7dc28ea0c commit 63b7c2df8ec41bf9ac33ccaf9b9d16c7dc28ea0c Author: John Baldwin AuthorDate: 2022-02-02 20:25:16 +0000 Commit: John Baldwin CommitDate: 2022-02-02 20:25:16 +0000 Disable -Wunused-function for {ed,x}25519_ref10.c in libsodium. --- sys/conf/files | 4 ++-- sys/modules/crypto/Makefile | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/conf/files b/sys/conf/files index 0278d5fa4083..78921d2c9fa0 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -4971,7 +4971,7 @@ opencrypto/xform_sha1.c optional crypto opencrypto/xform_sha2.c optional crypto contrib/libsodium/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c \ optional crypto \ - compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" + compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium -Wno-unused-function" contrib/libsodium/src/libsodium/crypto_core/hchacha20/core_hchacha20.c \ optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" @@ -4986,7 +4986,7 @@ contrib/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve255 compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" contrib/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/x25519_ref10.c \ optional crypto \ - compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" + compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium -Wno-unused-function" contrib/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20.c \ optional crypto \ compile-with "${NORMAL_C} -I$S/contrib/libsodium/src/libsodium/include/sodium -I$S/crypto/libsodium" diff --git a/sys/modules/crypto/Makefile b/sys/modules/crypto/Makefile index 63bc81fad99d..b93f8d55c41c 100644 --- a/sys/modules/crypto/Makefile +++ b/sys/modules/crypto/Makefile @@ -71,6 +71,7 @@ SRCS += xform_poly1305.c CFLAGS.xform_poly1305.c += -I${LIBSODIUM_INC} -I${LIBSODIUM_COMPAT} SRCS += ed25519_ref10.c CFLAGS.ed25519_ref10.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} +CWARNFLAGS.ed25519_ref10.c += -Wno-unused-function SRCS += core_hchacha20.c CFLAGS.core_hchacha20.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} SRCS += onetimeauth_poly1305.c @@ -85,6 +86,7 @@ SRCS += scalarmult_curve25519.c CFLAGS.scalarmult_curve25519.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} SRCS += x25519_ref10.c CFLAGS.x25519_ref10.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} +CWARNFLAGS.x25519_ref10.c += -Wno-unused-function SRCS += verify.c CFLAGS.verify.c += -I${LIBSODIUM_INC}/sodium -I${LIBSODIUM_COMPAT} SRCS += randombytes.c