[U-Boot] [U-Boot, 5/9] fs: btrfs: Add disk-to-cpu and cpu-to-disk conversion functions

Tom Rini trini at konsulko.com
Tue Oct 3 12:51:57 UTC 2017


On Sun, Sep 03, 2017 at 05:00:27PM +0200, Marek BehĂșn wrote:

> BTRFS on disk structures are stored in Little Endian. Add functions
> to convert this structures to cpu and to disk format.
> 
> On Little Endian hosts, these functions do nothing.
> 
> On Big Endian the CALL_MACRO_FROM_EACH from variadic-macro.h is used
> to define all the members for each structure on which cpu_to_le* or
> le*_to_cpu is to be called.
> 
> Signed-off-by: Marek Behun <marek.behun at nic.cz>
> 
>  create mode 100644 fs/btrfs/conv-funcs.h
> 
> diff --git a/fs/btrfs/conv-funcs.h b/fs/btrfs/conv-funcs.h
> new file mode 100644
> index 0000000000..f2e7944e4e

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171003/2d057749/attachment.sig>


More information about the U-Boot mailing list