summaryrefslogtreecommitdiff
path: root/windhoek/partitions
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2010-06-21 06:49:30 +0200
committerZheng Da <zhengda1936@gmail.com>2010-06-21 06:49:30 +0200
commit28a95f867926113dafd922c44d60f2091835219d (patch)
treed108b394910099183f5cf1e1069c307cfbcd987f /windhoek/partitions
parentd8d10fa335320a3e8e0783b8a74346364b08614a (diff)
remove check_part and check_partition in windhoek.
Diffstat (limited to 'windhoek/partitions')
-rw-r--r--windhoek/partitions/check.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/windhoek/partitions/check.c b/windhoek/partitions/check.c
index a8098337..041a2d37 100644
--- a/windhoek/partitions/check.c
+++ b/windhoek/partitions/check.c
@@ -43,6 +43,7 @@ extern void md_autodetect_dev(dev_t dev);
int warn_no_part = 1; /*This is ugly: should make genhd removable media aware*/
+#ifndef DDE_LINUX
static int (*check_part[])(struct parsed_partitions *, struct block_device *) = {
/*
* Probe partition formats with tables at disk address 0
@@ -112,6 +113,7 @@ static int (*check_part[])(struct parsed_partitions *, struct block_device *) =
#endif
NULL
};
+#endif
/*
* disk_name() is used by partition check code and the genhd driver.
@@ -153,6 +155,7 @@ const char *__bdevname(dev_t dev, char *buffer)
EXPORT_SYMBOL(__bdevname);
+#ifndef DDE_LINUX
static struct parsed_partitions *
check_partition(struct gendisk *hd, struct block_device *bdev)
{
@@ -194,6 +197,7 @@ check_partition(struct gendisk *hd, struct block_device *bdev)
kfree(state);
return ERR_PTR(res);
}
+#endif
static ssize_t part_partition_show(struct device *dev,
struct device_attribute *attr, char *buf)