diff -drupN a/block/partitions/efi.c b/block/partitions/efi.c --- a/block/partitions/efi.c 2017-10-21 18:09:07.000000000 +0300 +++ b/block/partitions/efi.c 2022-06-09 05:02:28.000000000 +0300 @@ -420,7 +420,9 @@ static int is_gpt_valid(struct parsed_pa pr_debug("GPT: last_usable_lba incorrect: %lld > %lld\n", (unsigned long long)le64_to_cpu((*gpt)->last_usable_lba), (unsigned long long)lastlba); +#ifndef CONFIG_INGENIC_GPT_CHECK goto fail; +#endif } if (le64_to_cpu((*gpt)->last_usable_lba) < le64_to_cpu((*gpt)->first_usable_lba)) { pr_debug("GPT: last_usable_lba incorrect: %lld > %lld\n",