mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
Update bcachefs sources to df6415fefb27 bcachefs: Fixes for rust bindgen
This commit is contained in:
parent
93241a1c9a
commit
596ec1050d
@ -1 +1 @@
|
|||||||
5d0a6c2b32f1542f01e47e767b0174de788dd8cc
|
df6415fefb2790c3b95fa87ead779e7d2c654379
|
||||||
|
@ -12,9 +12,12 @@
|
|||||||
/*
|
/*
|
||||||
* u128_u: u128 user mode, because not all architectures support a real int128
|
* u128_u: u128 user mode, because not all architectures support a real int128
|
||||||
* type
|
* type
|
||||||
|
*
|
||||||
|
* We don't use this version in userspace, because in userspace we link with
|
||||||
|
* Rust and rustc has issues with u128.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __SIZEOF_INT128__
|
#if defined(__SIZEOF_INT128__) && defined(__KERNEL__)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned __int128 v;
|
unsigned __int128 v;
|
||||||
|
@ -20,7 +20,11 @@ struct snapshot_t {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct snapshot_table {
|
struct snapshot_table {
|
||||||
|
#ifndef RUST_BINDGEN
|
||||||
DECLARE_FLEX_ARRAY(struct snapshot_t, s);
|
DECLARE_FLEX_ARRAY(struct snapshot_t, s);
|
||||||
|
#else
|
||||||
|
struct snapshot_t s[0];
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user