]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/ide/ide-disk.c
block: implement CONFIG_DEBUG_BLOCK_EXT_DEVT
[mirror_ubuntu-bionic-kernel.git] / drivers / ide / ide-disk.c
index 7a88de9ada29d47d4ec04ba652c26974dce5588d..a072df5053ae3827c076d5edaeca65a8bc613c6f 100644 (file)
 #include <asm/div64.h>
 
 #define IDE_DISK_PARTS         (1 << PARTN_BITS)
+
+#if !defined(CONFIG_DEBUG_BLOCK_EXT_DEVT)
 #define IDE_DISK_MINORS                IDE_DISK_PARTS
+#else
+#define IDE_DISK_MINORS                1
+#endif
+
 #define IDE_DISK_EXT_MINORS    (IDE_DISK_PARTS - IDE_DISK_MINORS)
 
 struct ide_disk_obj {