Skip to contentSkip to conversation

btrfs: Modify format error

PATCH In review [email protected] 2 participants 2 messages Jul 17, 2023 – Jul 20, 2023 1 message not in the archive Btrfs file system

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 btrfs: Modify format error

Fix the following checkpatch error(s):
ERROR: "foo* const bar" should be "foo * const bar"
ERROR: "foo* bar" should be "foo *bar"

---
 fs/btrfs/compression.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/compression.c +2 -2
index 8818ed5c390f..4ba54a3bc552 100644
@@ -39,9 +39,9 @@
 
 static struct bio_set btrfs_compressed_bioset;
 
-static const char* const btrfs_compress_types[] = { "", "zlib", "lzo", "zstd" };
+static const char * const btrfs_compress_types[] = { "", "zlib", "lzo", "zstd" };
 
-const char* btrfs_compress_type2str(enum btrfs_compression_type type)
+const char *btrfs_compress_type2str(enum btrfs_compression_type type)
 {
     switch (type) {
     case BTRFS_COMPRESS_ZLIB:
#2 lore raw
Quoted 5 lines · On Mon, Jul 17, 2023 at 03:19:04PM +0800, [email protected] wrote:

Fix the following checkpatch error(s):
ERROR: "foo* const bar" should be "foo * const bar"
ERROR: "foo* bar" should be "foo *bar"

Please don't send patches to btrfs that only fix problems reported by checkpatch and nothing else. Thanks.