提交 a6029e1f 编写于 作者: N Namjae Jeon 提交者: Chris Ball

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: NRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: NNamjae Jeon <linkinjeon@gmail.com>
Acked-by: NRandy Dunlap <rdunlap@xenotime.net>
Acked-by: NAndrei Warkentin <andreiw@vmware.com>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 336c716a
......@@ -12,7 +12,6 @@
#include <linux/mmc/core.h>
#include <linux/mod_devicetable.h>
#include <linux/genhd.h>
struct mmc_cid {
unsigned int manfid;
......@@ -175,6 +174,7 @@ struct sdio_func_tuple;
#define MMC_NUM_BOOT_PARTITION 2
#define MMC_NUM_GP_PARTITION 4
#define MMC_NUM_PHY_PARTITION 6
#define MAX_MMC_PART_NAME_LEN 20
/*
* MMC Physical partitions
......@@ -182,7 +182,7 @@ struct sdio_func_tuple;
struct mmc_part {
unsigned int size; /* partition size (in bytes) */
unsigned int part_cfg; /* partition type */
char name[DISK_NAME_LEN];
char name[MAX_MMC_PART_NAME_LEN];
bool force_ro; /* to make boot parts RO by default */
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册