Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3124718rdb; Wed, 13 Sep 2023 02:53:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElpi8Uk9oOnfQzo1Hj5sRWk5DAP63l9ke+J/XsrkcnARjalhkXAMNutFf9FPHSWgN5es57 X-Received: by 2002:a05:6a20:144e:b0:130:7803:5843 with SMTP id a14-20020a056a20144e00b0013078035843mr2259703pzi.4.1694598814111; Wed, 13 Sep 2023 02:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694598814; cv=none; d=google.com; s=arc-20160816; b=VX0FdBvTlkb2bBspIT5PrRCA8M2wMay9r17cJqIcdKJIV88d+LE2UaTOaTP87eb/hm FT5zgrGteKY4aseg1geb2Nunv7mbMdNwmIptMqjNTHrOnC3brzFwuCL+aCBqD7dWBqLa pWgoqH9qDk2Iy1lo8CJMLyY2oH0rwol2pawoOsAksPguhgFBxf7KRNsyhEpIHLT/VqFD oub3FBdboA+Yywlq9XyLOSf+7IqM7ACiZsXflfhJQWI7gTOz6bXPYLIWjBqqjicfhOxf UdilkOJeLLtX3xkIhIDYQUQzCax/dsfgdGsSqYQG4ULpOjDXgtJ0FdeJXMZ+tqahYsnO zRjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Qz7C0MFWYvdGD+SFHQFGczVRKNHNKvDVpeceWzt3jDc=; fh=lXVoGKOY9di+e+8JIOT1vXV9v24pWd/B8NtnSmABwhc=; b=YTT73ssJPeLuRiZsgDmClCNgs+NM9gL5VzX1Y3biprNTpylRiNuCFWU6KtC75x2D1/ R8a3Vn8hbvYKhOk1zXwlgjEQ2GZPTK0m2KSWldFL8Ha3jKUJyS4I5wtOSs2HfHhNS0mY TUnIYemgdCQyhl2cshK+QS1Aqsp+BHawA0NVEIoCv8wAa8aNzie+N16U/AyY1Ccddtlx 9h1w152/j8GTtPeLh36L/uTylvbINTjlSWA0c4adqBdkwMgCDAzYgD2ZaMHBsAiNLOsC RV9P4CC5JLvtP69YWvesCxBw2QxxnqZUodekmIEzWAQYKdi+fwTx9Atgopfka68UwDwb O9GA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h17-20020a056a00219100b0064f78c32b89si10014829pfi.95.2023.09.13.02.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 02:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4DB138070674; Wed, 13 Sep 2023 02:43:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239364AbjIMJnm (ORCPT + 99 others); Wed, 13 Sep 2023 05:43:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239011AbjIMJnl (ORCPT ); Wed, 13 Sep 2023 05:43:41 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29D1C196; Wed, 13 Sep 2023 02:43:36 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0Vs-FEgu_1694598210; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0Vs-FEgu_1694598210) by smtp.aliyun-inc.com; Wed, 13 Sep 2023 17:43:34 +0800 From: Jiapeng Chong To: clm@fb.com Cc: josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] btrfs: Remove some unused functions Date: Wed, 13 Sep 2023 17:43:27 +0800 Message-Id: <20230913094327.98852-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Sep 2023 02:43:46 -0700 (PDT) These functions are defined in the qgroup.c file, but not called elsewhere, so delete these unused functions. fs/btrfs/qgroup.c:149:19: warning: unused function 'qgroup_to_aux'. fs/btrfs/qgroup.c:154:36: warning: unused function 'unode_aux_to_qgroup'. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6566 Signed-off-by: Jiapeng Chong --- fs/btrfs/qgroup.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index a51f1ceb867a..d977c4f109fc 100644 --- a/fs/btrfs/qgroup.c +++ b/fs/btrfs/qgroup.c @@ -146,16 +146,6 @@ struct btrfs_qgroup_list { struct btrfs_qgroup *member; }; -static inline u64 qgroup_to_aux(struct btrfs_qgroup *qg) -{ - return (u64)(uintptr_t)qg; -} - -static inline struct btrfs_qgroup* unode_aux_to_qgroup(struct ulist_node *n) -{ - return (struct btrfs_qgroup *)(uintptr_t)n->aux; -} - static int qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid, int init_flags); -- 2.20.1.7.g153144c