diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-19 18:31:33 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:44 -0400 |
commit | 3e3e02e6bce627ed9e3a5d9fd3118e6569dc2548 (patch) | |
tree | 33fc60a2903692a2038dd4b87dfa6b87a207b7e1 /fs/bcachefs/bkey.c | |
parent | ed80c5699a23c4005ba8e81d4b8fb3e1b922fa40 (diff) |
bcachefs: Assorted checkpatch fixes
checkpatch.pl gives lots of warnings that we don't want - suggested
ignore list:
ASSIGN_IN_IF
UNSPECIFIED_INT - bcachefs coding style prefers single token type names
NEW_TYPEDEFS - typedefs are occasionally good
FUNCTION_ARGUMENTS - we prefer to look at functions in .c files
(hopefully with docbook documentation), not .h
file prototypes
MULTISTATEMENT_MACRO_USE_DO_WHILE
- we have _many_ x-macros and other macros where
we can't do this
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bkey.c')
-rw-r--r-- | fs/bcachefs/bkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/bkey.c b/fs/bcachefs/bkey.c index 52af6f370eb9..e09a5e3fd709 100644 --- a/fs/bcachefs/bkey.c +++ b/fs/bcachefs/bkey.c @@ -1113,10 +1113,10 @@ int bch2_bkey_cmp_packed(const struct btree *b, if (bkey_packed(l)) { __bkey_unpack_key_format_checked(b, &unpacked, l); - l = (void*) &unpacked; + l = (void *) &unpacked; } else if (bkey_packed(r)) { __bkey_unpack_key_format_checked(b, &unpacked, r); - r = (void*) &unpacked; + r = (void *) &unpacked; } return bpos_cmp(((struct bkey *) l)->p, ((struct bkey *) r)->p); |