From patchwork Tue Feb 27 08:19:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiapeng Chong X-Patchwork-Id: 207087 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2559837dyb; Tue, 27 Feb 2024 00:20:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXicDnZPZjgXxbf1MbnyMLpsxNwnGgDeGLOt61lATK2qatgXDgBp3cDYOwbqJCKORPbr+qojayag6q6b8Gcf+KOuQOeEw== X-Google-Smtp-Source: AGHT+IEB53T3m4akVr0vf5GOiuDOzDsdqe8roRifqnEOs5RXrP438emGDY9p4PnG/4bBqAVAU/j+ X-Received: by 2002:a81:f90c:0:b0:608:e133:7ece with SMTP id x12-20020a81f90c000000b00608e1337ecemr1346142ywm.36.1709022039769; Tue, 27 Feb 2024 00:20:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709022039; cv=pass; d=google.com; s=arc-20160816; b=HEVfpe8iVKjnPyiPfwfrSr2SwB5yktFIe+uIIaeI2Dq+2Vyf9pjPwrmFDJ82do9RIA iSqnj9OmBi66qog/l1tqbZ4ZBHLJVbBbztg8jbQF14kZtdQ36AHrNRUPdn8gUmfvShBK TZBrLHAaLpoWT9IJSHCHQA5LD8NI9GF+fiZdWpnGqYE/UHNJk2v3GrARZ0iNuLqHT3ds JOGgI5rSko5keVyO+wj8Op1854Y7wWl9E10jafV66Vh0cEupDl4oT934YdI0NGti6lTo nQ9KoR8fijc3ekdUz9/Hshx2fdMASDpqEbAY5/1DGD5rHY/ELeOexwZVVCXl0sQ3TKVo xpZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=7yZTkXJpiVrirUXO3U9wzx2D7H03LIl+2lfBhplApEw=; fh=ycysUjKhWvqFX+iLhAVffoZTyrtNp+1H0z+FmYP8DvE=; b=ZHUvDN5l1FUkstZLjhEBQ/2adAeFnEEvqhim4BwgE86Sf4DAILXVlBPYdfKtjO6DB3 wpExqDGNOOq/NceT4LA+dBVWr+GAksxia2LRCchPe+CvUgPF/uNMmoT4YpfPdyhtlrGL qztWihfTvETMy3FezSWt6fzeM0kyS3dPONaN9pm9Zd99Ol4y9u4wV0ItdjIrgDYjQPFm E6isoeHYdg+wynP+IqLunlHv1W847IYMihgb8cVj8NCadSZemCKp77y0MPMZI7cGMeFI rLCB/47wrHKejmiOnyEuigbhdfPs5d1LfzvSWbcOyJLZoQSyOKP9CsrSUIr+D999yQJ2 BF5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=X6HPfAmU; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-82856-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82856-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c26-20020ac86e9a000000b0042e63529e86si6618393qtv.487.2024.02.27.00.20.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 00:20:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82856-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=X6HPfAmU; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-82856-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82856-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8CAD91C20FDB for ; Tue, 27 Feb 2024 08:20:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CD2B5786A; Tue, 27 Feb 2024 08:20:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="X6HPfAmU" Received: from out30-98.freemail.mail.aliyun.com (out30-98.freemail.mail.aliyun.com [115.124.30.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AED0E56461; Tue, 27 Feb 2024 08:20:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.98 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709022024; cv=none; b=HBfx8OFQLQei0UiJv/g8Zj7FVg2R76mLtaj83F5kTkY2QFY4+GmSWbaYHDcf1ZOCDIEBQ8jbiZ0YV1eeZQ0VQw6WiVTD+egtLZ3UK5r0QQir9jCfhWLymUiA4Y3iwxvsjlFRyuzMoVriLkHF4tCSAGMT6tfAG18nG/LabXATD38= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709022024; c=relaxed/simple; bh=k9RhSxrlPLj8IlwJPdxEqZaaSrHaCWfR513zF4tGFVw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=f3KWSEgMfBMmd7L4b6bZxrXyTTokranbxaLunLSHZABM+hEmivNv2htSr8SH9JUdDiC86KE+tgaxUKhZI20jTgCJ8rfTdMqAB+WuIyo7h7oFDn7LaEwyBM/In+nIeDYhPN9t6SZKTLn4DWBK0iiFAyaQivVoRTGcM/MfD5Y5K6s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=X6HPfAmU; arc=none smtp.client-ip=115.124.30.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1709022018; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=7yZTkXJpiVrirUXO3U9wzx2D7H03LIl+2lfBhplApEw=; b=X6HPfAmULC7OEJEtdxIuNaNhsXbRlxpLBofmdNtTQqSm4a0ETelwO6YrChZbPHnjFier2d8Va/y2KwuFvOzctOxvYWZG0qXm4uppHzyT2OBsQxuGwKR7NZ5o1QPa5yHrCjLF+nRdvWZkNDckMiGhi+iVoXU6o5f2mZr/USrUm44= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0W1M90AE_1709021999; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0W1M90AE_1709021999) by smtp.aliyun-inc.com; Tue, 27 Feb 2024 16:20:17 +0800 From: Jiapeng Chong To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] bdev: make blockdev_mnt static Date: Tue, 27 Feb 2024 16:19:58 +0800 Message-Id: <20240227081958.89092-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792039494320551570 X-GMAIL-MSGID: 1792039494320551570 The blockdev_mnt are not used outside the file bdev.c, so the modification is defined as static. block/bdev.c:377:17: warning: symbol 'blockdev_mnt' was not declared. Should it be static? Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8341 Signed-off-by: Jiapeng Chong Reviewed-by: Christoph Hellwig --- block/bdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/bdev.c b/block/bdev.c index e7adaaf1c219..ca1c12c1189e 100644 --- a/block/bdev.c +++ b/block/bdev.c @@ -374,7 +374,7 @@ static struct file_system_type bd_type = { }; struct super_block *blockdev_superblock __ro_after_init; -struct vfsmount *blockdev_mnt __ro_after_init; +static struct vfsmount *blockdev_mnt __ro_after_init; EXPORT_SYMBOL_GPL(blockdev_superblock); void __init bdev_cache_init(void)