Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp811279rdf; Tue, 21 Nov 2023 18:27:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhtCigFfsUdF/2Y0j6qlxnhopa4rsHpuf9haf0khBKjaIGtqikp5H8Ee/Ch44PHTWfTLZE X-Received: by 2002:a05:6a20:7290:b0:18b:4225:9967 with SMTP id o16-20020a056a20729000b0018b42259967mr515629pzk.22.1700620040422; Tue, 21 Nov 2023 18:27:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700620040; cv=none; d=google.com; s=arc-20160816; b=FWfjZvstC88v5fu8APt8prp8k2alDiRfift3EbHzuKl/GUWAW79wHiL7JuC64AzZkW DvuPTU6KIWwk1uG4chc/duamd1ApmfIhVl1jl75E3Qj6bjm5MEdZkwh3vzwiiCPCSQgO np0gqfajit4VNvOsT0NW47Df8hYFIdTqnID/a/oS0YC/EcOGCmMZ/PFrLyEXiGscuXuE svAc57pKc+zr1V+KSFj29Zm5XIcN8HmzQEYPVBq1BvFcFABLk4gDdmjgJYr33tW0KnSl BgD8fRX5F2rkSmOvK/Gtma8+9xYgBoDfSC2M6SyF7Kw7ASSqRx64ftHMovpkl5O51u4b mHKA== 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=NJ2gTdtUlPrKorAfDRhDBgpzATEcFNVQb8V3npt/pY4=; fh=TapvEXZTIZB6cr1I2j4y+MsEQWH4VaZKMFgKGEDdR6A=; b=MLXKmWblNxCnwnJabnBvYb6RhCGnNpY2Wc0HOZ1ZkUnpG4/sirxhJx2jAxwSWi9LEH QU8VsYIiCFcp260PdsDohYsaCjfo+xQlPlC6uGYH/dTNoluqKRDzy8jg4sjgvRv0lLHh En5TSQWSFjUZJR7Aq2CiOWYcjnG6v/Chzqp+pSU8IZm/7lwH5ZsFaKXyi8GX7guXCIzJ oEWduZSm9SwrzDsX1XmOoR27iQnEs845sjMKznqm1ltbw1qbO2ydAntrl/K0sla1hRzV e4pIYrkurcaTlmdpy0Yu8L85obnBvdVY/5FizGRrR3kuql17jKsWzONld/nKblVbIPci DTTQ== 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:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id m129-20020a625887000000b006cb4ac19d40si8920989pfb.226.2023.11.21.18.27.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 18:27:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 5E1EB8097171; Tue, 21 Nov 2023 18:26:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbjKVC0t (ORCPT + 99 others); Tue, 21 Nov 2023 21:26:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjKVC0s (ORCPT ); Tue, 21 Nov 2023 21:26:48 -0500 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3530198; Tue, 21 Nov 2023 18:26:41 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VwuNqXE_1700619988; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VwuNqXE_1700619988) by smtp.aliyun-inc.com; Wed, 22 Nov 2023 10:26:39 +0800 From: Jiapeng Chong To: kent.overstreet@linux.dev Cc: bfoster@redhat.com, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] bcachefs: make __bch2_read_super static Date: Wed, 22 Nov 2023 10:26:27 +0800 Message-Id: <20231122022627.53229-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 18:26:56 -0800 (PST) The __bch2_read_super are not used outside the file super-io.c, so the modification is defined as static. fs/bcachefs/super-io.c:661:5: warning: no previous prototype for ‘__bch2_read_super’. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7604 Signed-off-by: Jiapeng Chong --- fs/bcachefs/super-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index f90fc7a4c26f..e78270e82fa8 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -658,7 +658,7 @@ static int read_one_super(struct bch_sb_handle *sb, u64 offset, struct printbuf return 0; } -int __bch2_read_super(const char *path, struct bch_opts *opts, +static int __bch2_read_super(const char *path, struct bch_opts *opts, struct bch_sb_handle *sb, bool ignore_notbchfs_msg) { u64 offset = opt_get(*opts, sb); -- 2.20.1.7.g153144c