blk-core: use pr_warn_ratelimited() in bio_check_ro()
[platform/kernel/linux-starfive.git] / block / bsg.c
index 1a9396a..72157a5 100644 (file)
@@ -36,7 +36,7 @@ static inline struct bsg_device *to_bsg_device(struct inode *inode)
 }
 
 #define BSG_DEFAULT_CMDS       64
-#define BSG_MAX_DEVS           32768
+#define BSG_MAX_DEVS           (1 << MINORBITS)
 
 static DEFINE_IDA(bsg_minor_ida);
 static const struct class bsg_class;