[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200325110338.1029232-2-hch@lst.de>
Date: Wed, 25 Mar 2020 12:03:31 +0100
From: Christoph Hellwig <hch@....de>
To: Jens Axboe <axboe@...nel.dk>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 1/8] block: mark block_depr static
Signed-off-by: Christoph Hellwig <hch@....de>
---
block/genhd.c | 2 +-
include/linux/genhd.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/block/genhd.c b/block/genhd.c
index f7d60b620b97..52841f41d6eb 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -27,7 +27,7 @@
#include "blk.h"
static DEFINE_MUTEX(block_class_lock);
-struct kobject *block_depr;
+static struct kobject *block_depr;
/* for extended dynamic devt allocation, currently only one major is used */
#define NR_EXT_DEVT (1 << MINORBITS)
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index da62b44b15be..7310108f5351 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -27,7 +27,6 @@
#define part_to_dev(part) (&((part)->__dev))
extern struct device_type part_type;
-extern struct kobject *block_depr;
extern struct class block_class;
#define DISK_MAX_PARTS 256
--
2.25.1
Powered by blists - more mailing lists