summaryrefslogtreecommitdiff
path: root/block/partitions/check.h
diff options
context:
space:
mode:
Diffstat (limited to 'block/partitions/check.h')
-rw-r--r--block/partitions/check.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/partitions/check.h b/block/partitions/check.h
index 52b100311ec3..eade17ea910b 100644
--- a/block/partitions/check.h
+++ b/block/partitions/check.h
@@ -15,13 +15,15 @@ struct parsed_partitions {
int flags;
bool has_info;
struct partition_meta_info info;
- } parts[DISK_MAX_PARTS];
+ } *parts;
int next;
int limit;
bool access_beyond_eod;
char *pp_buf;
};
+void free_partitions(struct parsed_partitions *state);
+
struct parsed_partitions *
check_partition(struct gendisk *, struct block_device *);