* [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters
@ 2016-02-20 18:17 Simon Quigley
2016-02-21 0:02 ` Joe Perches
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Simon Quigley @ 2016-02-20 18:17 UTC (permalink / raw)
To: clm; +Cc: linux-btrfs, linux-kernel, Simon Quigley
checkpatch.pl reported a warning of over 80 characters on line 1833
Fixed by splitting up into multiple lines, no build errors afterwards
Signed-off-by: Simon Quigley <tsimonq2@ubuntu.com>
---
fs/btrfs/backref.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index f6dac40..d097777 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -1830,7 +1830,11 @@ static int iterate_inode_extrefs(u64 inum, struct btrfs_root *fs_root,
unsigned long ptr;
while (1) {
- ret = btrfs_find_one_extref(fs_root, inum, offset, path, &extref,
+ ret = btrfs_find_one_extref(fs_root,
+ inum,
+ offset,
+ path,
+ &extref,
&offset);
if (ret < 0)
break;
--
2.7.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters
2016-02-20 18:17 [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters Simon Quigley
@ 2016-02-21 0:02 ` Joe Perches
2016-02-21 0:56 ` [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 Simon Quigley
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: Joe Perches @ 2016-02-21 0:02 UTC (permalink / raw)
To: Simon Quigley, clm; +Cc: linux-btrfs, linux-kernel
On Sat, 2016-02-20 at 12:17 -0600, Simon Quigley wrote:
> checkpatch.pl reported a warning of over 80 characters on line 1833
[]
> diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
[]
> @@ -1830,7 +1830,11 @@ static int iterate_inode_extrefs(u64 inum, struct btrfs_root *fs_root,
> unsigned long ptr;
>
> while (1) {
> - ret = btrfs_find_one_extref(fs_root, inum, offset, path, &extref,
> + ret = btrfs_find_one_extref(fs_root,
> + inum,
> + offset,
> + path,
> + &extref,
> &offset);
I think this is poor because all the arguments aren't aligned.
It'd be nicer like:
ret = btrfs_find_one_extref(fs_root, inum, offset, path,
&extref, &offset);
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] btrfs: backref: Fixed checkpatch warning of over 80
2016-02-20 18:17 [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters Simon Quigley
2016-02-21 0:02 ` Joe Perches
@ 2016-02-21 0:56 ` Simon Quigley
2016-02-21 0:57 ` Simon Quigley
2016-02-21 2:06 ` [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters Simon Quigley
2016-02-22 11:57 ` David Sterba
3 siblings, 1 reply; 11+ messages in thread
From: Simon Quigley @ 2016-02-21 0:56 UTC (permalink / raw)
To: clm, joe; +Cc: linux-btrfs, linux-kernel, Simon Quigley
checkpatch.pl reported a warning of over 80 characters on line 1833
Adjusted to put &extref and &offset on a different line
Signed-off-by: Simon Quigley <tsimonq2@ubuntu.com>
---
fs/btrfs/backref.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index f6dac40..956fffa 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -1830,8 +1830,8 @@ static int iterate_inode_extrefs(u64 inum, struct btrfs_root *fs_root,
unsigned long ptr;
while (1) {
- ret = btrfs_find_one_extref(fs_root, inum, offset, path, &extref,
- &offset);
+ ret = btrfs_find_one_extref(fs_root, inum, offset, path,
+ &extref, &offset);
if (ret < 0)
break;
if (ret) {
--
2.7.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] btrfs: backref: Fixed checkpatch warning of over 80
2016-02-21 0:56 ` [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 Simon Quigley
@ 2016-02-21 0:57 ` Simon Quigley
2016-02-21 1:49 ` Joe Perches
0 siblings, 1 reply; 11+ messages in thread
From: Simon Quigley @ 2016-02-21 0:57 UTC (permalink / raw)
To: clm, joe; +Cc: linux-btrfs, linux-kernel
Better?
On 02/20/2016 06:56 PM, Simon Quigley wrote:
> checkpatch.pl reported a warning of over 80 characters on line 1833
>
> Adjusted to put &extref and &offset on a different line
>
> Signed-off-by: Simon Quigley <tsimonq2@ubuntu.com>
> ---
> fs/btrfs/backref.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
> index f6dac40..956fffa 100644
> --- a/fs/btrfs/backref.c
> +++ b/fs/btrfs/backref.c
> @@ -1830,8 +1830,8 @@ static int iterate_inode_extrefs(u64 inum, struct btrfs_root *fs_root,
> unsigned long ptr;
>
> while (1) {
> - ret = btrfs_find_one_extref(fs_root, inum, offset, path, &extref,
> - &offset);
> + ret = btrfs_find_one_extref(fs_root, inum, offset, path,
> + &extref, &offset);
> if (ret < 0)
> break;
> if (ret) {
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] btrfs: backref: Fixed checkpatch warning of over 80
2016-02-21 0:57 ` Simon Quigley
@ 2016-02-21 1:49 ` Joe Perches
0 siblings, 0 replies; 11+ messages in thread
From: Joe Perches @ 2016-02-21 1:49 UTC (permalink / raw)
To: Simon Quigley, clm; +Cc: linux-btrfs, linux-kernel
On Sat, 2016-02-20 at 18:57 -0600, Simon Quigley wrote:
> Better?
No, not really.
The alignment should be to the open parenthesis
as I wrote in the first reply.
> On 02/20/2016 06:56 PM, Simon Quigley wrote:
> > checkpatch.pl reported a warning of over 80 characters on line 1833
> >
> > Adjusted to put &extref and &offset on a different line
> >
> > Signed-off-by: Simon Quigley <tsimonq2@ubuntu.com>
> > ---
> > fs/btrfs/backref.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
> > index f6dac40..956fffa 100644
> > --- a/fs/btrfs/backref.c
> > +++ b/fs/btrfs/backref.c
> > @@ -1830,8 +1830,8 @@ static int iterate_inode_extrefs(u64 inum,
> > struct btrfs_root *fs_root,
> > unsigned long ptr;
> >
> > while (1) {
> > - ret = btrfs_find_one_extref(fs_root, inum, offset,
> > path, &extref,
> > - &offset);
> > + ret = btrfs_find_one_extref(fs_root, inum, offset,
> > path,
> > + &extref,
> > &offset);
> > if (ret < 0)
> > break;
> > if (ret) {
> >
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters
2016-02-20 18:17 [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters Simon Quigley
2016-02-21 0:02 ` Joe Perches
2016-02-21 0:56 ` [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 Simon Quigley
@ 2016-02-21 2:06 ` Simon Quigley
2016-02-21 2:08 ` Simon Quigley
2016-02-22 11:57 ` David Sterba
3 siblings, 1 reply; 11+ messages in thread
From: Simon Quigley @ 2016-02-21 2:06 UTC (permalink / raw)
To: joe, clm; +Cc: linux-btrfs, linux-kernel, Simon Quigley
checkpatch.pl reported a warning of over 80 characters on line 1833
Adjusted to put &extref and &offset on a different line
Signed-off-by: Simon Quigley <tsimonq2@ubuntu.com>
---
fs/btrfs/backref.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index f6dac40..81b0863 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -1830,8 +1830,8 @@ static int iterate_inode_extrefs(u64 inum, struct btrfs_root *fs_root,
unsigned long ptr;
while (1) {
- ret = btrfs_find_one_extref(fs_root, inum, offset, path, &extref,
- &offset);
+ ret = btrfs_find_one_extref(fs_root, inum, offset, path,
+ &extref, &offset);
if (ret < 0)
break;
if (ret) {
--
2.7.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters
2016-02-21 2:06 ` [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters Simon Quigley
@ 2016-02-21 2:08 ` Simon Quigley
0 siblings, 0 replies; 11+ messages in thread
From: Simon Quigley @ 2016-02-21 2:08 UTC (permalink / raw)
To: joe, clm; +Cc: linux-btrfs, linux-kernel
I apologize, I had my text editor set to a 4 space tab instead of 8 so I
couldn't see this clearly. That's fixed now, and it won't happen again.
Is this what you wanted? It seems to line up exactly like you proposed.
On 02/20/2016 08:06 PM, Simon Quigley wrote:
> checkpatch.pl reported a warning of over 80 characters on line 1833
>
> Adjusted to put &extref and &offset on a different line
>
> Signed-off-by: Simon Quigley <tsimonq2@ubuntu.com>
> ---
> fs/btrfs/backref.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
> index f6dac40..81b0863 100644
> --- a/fs/btrfs/backref.c
> +++ b/fs/btrfs/backref.c
> @@ -1830,8 +1830,8 @@ static int iterate_inode_extrefs(u64 inum, struct btrfs_root *fs_root,
> unsigned long ptr;
>
> while (1) {
> - ret = btrfs_find_one_extref(fs_root, inum, offset, path, &extref,
> - &offset);
> + ret = btrfs_find_one_extref(fs_root, inum, offset, path,
> + &extref, &offset);
> if (ret < 0)
> break;
> if (ret) {
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters
2016-02-20 18:17 [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters Simon Quigley
` (2 preceding siblings ...)
2016-02-21 2:06 ` [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters Simon Quigley
@ 2016-02-22 11:57 ` David Sterba
2016-02-22 12:10 ` Simon Quigley
3 siblings, 1 reply; 11+ messages in thread
From: David Sterba @ 2016-02-22 11:57 UTC (permalink / raw)
To: Simon Quigley; +Cc: clm, linux-btrfs, linux-kernel
On Sat, Feb 20, 2016 at 12:17:38PM -0600, Simon Quigley wrote:
> checkpatch.pl reported a warning of over 80 characters on line 1833
Please read the answers from Filipe or me
http://article.gmane.org/gmane.comp.file-systems.btrfs/53421
http://article.gmane.org/gmane.comp.file-systems.btrfs/53422
in short, whitespace-only changes do not help too much.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters
2016-02-22 11:57 ` David Sterba
@ 2016-02-22 12:10 ` Simon Quigley
2016-02-22 12:33 ` David Sterba
0 siblings, 1 reply; 11+ messages in thread
From: Simon Quigley @ 2016-02-22 12:10 UTC (permalink / raw)
To: dsterba; +Cc: clm, linux-btrfs, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 344 bytes --]
> in short, whitespace-only changes do not help too much.
But they are encouraged for people who would like to get started with kernel programming, Linus
himself says so. In the future I plan on giving more, but I wanted to get familiarized with the
process. So I still think this should be accepted although it's just a whitespace change.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters
2016-02-22 12:10 ` Simon Quigley
@ 2016-02-22 12:33 ` David Sterba
2016-02-22 12:36 ` Simon Quigley
0 siblings, 1 reply; 11+ messages in thread
From: David Sterba @ 2016-02-22 12:33 UTC (permalink / raw)
To: Simon Quigley; +Cc: dsterba, clm, linux-btrfs, linux-kernel
On Mon, Feb 22, 2016 at 06:10:56AM -0600, Simon Quigley wrote:
> > in short, whitespace-only changes do not help too much.
>
> But they are encouraged for people who would like to get started with kernel programming, Linus
> himself says so. In the future I plan on giving more, but I wanted to get familiarized with the
> process. So I still think this should be accepted although it's just a whitespace change.
But you are getting familiarized, you sent a patch, got feedback, defend
your patches. That's a great start, but it does not mean that the
patches end up merged. The decision is up to the maintainer(s) of the
subsystem.
Nobody will bite your head off if you do some trivial formal mistakes in
your first patch submissions. The mistakes will be pointed out, you will
be asked to resend. Sometimes, when the mistakes or formalities are not
worth the email roundtrip, the maintainers fix it at commit time.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters
2016-02-22 12:33 ` David Sterba
@ 2016-02-22 12:36 ` Simon Quigley
0 siblings, 0 replies; 11+ messages in thread
From: Simon Quigley @ 2016-02-22 12:36 UTC (permalink / raw)
To: dsterba; +Cc: clm, linux-btrfs, linux-kernel
> But you are getting familiarized, you sent a patch, got feedback, defend
> your patches. That's a great start, but it does not mean that the
> patches end up merged. The decision is up to the maintainer(s) of the
> subsystem.
>
> Nobody will bite your head off if you do some trivial formal mistakes in
> your first patch submissions. The mistakes will be pointed out, you will
> be asked to resend. Sometimes, when the mistakes or formalities are not
> worth the email roundtrip, the maintainers fix it at commit time.
So let's wait for a response from Chris. :)
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2016-02-22 12:40 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-20 18:17 [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters Simon Quigley
2016-02-21 0:02 ` Joe Perches
2016-02-21 0:56 ` [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 Simon Quigley
2016-02-21 0:57 ` Simon Quigley
2016-02-21 1:49 ` Joe Perches
2016-02-21 2:06 ` [PATCH] btrfs: backref: Fixed checkpatch warning of over 80 characters Simon Quigley
2016-02-21 2:08 ` Simon Quigley
2016-02-22 11:57 ` David Sterba
2016-02-22 12:10 ` Simon Quigley
2016-02-22 12:33 ` David Sterba
2016-02-22 12:36 ` Simon Quigley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).