diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-02 03:06:45 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:09 +0300 |
commit | bf5a261c7af80a2ac10bcc3ce0382cb238eccb8b (patch) | |
tree | ba891c5c8486cc26935c90b4c899baf1ae86af9d /fs/bcachefs/ec.h | |
parent | 7904c82ceae963b0f89e96a49dc714adffe3adc6 (diff) | |
download | linux-bf5a261c7af80a2ac10bcc3ce0382cb238eccb8b.tar.xz |
bcachefs: Assorted fixes for clang
clang had a few more warnings about enum conversion, and also didn't
like the opts.c initializer.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/ec.h')
-rw-r--r-- | fs/bcachefs/ec.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/bcachefs/ec.h b/fs/bcachefs/ec.h index 1b1848e5fa5e..885ae5d51655 100644 --- a/fs/bcachefs/ec.h +++ b/fs/bcachefs/ec.h @@ -138,10 +138,7 @@ struct ec_stripe_buf { void *data[BCH_BKEY_PTRS_MAX]; - union { - struct bkey_i_stripe key; - u64 pad[255]; - }; + __BKEY_PADDED(key, 255); }; struct ec_stripe_head; |