]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: fix compile error when CONFIG_BLOCK is not enabled
authorNamjae Jeon <linkinjeon@gmail.com>
Wed, 12 Oct 2011 15:43:14 +0000 (00:43 +0900)
committerChris Ball <cjb@laptop.org>
Wed, 12 Oct 2011 18:38:16 +0000 (14:38 -0400)
commit8943b39afaa6d9774ed03fffb9afd6257fa2b428
tree72fdc7e32065d5d302615dfd381ca4f24682a62b
parent44d7150d56937e08386175ad236c44d50bc075d1
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
DISK_NAME_LEN.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Andrei Warkentin <andreiw@vmware.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
include/linux/mmc/card.h