2019-03-29 14:12:17 +08:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-10-16 02:05:43 +08:00
|
|
|
From: Tomas Winkler <tomas.winkler@intel.com>
|
|
|
|
Date: Tue, 29 Mar 2016 16:14:01 +0300
|
2019-03-29 14:12:17 +08:00
|
|
|
Subject: [PATCH] block: export block_class to be used by class interfaces
|
2018-10-16 02:05:43 +08:00
|
|
|
|
|
|
|
Enable access to block devices via class_interface outside
|
|
|
|
of the block subsystem.
|
|
|
|
|
|
|
|
Change-Id: I6115a9b4655e47ec42e47c9720da8784139557bd
|
|
|
|
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
|
|
|
|
---
|
|
|
|
block/genhd.c | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
diff --git a/block/genhd.c b/block/genhd.c
|
2021-06-16 23:22:13 +08:00
|
|
|
index 27a410d31087..7f10bf9c2aad 100644
|
2018-10-16 02:05:43 +08:00
|
|
|
--- a/block/genhd.c
|
|
|
|
+++ b/block/genhd.c
|
2021-06-16 23:22:13 +08:00
|
|
|
@@ -1315,6 +1315,7 @@ static void disk_release(struct device *dev)
|
2018-10-16 02:05:43 +08:00
|
|
|
struct class block_class = {
|
|
|
|
.name = "block",
|
|
|
|
};
|
|
|
|
+EXPORT_SYMBOL_GPL(block_class);
|
|
|
|
|
|
|
|
static char *block_devnode(struct device *dev, umode_t *mode,
|
|
|
|
kuid_t *uid, kgid_t *gid)
|
|
|
|
--
|
2019-04-08 18:08:36 +08:00
|
|
|
https://clearlinux.org
|
2018-10-16 02:05:43 +08:00
|
|
|
|