All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs: tests: fix formatting in btrfs-tests
@ 2023-05-30  1:02 Phillip Duncan
  2023-05-30 18:54 ` David Sterba
  0 siblings, 1 reply; 3+ messages in thread
From: Phillip Duncan @ 2023-05-30  1:02 UTC (permalink / raw)
  To: Josef Bacik; +Cc: Linux-btrfs

checkpatch.pl had a couple of formatting suggestions:
- #38: Don't use multiple blank lines
- #42: Missing a blank line after declarations
- #282: Alignment should match open parenthesis

Fixed these format suggestions, checkpatch.pl is a little cleaner now.

Signed-off-by: Phillip Duncan <turtlekernelsanders@gmail.com>
---
 fs/btrfs/tests/btrfs-tests.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fs/btrfs/tests/btrfs-tests.c b/fs/btrfs/tests/btrfs-tests.c
index ca09cf9afce8..1653456560c2 100644
--- a/fs/btrfs/tests/btrfs-tests.c
+++ b/fs/btrfs/tests/btrfs-tests.c
@@ -35,10 +35,10 @@ static const struct super_operations btrfs_test_super_ops = {
 	.destroy_inode	= btrfs_test_destroy_inode,
 };
 
-
 static int btrfs_test_init_fs_context(struct fs_context *fc)
 {
 	struct pseudo_fs_context *ctx = init_pseudo(fc, BTRFS_TEST_MAGIC);
+
 	if (!ctx)
 		return -ENOMEM;
 	ctx->ops = &btrfs_test_super_ops;
@@ -278,8 +278,7 @@ int btrfs_run_sanity_tests(void)
 			ret = btrfs_test_free_space_cache(sectorsize, nodesize);
 			if (ret)
 				goto out;
-			ret = btrfs_test_extent_buffer_operations(sectorsize,
-				nodesize);
+			ret = btrfs_test_extent_buffer_operations(sectorsize, nodesize);
 			if (ret)
 				goto out;
 			ret = btrfs_test_extent_io(sectorsize, nodesize);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] btrfs: tests: fix formatting in btrfs-tests
  2023-05-30  1:02 [PATCH] btrfs: tests: fix formatting in btrfs-tests Phillip Duncan
@ 2023-05-30 18:54 ` David Sterba
  2023-05-30 19:14   ` Phillip Duncan
  0 siblings, 1 reply; 3+ messages in thread
From: David Sterba @ 2023-05-30 18:54 UTC (permalink / raw)
  To: Phillip Duncan; +Cc: Josef Bacik, Linux-btrfs

On Mon, May 29, 2023 at 06:02:38PM -0700, Phillip Duncan wrote:
> checkpatch.pl had a couple of formatting suggestions:
> - #38: Don't use multiple blank lines
> - #42: Missing a blank line after declarations
> - #282: Alignment should match open parenthesis
> 
> Fixed these format suggestions, checkpatch.pl is a little cleaner now.

Please don't send such patches, or at least not to btrfs. A more
elaborate answer:

https://btrfs.readthedocs.io/en/latest/dev/Developer-s-FAQ.html#how-not-to-start

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] btrfs: tests: fix formatting in btrfs-tests
  2023-05-30 18:54 ` David Sterba
@ 2023-05-30 19:14   ` Phillip Duncan
  0 siblings, 0 replies; 3+ messages in thread
From: Phillip Duncan @ 2023-05-30 19:14 UTC (permalink / raw)
  To: David Sterba; +Cc: Josef Bacik, Linux-btrfs

On Tue, May 30, 2023 at 08:54:11PM +0200, David Sterba wrote:
> On Mon, May 29, 2023 at 06:02:38PM -0700, Phillip Duncan wrote:
> > checkpatch.pl had a couple of formatting suggestions:
> > - #38: Don't use multiple blank lines
> > - #42: Missing a blank line after declarations
> > - #282: Alignment should match open parenthesis
> > 
> > Fixed these format suggestions, checkpatch.pl is a little cleaner now.
> 
> Please don't send such patches, or at least not to btrfs. A more
> elaborate answer:
> 
> https://btrfs.readthedocs.io/en/latest/dev/Developer-s-FAQ.html#how-not-to-start

Thank you for taking the time to respond, I appreciate the direction for
where to start.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-30 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-30  1:02 [PATCH] btrfs: tests: fix formatting in btrfs-tests Phillip Duncan
2023-05-30 18:54 ` David Sterba
2023-05-30 19:14   ` Phillip Duncan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.