Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2935441pxk; Mon, 21 Sep 2020 00:23:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7yujveuqxAIFJjNcBLlB5cSXY4zyvnI2mn/VS4qVoIEmJho/VwqMjQzF44ZzGE/1aqfGK X-Received: by 2002:a05:6402:1612:: with SMTP id f18mr49644121edv.166.1600672990540; Mon, 21 Sep 2020 00:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600672990; cv=none; d=google.com; s=arc-20160816; b=GWUm84qvaCW/hOV6COvwnjFw/VuzkRuwivYy9MaSuhMTulINl9ecrk1qKUnnrRNOPW 1S4z/4JO90fMAhZwa5X3ITF9P5qmbOcm1HSLeI/wHoG8sJS9qxq4txmzkW0QrqaILeBZ LN1zMUiu1qNwHr7wIhPIxBs8jXGFvgLrcYjGZXYVQ0j3iywl6ZZEvReZGMEOB5htjr5U EYRVdDFZLDCT4oyJJC/S+BmG3yTDpKWiXc5VxouSyqv+btFS5YnDA2OURpQ7IGGzLxFX dKWwK9UwjhxkzRDQrh3xITig5MLUn3SPIT5kgHvQ2k6XBpqPNQF8aEL+/Vml11EpEcbs niwQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aWpQMjG3K8ZDoYTgVEFk+u0gKdJASH29rDnXXsv40lc=; b=UzKaCJP7zT5PkCUQMpFmBp3HcLkpDYDwNTjwzABLWgOBqSt8lMYNbE2JZmVuY3Kv1F l00tS+z09nfq46bh31qXDUMrYPHig2kDd+e6RhZUjTt6Ga0Urw8jfK+rTDO9hO3Pm26d 3B5rqYiGzMB12QkOb0VPRPw6PLd6suOHeYox0hugwmt4XXz+svPZgjh2sNZXv/5ZRg8M ayTGOn5KU5FgbTTpjxSwNwlkW59IsPSjEykBnHvTNJZEzW5GfnU2gEdpGy7SPMHvT96X o0CMLKjyyH1xm1giDrrS3zbovEhFSxybmRJdxwlrna/rBbC4SqUyWRTAEde1n3Z6ps6z kCKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nPdCKsa1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si7859406ejz.602.2020.09.21.00.22.47; Mon, 21 Sep 2020 00:23:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nPdCKsa1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726435AbgIUHVE (ORCPT + 99 others); Mon, 21 Sep 2020 03:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726547AbgIUHUR (ORCPT ); Mon, 21 Sep 2020 03:20:17 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19D3FC061755; Mon, 21 Sep 2020 00:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=aWpQMjG3K8ZDoYTgVEFk+u0gKdJASH29rDnXXsv40lc=; b=nPdCKsa1AKYRb5HoCWLpMWnHZ2 WCzoTP4XCD0vyRaLIMn5iDFyYAA8Xb8Yddn7TOP2uVGBRq5AP3wK3vqVJFCaxhLv4Kt7Alp2qbVuS tMAx1+5VCDlAsg7CXEFh2DA26uSrVwWRbVDQBrJ9zo8doVfGJfAhpINmK98BIZyZUGrC+K0x32iwX LYBk5b1gPP3CeKR/yE/3rZTm2osd3al6VncOcoX/Ji3imqTpOVc8wf6lO72NvI5Rm+BOqOjrpAnmf Qyb8TYf1JgO1QiDHTK29wr3DOXIzknAMqf5iWxna1LDXl9q6kzsxGQ8z64z9kpKzWizW5DRXA03qw ZdXiB9DQ==; Received: from p4fdb0c34.dip0.t-ipconnect.de ([79.219.12.52] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKG7J-0003JK-J0; Mon, 21 Sep 2020 07:20:05 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Josef Bacik , Minchan Kim , Stefan Haberland , Jan Hoeppner , Joseph Qi , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Andrew Morton , linux-kernel@vger.kernel.org, nbd@other.debian.org, linux-ide@vger.kernel.org, linux-s390@vger.kernel.org, linux-fsdevel@vger.kernel.org, ocfs2-devel@oss.oracle.com, linux-pm@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org Subject: [PATCH 14/14] block: mark blkdev_get static Date: Mon, 21 Sep 2020 09:19:58 +0200 Message-Id: <20200921071958.307589-15-hch@lst.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921071958.307589-1-hch@lst.de> References: <20200921071958.307589-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are no users outside the core block code left now. Signed-off-by: Christoph Hellwig --- fs/block_dev.c | 3 +-- include/linux/blkdev.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 2898d69be6b3e4..6b9d19ffa5af7b 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -1616,7 +1616,7 @@ static int __blkdev_get(struct block_device *bdev, fmode_t mode, void *holder, * RETURNS: * 0 on success, -errno on failure. */ -int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder) +static int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder) { int ret, perm = 0; @@ -1637,7 +1637,6 @@ int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder) bdput(bdev); return ret; } -EXPORT_SYMBOL(blkdev_get); /** * blkdev_get_by_path - open a block device by name diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 5bd96fbab9b4c8..14117995091224 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1975,7 +1975,6 @@ void blkdev_show(struct seq_file *seqf, off_t offset); #define BLKDEV_MAJOR_MAX 0 #endif -int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder); struct block_device *blkdev_get_by_path(const char *path, fmode_t mode, void *holder); struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder); -- 2.28.0