clear-pkgs-linux-iot-lts2018/0032-block-export-block_cla...

30 lines
883 B
Diff
Raw Normal View History

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tomas Winkler <tomas.winkler@intel.com>
Date: Tue, 29 Mar 2016 16:14:01 +0300
Subject: [PATCH] block: export block_class to be used by class interfaces
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
--- 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)
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)
--
https://clearlinux.org