format_gpt_valid() isn't call anywhere.
It means that code is dead.
In future, someone want to use it, just add the configuration as
CONFIG_GPT_FORMAT_VALID.
Change-Id: Id6fdcbd0b1e0530779649096637f488024709c2a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
static int is_gpt_valid(block_dev_desc_t * dev_desc, unsigned long long lba,
gpt_header * pgpt_head, gpt_entry ** pgpt_pte);
static int is_gpt_valid(block_dev_desc_t * dev_desc, unsigned long long lba,
gpt_header * pgpt_head, gpt_entry ** pgpt_pte);
+#ifdef CONFIG_GPT_FORMAT_VALID
#ifdef CONFIG_EMMC_BOOT
static int format_gpt_valid(block_dev_desc_t * dev_desc, unsigned long long lba,
gpt_header * pgpt_head, gpt_entry ** pgpt_pte);
#endif
#ifdef CONFIG_EMMC_BOOT
static int format_gpt_valid(block_dev_desc_t * dev_desc, unsigned long long lba,
gpt_header * pgpt_head, gpt_entry ** pgpt_pte);
#endif
+#endif /* CONFIG_GPT_FORMAT_VALID */
static gpt_entry *alloc_read_gpt_entries(block_dev_desc_t * dev_desc,
gpt_header * pgpt_head);
static gpt_entry *alloc_read_gpt_entries(block_dev_desc_t * dev_desc,
gpt_header * pgpt_head);
+#ifdef CONFIG_GPT_FORMAT_VALID
#ifdef CONFIG_EMMC_BOOT
/**
* format_gpt_valid() - tests one GPT header and PTEs for validity
#ifdef CONFIG_EMMC_BOOT
/**
* format_gpt_valid() - tests one GPT header and PTEs for validity
+#endif /* CONFIG_GPT_FORMAT_VALID */
/**
* alloc_read_gpt_entries(): reads partition entries from disk
/**
* alloc_read_gpt_entries(): reads partition entries from disk