From patchwork Sun Mar 19 13:29:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13180381 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8FD3AC6FD1F for ; Sun, 19 Mar 2023 13:29:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BDCC16B0074; Sun, 19 Mar 2023 09:29:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B8CC36B0075; Sun, 19 Mar 2023 09:29:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A53D46B0078; Sun, 19 Mar 2023 09:29:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 97C396B0074 for ; Sun, 19 Mar 2023 09:29:15 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 650341604EC for ; Sun, 19 Mar 2023 13:29:15 +0000 (UTC) X-FDA: 80585729070.10.369A554 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf09.hostedemail.com (Postfix) with ESMTP id 63AF514001A for ; Sun, 19 Mar 2023 13:29:12 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=EMPh7oDo; spf=pass (imf09.hostedemail.com: domain of trix@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=trix@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679232553; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=ANmcUKdeZ35HVLQbpIeLtv5km0l77GjCF1V3yivxd/c=; b=W0yL5YkWr88lOwl72o9+/XjIXNom/iTDjChVCbiF7rE/ybfhFX28ZNygKPFomDD7USMP+z em7748+jUIm0FVHZZxnyEgMFJ+OHz5y4A2RXRJCs/w6Ht+DJXB4dR+BH0pW+WJS3Ex4TFF HGeljYNG9YTrJ4Jm3xcv0Xz5jakGUZ0= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=EMPh7oDo; spf=pass (imf09.hostedemail.com: domain of trix@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=trix@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679232553; a=rsa-sha256; cv=none; b=hCsYfP28gm52fPA9XCxyN9MxqxS1NuqsY8CHc5zhgOFcg6hXsDx3Cmx6dl4fazQG7AVob4 fpRbQ8GrABDMO0deBHvKq7JU1B1lCP5KB9owDCKTga6etMD6ymg0W8n27qxg+okVEBOykI 0e+iKSfAo9QYi+fnmyJcwK1U2wyZ6gc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679232551; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ANmcUKdeZ35HVLQbpIeLtv5km0l77GjCF1V3yivxd/c=; b=EMPh7oDosPVP1plU+4QrphvBS70Lnq75U8WI2DP14DnPA5CHOTCBHA8FYe1Q+A3qIhayok M3fl/cmEu+qcb5uJ3XpoDmPZQPwB0h9opIrkT9Dg0HZVbBUcXpDMVe9UNzyh5NpZDZXOG4 sVqz0j6OKFErZWd4KhU0st3e7DGUF2c= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-93-laUbJxhQOiaFhmtlgCz4zQ-1; Sun, 19 Mar 2023 09:29:10 -0400 X-MC-Unique: laUbJxhQOiaFhmtlgCz4zQ-1 Received: by mail-qk1-f200.google.com with SMTP id a14-20020a05620a16ce00b0074616159bd9so4463455qkn.2 for ; Sun, 19 Mar 2023 06:29:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679232550; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ANmcUKdeZ35HVLQbpIeLtv5km0l77GjCF1V3yivxd/c=; b=y6/WKOh6r8rznNjqovyftc2zHrfPSpDSPpjarqqHKuseZuHT0604UTVrOgMHXVY3+f tK1YkWOP6E8lPylvAMec01CtJBI0Fv6D5qD6Z+zf0amwSBXxQGGHyoZR+6p7DXJKUJb1 NOf13k7giXdBnWTKxNKZCjamcKbjPNRPUV0ePMhTAltgUU7RAcmntCFOMUuV0+ykscxf pG79B0pKc8zjqPe6ylvGM3iHUbPJD6oY1qngUnB9vWrnUoRkVzo4gXzs07QrWblefBup 9xs3iV9OPj+3O9ZlPL0XowY0T4UVgbY/WjWh6IDTiKD+RJrNeQvIYaJwTIuTLlY13U55 Fp0w== X-Gm-Message-State: AO0yUKVlDWdXM+c4Zs0WSKFIaakGOjeRggFGE3VBdkFp6BFzQlWJNL8V s9aHqGv894QCnd64vdctfi14EMUTMYkW7xAMMoVALZQBtFN6FjDIfs2pINPDKYVI7gI72+E8+1C mylnpB8OXKfI= X-Received: by 2002:ad4:5b82:0:b0:5c6:92e0:ba3 with SMTP id 2-20020ad45b82000000b005c692e00ba3mr4241349qvp.2.1679232549863; Sun, 19 Mar 2023 06:29:09 -0700 (PDT) X-Google-Smtp-Source: AK7set9gPmwGNLtM0v9nVCNI6C/T0bsibDS00yQE+EVnyhxbao46OynaehouvyMppAXl7cpBQG3Ljw== X-Received: by 2002:ad4:5b82:0:b0:5c6:92e0:ba3 with SMTP id 2-20020ad45b82000000b005c692e00ba3mr4241321qvp.2.1679232549482; Sun, 19 Mar 2023 06:29:09 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id 124-20020a370482000000b0073b929d0371sm5472111qke.4.2023.03.19.06.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 06:29:09 -0700 (PDT) From: Tom Rix To: Liam.Howlett@oracle.com, nathan@kernel.org, ndesaulniers@google.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] maple_tree: remove unused maple_tree functions Date: Sun, 19 Mar 2023 09:29:03 -0400 Message-Id: <20230319132903.1702426-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: ng7gmz67hiyuwfrxapqhs6qt483tjxq7 X-Rspamd-Queue-Id: 63AF514001A X-HE-Tag: 1679232552-492983 X-HE-Meta: U2FsdGVkX18MxFa9RodhdfSXML/ye9Ju+Fpgk3SGigBsVOosBd2MQL//pp3T3lWqjiYRsoFjCcp0lT9rdaMSzNy8nkTdb9TyD/2Lnjd5mLprjWqKiJZsnWT8d1vL4A3D8OS7mWqWOLkjcsoVxCYiX0e3y9mFf//RUPiIhE1S8QPOlEtsc0xkr6eWWAoopBAGB9r3+S0xNJcoyHT7a9ovzUUEswz38G2YGgLTx66Zq37zwZuOSZIkRWA9sBOUb4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UOLcWbzz5+XTBtVKcd5xs13UsAReoSgX/9o7IgTi6Po3LKNxLkkclEzjojYToW4r6+UAVQgKQHgERkpbOoQi64c9c4virO3R0h1dDSxKm6nT1qmdKE0krg= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: clang with W=1 reports lib/maple_tree.c:331:21: error: unused function 'mte_set_full' [-Werror,-Wunused-function] static inline void *mte_set_full(const struct maple_enode *node) ^ lib/maple_tree.c:336:21: error: unused function 'mte_clear_full' [-Werror,-Wunused-function] static inline void *mte_clear_full(const struct maple_enode *node) ^ lib/maple_tree.c:341:20: error: unused function 'mte_has_null' [-Werror,-Wunused-function] static inline bool mte_has_null(const struct maple_enode *node) ^ These static functions are not used, so remove them. Signed-off-by: Tom Rix --- lib/maple_tree.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 556ca46a9b44..e407f29ef91a 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -328,21 +328,6 @@ static inline void *mte_safe_root(const struct maple_enode *node) return (void *)((unsigned long)node & ~MAPLE_ROOT_NODE); } -static inline void *mte_set_full(const struct maple_enode *node) -{ - return (void *)((unsigned long)node & ~MAPLE_ENODE_NULL); -} - -static inline void *mte_clear_full(const struct maple_enode *node) -{ - return (void *)((unsigned long)node | MAPLE_ENODE_NULL); -} - -static inline bool mte_has_null(const struct maple_enode *node) -{ - return (unsigned long)node & MAPLE_ENODE_NULL; -} - static inline bool ma_is_root(struct maple_node *node) { return ((unsigned long)node->parent & MA_ROOT_PARENT);