From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFF5FECAAD8 for ; Wed, 14 Sep 2022 10:20:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbiINKU5 (ORCPT ); Wed, 14 Sep 2022 06:20:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbiINKUx (ORCPT ); Wed, 14 Sep 2022 06:20:53 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 355391F62E for ; Wed, 14 Sep 2022 03:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=L9z2sWrZFpokxsnnYfIrgul/SSM9pIG5YuJ1FrDbZ6A=; b=XHE1YuJpF/XBiZvxZ6zm4SfEGS YpXr7MLDXWtv7gu6SrlhrLggtgXn3KpD3Sw3c+PVcN04VtEW+vnjPuwXBSO5sJr3laq6QA3l/VuzS UxdbSuAEt7WOQnR05Rj6dxHJ9I9bi/hCU3EpYPgLwtsvzte7PD9Pk8Z4+K6yVtkPQ2X5z/uCIoSlx CV4GRM4UEPk4mD81CZVvkfLsd3Mvs3on+TyU82JdhyfTeJlZQsoOwnxZVmKlQP/34DG8LgywKjHnv Dc4owYteBeksmTcI7b+m43mRgCcYLo/EMOvdhFubLYH56hN64n8e1jTMH7An3th6XETUSmMORJkEU lRYqn5cA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYPVV-0005SJ-T4; Wed, 14 Sep 2022 10:20:37 +0000 Date: Wed, 14 Sep 2022 11:20:37 +0100 From: Matthew Wilcox To: Jiapeng Chong Cc: Liam.Howlett@oracle.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH] Maple Tree: Remove unused functions mte_set_full and mte_clear_full Message-ID: References: <20220914101829.82000-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220914101829.82000-1-jiapeng.chong@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 14, 2022 at 06:18:29PM +0800, Jiapeng Chong wrote: > mte_set_full and mte_clear_full are defined in the maple_tree.c file, > but not called elsewhere, so delete these unused function. > > lib/maple_tree.c:330:20: warning: unused function 'mte_set_full'. > lib/maple_tree.c:335:20: warning: unused function 'mte_clear_full'. They're not used now, but they will be in a release or two. They're static inline functions; keeping them as part of the orthogonal API costs nothing when they're not used.