You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
of: use __be32 for cell value accessors
Currently, we're using u32 for cell values, and hence assuming host-endian device trees. As we'd like to support little-endian platforms, use a __be32 for cell values, and convert in the cell accessors. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
committed by
Grant Likely
parent
36b9d3070d
commit
2e89e685a8
+2
-2
@@ -431,9 +431,9 @@ int __init early_init_dt_scan_root(unsigned long node, const char *uname,
|
||||
return 1;
|
||||
}
|
||||
|
||||
u64 __init dt_mem_next_cell(int s, u32 **cellp)
|
||||
u64 __init dt_mem_next_cell(int s, __be32 **cellp)
|
||||
{
|
||||
u32 *p = *cellp;
|
||||
__be32 *p = *cellp;
|
||||
|
||||
*cellp = p + s;
|
||||
return of_read_number(p, s);
|
||||
|
||||
Reference in New Issue
Block a user