mmc: fix compile error when CONFIG_BLOCK is not enabled

'DISK_NAME_LEN' is undeclared when CONFIG_BLOCK is disabled; its use was
introduced via genhd.h by the general purpose partition patch.

To fix, we just add our own MAX_MMC_PART_NAME_LEN macro instead of using

Reported-by: Randy Dunlap <>
Signed-off-by: Namjae Jeon <>
Acked-by: Randy Dunlap <>
Acked-by: Andrei Warkentin <>
Signed-off-by: Chris Ball <>
1 file changed