koverstreet / bcachefs-tools

http://bcachefs.org
GNU General Public License v2.0
120 stars 89 forks source link

armv7l fixes #168

Closed sielicki closed 10 months ago

sielicki commented 11 months ago
commit 8369be0fcdfb796ec63cd91f03103b35f168d2eb (HEAD -> master, origin/master, origin/HEAD)
Author: Nicholas Sielicki <linux@opensource.nslick.com>
Date:   Wed Oct 18 23:39:04 2023 -0500

    btree_write_buffer: ensure atomic64_sub_return_release availability

    prior to this patch, on certain platforms (ie: armv7l), compilation fails due
    to atomic64_sub_return_release not being defined here. Ensure that the atomics
    header is pulled in, and ensure that it is available in all cases, regardless
    of whether ATOMIC64_SPINLOCK is defined.

    Signed-off-by: Nicholas Sielicki <linux@opensource.nslick.com>

commit f2b987745d46e763c63f47ae843d28684041fa48
Author: Nicholas Sielicki <linux@opensource.nslick.com>
Date:   Wed Oct 18 00:59:02 2023 -0500

    rust: mount: use libc::c_ulong for flags

    libc proper treats mount flags as an unsigned long, which is usually u64,
    except when it isn't. When preparing mount flags, use the libc::c_ulong type
    instead of u64 to allow for this.

    This fixes compiling this file under armv7l.

    Signed-off-by: Nicholas Sielicki <linux@opensource.nslick.com>
leahneukirchen commented 10 months ago

This also fixes build on i686.