From nobody Tue May 10 23:24:02 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 828121AD79E5; Tue, 10 May 2022 23:24:03 +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 4KyYyW0wJ1z4c8p; Tue, 10 May 2022 23:24:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652225043; 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=jVEVAjBpItiVwSz480kpoeUQS7uKS4PCJth2EXDhAp0=; b=NeoLCUAjCk/nsHdM1l7iHLN1fTMDgbPdvdh7uI/ywuC9oVQwjdDuuTT1gb5EkjHaJOIVh0 s36FBE382vOnRN+sNzdddaNZQzbW9iQifcCatefG3ccIaIeoB8rPOQ3OCMULnOAbA+pWNo aPshiF9U2weP/V/HQGEqgZnNf8SXr7tz+7Ya8b1UFbDl0tRrqZhT5dviLgXVr6G80tsX0v kI59L6H1gRDSj03slWxfndnVjE4wtQmz7NrlN7FsjtRG7JcADCvU5Mj5qICa/Y7G2LCYc7 qPZ2AKJOpk3gmkGYEWXJstvjDdN9jn/iKlUOMq8+LjeDq/5zj6vFhvPb1+Gxgw== 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 76AE16BDA; Tue, 10 May 2022 23:24:02 +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 24ANO2hn072288; Tue, 10 May 2022 23:24:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24ANO2jW072287; Tue, 10 May 2022 23:24:02 GMT (envelope-from git) Date: Tue, 10 May 2022 23:24:02 GMT Message-Id: <202205102324.24ANO2jW072287@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 86538266f8e5 - stable/13 - infiniband: Disable -Wredundant-decl warnings. 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 86538266f8e5937d5696435ef93370edbf2e501a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652225043; 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=jVEVAjBpItiVwSz480kpoeUQS7uKS4PCJth2EXDhAp0=; b=e5Uzeqj2vcNZbv3hU5FOt+nzUatEyGsLT1k1goERLzm87JpuYAIlng2LbAbubYxchz4Y3W NtOXRpKOAVT0g94XcM3+w1JjVudubQF87j3sL7f3Bdtkf57Vvc+geZsbaq6ysWFQduDFYJ bq2wZ3ItcVQZeJW7wUbHUQG9Ncij/6Djmis+Q/QgKwh5maArtijewyzLpoLn4PrMzSGeXV j7OoOg06XxmSNZvoobYmJYuyTn2l03uBbWvZKeqfcDXCWuUxconoVAblcgk+sIV1VWRxR+ cwTjMph8u3FkDRve05iyaMfkpm3mMx8CK6dV3Efqnu7liRhhaTpvAWOz6QUZ5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652225043; a=rsa-sha256; cv=none; b=ga8WqmrGIUEgTwwcqCrvKfLygQxF+K6WDlNhGgsEMR9RXYWSmPrPfgXFu3NvtBRNUlTzxo CWI3KCd7BlERuWyAkisYDE7gZlU/sXfzkjdIIYCQgXZ2pkwuSPUkoMVXXS5gTwKiwCCo50 oUtqxUea77c9lsgD4exs8GQSZGdeq8kf2uVKj0X8awNLf7uD3ki/sv+Hx5r7lsVCKn6Fyu lwmhjv6ym4U7hROLLIXwiECBsbNXqxg0DmUBDZfzp4+3XkBQR/PmCo6LLuEJ3fQmnBZdLA G6Q+TrNSZQ6w3tvAQtjMA5lHxU4h/FSeAf+h+bXrUV81jbVJuT07SfRScRRYQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=86538266f8e5937d5696435ef93370edbf2e501a commit 86538266f8e5937d5696435ef93370edbf2e501a Author: John Baldwin AuthorDate: 2021-09-15 16:03:18 +0000 Commit: John Baldwin CommitDate: 2022-05-10 22:51:49 +0000 infiniband: Disable -Wredundant-decl warnings. ib_uverbs_flow_resources_free() is declard in two header files in upstream OFED. Disable the warning to avoid introducing diffs to fix the build on GCC 9. While here, fix the ibcore module to disable the same warnings disabled in OFED_CFLAGS. Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D31943 (cherry picked from commit 44126818d2ec96d8247eafcae9b96905a473a264) --- sys/conf/kern.pre.mk | 2 +- sys/modules/ibcore/Makefile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 6be49642b04e..c4c63d591541 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -317,7 +317,7 @@ LINUXKPI_C= ${NORMAL_C} ${LINUXKPI_INCLUDES} # Infiniband C flags. Correct include paths and omit errors that linux # does not honor. OFEDINCLUDES= -I$S/ofed/include -I$S/ofed/include/uapi ${LINUXKPI_INCLUDES} -OFEDNOERR= -Wno-cast-qual -Wno-pointer-arith +OFEDNOERR= -Wno-cast-qual -Wno-pointer-arith -Wno-redundant-decls OFEDCFLAGS= ${CFLAGS:N-I*} -DCONFIG_INFINIBAND_USER_MEM \ ${OFEDINCLUDES} ${CFLAGS:M-I*} ${OFEDNOERR} OFED_C_NOIMP= ${CC} -c -o ${.TARGET} ${OFEDCFLAGS} ${WERROR} ${PROF} diff --git a/sys/modules/ibcore/Makefile b/sys/modules/ibcore/Makefile index 9d0717cf7df8..b2ab1ea2b317 100644 --- a/sys/modules/ibcore/Makefile +++ b/sys/modules/ibcore/Makefile @@ -42,3 +42,5 @@ CFLAGS+= -DINET6 -DINET -DCONFIG_INFINIBAND_USER_MEM EXPORT_SYMS= YES .include + +CWARNFLAGS+= -Wno-cast-qual -Wno-pointer-arith -Wno-redundant-decls