Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1780878rbb; Tue, 27 Feb 2024 00:20:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWA382rGcNcaVvto4wnvPu2B9AM004Zy1W+G+egwp2hZRH7ngd7q35/kLJSzlB2P+HwuQM2648CayditD+PgRAv/IeLqFti4F82XZuJdA== X-Google-Smtp-Source: AGHT+IGPM/wF8gA0DHBNS5zjvOtNpvty0EZVs41n8DOTKobzX932YZm5LlhaRuPmjr98nE2HXD6E X-Received: by 2002:a17:906:528d:b0:a40:65e9:de1e with SMTP id c13-20020a170906528d00b00a4065e9de1emr6012092ejm.8.1709022033728; Tue, 27 Feb 2024 00:20:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709022033; cv=pass; d=google.com; s=arc-20160816; b=RoeM2CyQPpyGIrCHV+XSN7cqJxsruW48RY8aZs3ioBhSkNIdGL0WRPEKZAC0+qRiiM LhJ1bucLOElf3bVRgLxozZsnXhZLCVhJI9yB9SVkP99W2aM5WQEJM6wVMcJIjQ2tH94k UTzu8j8KUKkt541gphhk+eGJCTanCreQdtqQPqDjarzHQCliifqPJCc9gQL4zASb0Ufm d5q3gixE/3MSMI4e7C2dX0aEFxs2788JUcgOxzEtWiimnnNXFOwcJEGDLrjzn42tY+di mDTRwbaYmAC7Np6b/XgQpy1xhonSzFTPG7KWFDorO485XnyF6Oem7ObKIbQLDJpU3AN6 Lyzg== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l22-20020a1709065a9600b00a4339a5dbafsi509612ejq.10.2024.02.27.00.20.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 00:20:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82856-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6C46B1F2224E for ; Tue, 27 Feb 2024 08:20:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E631556B94; Tue, 27 Feb 2024 08:20:25 +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 Content-Transfer-Encoding: 8bit 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 --- 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) -- 2.20.1.7.g153144c