Commit cb970405 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix nc98 partition parser link error

Fix this:

fs/partitions/nec98.c:169: undefined reference to `parse_bsd'
parent 0f23a3a8
...@@ -29,3 +29,8 @@ put_partition(struct parsed_partitions *p, int n, sector_t from, sector_t size) ...@@ -29,3 +29,8 @@ put_partition(struct parsed_partitions *p, int n, sector_t from, sector_t size)
} }
extern int warn_no_part; extern int warn_no_part;
extern void parse_bsd(struct parsed_partitions *state,
struct block_device *bdev, u32 offset, u32 size,
int origin, char *flavour, int max_partitions);
...@@ -214,12 +214,12 @@ parse_solaris_x86(struct parsed_partitions *state, struct block_device *bdev, ...@@ -214,12 +214,12 @@ parse_solaris_x86(struct parsed_partitions *state, struct block_device *bdev,
#endif #endif
} }
#ifdef CONFIG_BSD_DISKLABEL #if defined(CONFIG_BSD_DISKLABEL) || defined(CONFIG_NEC98_PARTITION)
/* /*
* Create devices for BSD partitions listed in a disklabel, under a * Create devices for BSD partitions listed in a disklabel, under a
* dos-like partition. See parse_extended() for more information. * dos-like partition. See parse_extended() for more information.
*/ */
static void void
parse_bsd(struct parsed_partitions *state, struct block_device *bdev, parse_bsd(struct parsed_partitions *state, struct block_device *bdev,
u32 offset, u32 size, int origin, char *flavour, u32 offset, u32 size, int origin, char *flavour,
int max_partitions) int max_partitions)
......
...@@ -66,13 +66,6 @@ is_valid_nec98_partition_table(const struct nec98_partition *ptable, ...@@ -66,13 +66,6 @@ is_valid_nec98_partition_table(const struct nec98_partition *ptable,
return valid; return valid;
} }
#ifdef CONFIG_BSD_DISKLABEL
extern void parse_bsd(struct parsed_partitions *state,
struct block_device *bdev,
u32 offset, u32 size, int origin, char *flavour,
int max_partitions);
#endif
int nec98_partition(struct parsed_partitions *state, struct block_device *bdev) int nec98_partition(struct parsed_partitions *state, struct block_device *bdev)
{ {
unsigned int nr; unsigned int nr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment