diff options
author | Namjae Jeon <linkinjeon@gmail.com> | 2011-10-12 11:43:14 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-10-27 09:11:34 -0400 |
commit | a6029e1f75bb484c1f5bc68b6a8572e4024795bc (patch) | |
tree | 79b8487c706e93fa4e0be28d3a4297d65851ac35 /include/linux/mmc | |
parent | 336c716ae2272c9a26a6f82976d0e077d8ca824e (diff) |
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>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/card.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index 1684d92a8015..415f2db414e1 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h | |||
@@ -12,7 +12,6 @@ | |||
12 | 12 | ||
13 | #include <linux/mmc/core.h> | 13 | #include <linux/mmc/core.h> |
14 | #include <linux/mod_devicetable.h> | 14 | #include <linux/mod_devicetable.h> |
15 | #include <linux/genhd.h> | ||
16 | 15 | ||
17 | struct mmc_cid { | 16 | struct mmc_cid { |
18 | unsigned int manfid; | 17 | unsigned int manfid; |
@@ -175,6 +174,7 @@ struct sdio_func_tuple; | |||
175 | #define MMC_NUM_BOOT_PARTITION 2 | 174 | #define MMC_NUM_BOOT_PARTITION 2 |
176 | #define MMC_NUM_GP_PARTITION 4 | 175 | #define MMC_NUM_GP_PARTITION 4 |
177 | #define MMC_NUM_PHY_PARTITION 6 | 176 | #define MMC_NUM_PHY_PARTITION 6 |
177 | #define MAX_MMC_PART_NAME_LEN 20 | ||
178 | 178 | ||
179 | /* | 179 | /* |
180 | * MMC Physical partitions | 180 | * MMC Physical partitions |
@@ -182,7 +182,7 @@ struct sdio_func_tuple; | |||
182 | struct mmc_part { | 182 | struct mmc_part { |
183 | unsigned int size; /* partition size (in bytes) */ | 183 | unsigned int size; /* partition size (in bytes) */ |
184 | unsigned int part_cfg; /* partition type */ | 184 | unsigned int part_cfg; /* partition type */ |
185 | char name[DISK_NAME_LEN]; | 185 | char name[MAX_MMC_PART_NAME_LEN]; |
186 | bool force_ro; /* to make boot parts RO by default */ | 186 | bool force_ro; /* to make boot parts RO by default */ |
187 | }; | 187 | }; |
188 | 188 | ||