From nobody Thu Sep 29 22:07:46 2022 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 4MdnXy572gz4YJ1W; Thu, 29 Sep 2022 22:07:46 +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 4MdnXy4NMWz3PQL; Thu, 29 Sep 2022 22:07:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664489266; 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=rki8OpNLkEbyIOle8OgmMRT1CH4TMz9DQsBLsxM3LWk=; b=CejtV3g6H7JxBSjiwuGYYCbuQOn33FmT8E6Yd+l0COd7TelUrSavMiyqul5ukvnVz9C4Yr QIPMMp5o+sys36VnZ/3zOCa2FpofYH/1/pe0uWZFxjz3qv8SzhDAtys3bJcovVsGitnRwq 1uzEsUKhRNFWcwVxN4rriShRshjFOgDMRYL8qDAWl2/hkh07jTddbEFHLMGg5FiJQTuznh cGtljxeNlvv2xSMVYaUHF3N8fj4fV2UPQXxHH3y2ba/7MDbqTmaamj13u/VbmKzpKb7iMa W0OPzfpauNv0zLPR+O63yywD41GE5uUsgzo+Ifssy6IF/12nZHzvMQek5Q/GBQ== 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 4MdnXy3QBCzxgj; Thu, 29 Sep 2022 22:07:46 +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 28TM7k3t003083; Thu, 29 Sep 2022 22:07:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28TM7kYX003082; Thu, 29 Sep 2022 22:07:46 GMT (envelope-from git) Date: Thu, 29 Sep 2022 22:07:46 GMT Message-Id: <202209292207.28TM7kYX003082@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: cdfe82d35abb - main - qat: Fix build with GCC. 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: cdfe82d35abb12b1363b545934d4f9c3fc3e60f1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664489266; 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=rki8OpNLkEbyIOle8OgmMRT1CH4TMz9DQsBLsxM3LWk=; b=Vn95fTyfEPaXVQ9fpTVAJHIs6NvdJ3otM4+NAiexvgR3+T8gDn5k0KopinmBP+aFEYx2g9 KEuQ6D5tiete0ztKKIcDGLK70rZLYdiYXNlXQOVBA26uAo0UeQKpcHC518auOSxK2YrYmZ CjAFLPYiOIox9fTfNrvOZEHVwklAK5FwZdWYXelv0umHgF5SllEP6wvwRPtJKaVSaGR2S9 l8ZFyVaDPhJBMdkVkHFJ7deJeka7I/kYeKmBX9ZROrShFfBvgSbr657nGmoA/KK86DE4dA 2WOdl+u/JgXoe/j1hZ3O070LmA/EMfy3yAoc53Vf7n0xb0tItQJfNonYsax2AQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664489266; a=rsa-sha256; cv=none; b=Uc1LAg3t2KFJ4gZvXBnV1SFhbPmqDdx0QTZlGlyxhP49rTzYWb7bi3bQS8AC3asBBUAD00 q//WNekoR5JdWtp0AzWAkvJ0RkU3kJVa8CJBnkwLYTdWRYDz1FXSN93x7EreRU8o0DQ2O7 bPeHjot/5QeBWfkoWcMuuA7bZeVwFV+1KDsMhCdjKGX/+HVSCgLiH8N+VAkJx3OrI7OH6V COQdLv5Z/jkokcr1hVRkTjFTYnD+ymn09+l+5EzJHnl/9U470gNj06vhe9ok8Co7hyAX7Q uMBJMsQrCWhAOTigXbaYm16u7AwjbOfjrAv+mO8kbqJA5iqNI4Vakm4Ex9PYHQ== 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=cdfe82d35abb12b1363b545934d4f9c3fc3e60f1 commit cdfe82d35abb12b1363b545934d4f9c3fc3e60f1 Author: John Baldwin AuthorDate: 2022-09-29 22:07:02 +0000 Commit: John Baldwin CommitDate: 2022-09-29 22:07:02 +0000 qat: Fix build with GCC. Use the correct option to suppress warnings due to discarding const from pointers on GCC vs clang. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D36780 --- sys/modules/qat/qat/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/modules/qat/qat/Makefile b/sys/modules/qat/qat/Makefile index a8b58573a272..ae9f1bda0fd8 100644 --- a/sys/modules/qat/qat/Makefile +++ b/sys/modules/qat/qat/Makefile @@ -18,7 +18,12 @@ CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/qat_direct/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/firmware/include CFLAGS+= -I${SRCTOP}/sys/dev/qat/qat_api/common/crypto/sym/include +.include + +.if ${COMPILER_TYPE} == "clang" CWARNFLAGS.qat_ocf.c += -Wno-incompatible-pointer-types-discards-qualifiers CWARNFLAGS.qat_ocf_utils.c += -Wno-incompatible-pointer-types-discards-qualifiers - -.include +.elif ${COMPILER_TYPE} == "gcc" +CWARNFLAGS.qat_ocf.c += -Wno-discarded-qualifiers +CWARNFLAGS.qat_ocf_utils.c += -Wno-discarded-qualifiers +.endif