From nobody Sun Sep 18 08:37:44 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 4MVh5N6Hqsz4cPMq; Sun, 18 Sep 2022 08:37:44 +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 4MVh5N5Vcwz3qnW; Sun, 18 Sep 2022 08:37:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663490264; 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=0QzM0qH4XygibGUrljATQOJIPS6D3NRIbSNHassaB/I=; b=i5s36MBDAUvoa0Xtrq/76LUd3JgnVR3lHOxgdwrd25Y7uFIEwRSMKzT41euF+Z5PFgpIhG sq3R7oSJEfi66VvQQsE0bB9C+Eb1/Gf/1aKrF95aOVVdV4cRGsdcv1epO26I3WGLxB1Oy1 Bh4rMEvLd2ZwPA9jSJgXEBj/gQHHBHXZ/aUQTnnA5GWilakNXmuXSqmfh0q8hLeMHLnpMQ PaJI5lxZg39UBaoo+hPO14Aes8vTl5u0pZBwCqDiout6z1FoSt60KsEyP4GXNQm0DYzkFV MSFBka4BI9G5445RnoaMJUwK4TA555PdzQcFpkuCMwtguXnT4/IFCuMUGtnE2Q== 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 4MVh5N4T1Kz100G; Sun, 18 Sep 2022 08:37:44 +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 28I8biEc030125; Sun, 18 Sep 2022 08:37:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28I8biPg030124; Sun, 18 Sep 2022 08:37:44 GMT (envelope-from git) Date: Sun, 18 Sep 2022 08:37:44 GMT Message-Id: <202209180837.28I8biPg030124@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Doug Moore Subject: git: 14696d81f163 - main - rb_tree: silence unused function 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: dougm X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 14696d81f163dacfcdaf42171556ebfd15416fb9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663490264; 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=0QzM0qH4XygibGUrljATQOJIPS6D3NRIbSNHassaB/I=; b=WQH6dcC+dJSnWIqbm+cV6/q96B6n+38aEAnbxqSWUu6jBLCHEeviTKrUC9MXhNnte5crQW eE7+FcoHwGmBMXeQ2gkaMj5jRew1w9I+BHeOslckcvSo+LR0Ay3EM28ZTwCRPkO4Db0Opd 1azr0WAxw3rFpqROejWV/br39zBEQqfRrdmBZWBujEpZ/xUCe7kJxRsD6SY2ntJ3WADywq AmxINYi+Ipq89O4UKBlETR+GZMy7Cq91MO1Jz9SADIrrJ4DskxOldU1NcyllphhPNfgR+5 yoQFv2pgrC5W3z0yc+cZr34qvQlwoyaK/dmGln0Gq0AirXA5Zh0R6HiI28/yOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663490264; a=rsa-sha256; cv=none; b=cSWH8bkoYTwVl8O0FcTxWLQiaxEmxHRIicNpfjXKKZb4x011yuL8AO2sQXcNIm8yEjl1Ap 1McXXA2SRwdlraCXSoSbP8mgq4kXk18HTa+ggLwEPr+HNZ81HURAVrpXtoYovnNCL0Aqaw DtZbm+qos3nWsJ3Y2NlVvBeJHQcPfS57MCcnqyARYJsa0/PFHAyUy/EqQ4lN3YSGFRLbNb +ECADhmOZ0kGgbeWDR/EUwrvh/fF3ylhi32n74ZT+MOrsVHE547xGRZKPHnO/O4h8gsnYD r0+1Gmfmdzj78HvmJdCNixnMC2M9eiZBmi3sX8WvZFcpOTRBnmzC9DW/YJHBzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=14696d81f163dacfcdaf42171556ebfd15416fb9 commit 14696d81f163dacfcdaf42171556ebfd15416fb9 Author: Doug Moore AuthorDate: 2022-09-18 08:34:47 +0000 Commit: Doug Moore CommitDate: 2022-09-18 08:34:47 +0000 rb_tree: silence unused function warnings With DIAGNOSTIC set a kernel build generates warnings about the defined-but-unused RB_RANK method. Don't set _RB_DIAGNOSTIC automatically, to silence these warnings. Reported by: mjguzik@gmail.com Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D36617 --- sys/sys/tree.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/sys/tree.h b/sys/sys/tree.h index 7a574eff3aea..d2c9cfcddd90 100644 --- a/sys/sys/tree.h +++ b/sys/sys/tree.h @@ -398,10 +398,6 @@ struct { \ RB_SET_PARENT(elm, tmp, field); \ } while (/*CONSTCOND*/ 0) -#if defined(_KERNEL) && defined(DIAGNOSTIC) && !defined(_RB_DIAGNOSTIC) -#define _RB_DIAGNOSTIC 1 -#endif - /* Generates prototypes and inline functions */ #define RB_PROTOTYPE(name, type, field, cmp) \ RB_PROTOTYPE_INTERNAL(name, type, field, cmp,)