git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
fs
/
partitions
/
acorn.c
diff --git
a/fs/partitions/acorn.c
b/fs/partitions/acorn.c
index
6b494ab
..
c050857
100644
(file)
--- a/
fs/partitions/acorn.c
+++ b/
fs/partitions/acorn.c
@@
-53,16
+53,16
@@
adfs_partition(struct parsed_partitions *state, char *name, char *data,
#ifdef CONFIG_ACORN_PARTITION_RISCIX
struct riscix_part {
#ifdef CONFIG_ACORN_PARTITION_RISCIX
struct riscix_part {
- __
u32
start;
- __
u32
length;
- __
u32
one;
+ __
le32
start;
+ __
le32
length;
+ __
le32
one;
char name[16];
};
struct riscix_record {
char name[16];
};
struct riscix_record {
- __
u32
magic;
-#define RISCIX_MAGIC (0x4a657320)
- __
u32
date;
+ __
le32
magic;
+#define RISCIX_MAGIC
cpu_to_le32
(0x4a657320)
+ __
le32
date;
struct riscix_part part[8];
};
struct riscix_part part[8];
};
@@
-111,9
+111,9
@@
riscix_partition(struct parsed_partitions *state, struct block_device *bdev,
#define LINUX_SWAP_MAGIC 0xdeafab1e
struct linux_part {
#define LINUX_SWAP_MAGIC 0xdeafab1e
struct linux_part {
- __
u
32 magic;
- __
u
32 start_sect;
- __
u
32 nr_sects;
+ __
le
32 magic;
+ __
le
32 start_sect;
+ __
le
32 nr_sects;
};
static int
};
static int
@@
-306,8
+306,8
@@
adfspart_check_ADFS(struct parsed_partitions *state, struct block_device *bdev)
#ifdef CONFIG_ACORN_PARTITION_ICS
struct ics_part {
#ifdef CONFIG_ACORN_PARTITION_ICS
struct ics_part {
- __
u
32 start;
- __
s
32 size;
+ __
le
32 start;
+ __
le
32 size;
};
static int adfspart_check_ICSLinux(struct block_device *bdev, unsigned long block)
};
static int adfspart_check_ICSLinux(struct block_device *bdev, unsigned long block)
@@
-336,7
+336,7
@@
static inline int valid_ics_sector(const unsigned char *data)
for (i = 0, sum = 0x50617274; i < 508; i++)
sum += data[i];
for (i = 0, sum = 0x50617274; i < 508; i++)
sum += data[i];
- sum -= le32_to_cpu(*(__
u
32 *)(&data[508]));
+ sum -= le32_to_cpu(*(__
le
32 *)(&data[508]));
return sum == 0;
}
return sum == 0;
}
@@
-412,11
+412,11
@@
adfspart_check_ICS(struct parsed_partitions *state, struct block_device *bdev)
#ifdef CONFIG_ACORN_PARTITION_POWERTEC
struct ptec_part {
#ifdef CONFIG_ACORN_PARTITION_POWERTEC
struct ptec_part {
- __
u
32 unused1;
- __
u
32 unused2;
- __
u
32 start;
- __
u
32 size;
- __
u
32 unused5;
+ __
le
32 unused1;
+ __
le
32 unused2;
+ __
le
32 start;
+ __
le
32 size;
+ __
le
32 unused5;
char type[8];
};
char type[8];
};
@@
-486,10
+486,10
@@
adfspart_check_POWERTEC(struct parsed_partitions *state, struct block_device *bd
struct eesox_part {
char magic[6];
char name[10];
struct eesox_part {
char magic[6];
char name[10];
-
u32
start;
-
u32
unused6;
-
u32
unused7;
-
u32
unused8;
+
__le32
start;
+
__le32
unused6;
+
__le32
unused7;
+
__le32
unused8;
};
/*
};
/*