From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 3 Oct 2017 08:51:57 -0400 Subject: [U-Boot] [U-Boot, 5/9] fs: btrfs: Add disk-to-cpu and cpu-to-disk conversion functions In-Reply-To: <20170903150031.18179-6-marek.behun@nic.cz> References: <20170903150031.18179-6-marek.behun@nic.cz> Message-ID: <20171003125157.GH22973@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On Sun, Sep 03, 2017 at 05:00:27PM +0200, Marek Beh=C3=BAn wrote: > BTRFS on disk structures are stored in Little Endian. Add functions > to convert this structures to cpu and to disk format. >=20 > On Little Endian hosts, these functions do nothing. >=20 > 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. >=20 > Signed-off-by: Marek Behun >=20 > create mode 100644 fs/btrfs/conv-funcs.h >=20 > 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! --=20 Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: