2019-03-18 15:34:55

by Bharath Vedartham

[permalink] [raw]
Subject: [PATCH v3] staging: erofs: Add whitespace after declaration

Add whitespace after declaration. Fixed the checkpatch.pl warning.

---
changes since v2
- mutt gave me a lot of problems. Hence 3 patches for a really
small problem.
- Fixed the extra missing line.

Signed-off-by: Bharath Vedartham <[email protected]>
---
drivers/staging/erofs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/erofs/inode.c b/drivers/staging/erofs/inode.c
index 924b8df..e09d29f 100644
--- a/drivers/staging/erofs/inode.c
+++ b/drivers/staging/erofs/inode.c
@@ -270,8 +270,8 @@ struct inode *erofs_iget(struct super_block *sb,
if (inode->i_state & I_NEW) {
int err;
struct erofs_vnode *vi = EROFS_V(inode);
- vi->nid = nid;

+ vi->nid = nid;
err = fill_inode(inode, isdir);
if (likely(!err))
unlock_new_inode(inode);
--
2.7.4



2019-03-18 15:39:30

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH v3] staging: erofs: Add whitespace after declaration

On Mon, Mar 18, 2019 at 09:02:24PM +0530, Bharath Vedartham wrote:
> Add whitespace after declaration. Fixed the checkpatch.pl warning.
>
> ---

No signed-off-by?

> changes since v2
> - mutt gave me a lot of problems. Hence 3 patches for a really
> small problem.
> - Fixed the extra missing line.
>
> Signed-off-by: Bharath Vedartham <[email protected]>

It needs to be above the --- line, otherwise it will be stripped off
when applied.

v4 please?

thanks,

greg k-h

2019-03-18 15:42:19

by Gao Xiang

[permalink] [raw]
Subject: Re: [PATCH v3] staging: erofs: Add whitespace after declaration



On 2019/3/18 23:38, Greg KH wrote:
> On Mon, Mar 18, 2019 at 09:02:24PM +0530, Bharath Vedartham wrote:
>> Add whitespace after declaration. Fixed the checkpatch.pl warning.
>>
>> ---
>
> No signed-off-by?
>
>> changes since v2
>> - mutt gave me a lot of problems. Hence 3 patches for a really
>> small problem.
>> - Fixed the extra missing line.
>>
>> Signed-off-by: Bharath Vedartham <[email protected]>
>
> It needs to be above the --- line, otherwise it will be stripped off
> when applied.
>
> v4 please?

Actually a duplicate commit, see:
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/commit/?h=staging-next&id=8af36478f9516d51fcfedf9b9ed8905a1c00d278

several people submit patches on this line in erofs_iget()....

Thanks,
Gao Xiang

>
> thanks,
>
> greg k-h
>

2019-03-18 16:02:43

by Bharath Vedartham

[permalink] [raw]
Subject: Re: [PATCH v3] staging: erofs: Add whitespace after declaration

On Mon, Mar 18, 2019 at 11:40:35PM +0800, Gao Xiang wrote:
>
>
> On 2019/3/18 23:38, Greg KH wrote:
> > On Mon, Mar 18, 2019 at 09:02:24PM +0530, Bharath Vedartham wrote:
> >> Add whitespace after declaration. Fixed the checkpatch.pl warning.
> >>
> >> ---
> >
> > No signed-off-by?
> >
> >> changes since v2
> >> - mutt gave me a lot of problems. Hence 3 patches for a really
> >> small problem.
> >> - Fixed the extra missing line.
> >>
> >> Signed-off-by: Bharath Vedartham <[email protected]>
> >
> > It needs to be above the --- line, otherwise it will be stripped off
> > when applied.
> >
> > v4 please?
Missed that! Really sorry!
>
> Actually a duplicate commit, see:
> https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/commit/?h=staging-next&id=8af36478f9516d51fcfedf9b9ed8905a1c00d278
>
> several people submit patches on this line in erofs_iget()....
>
Oh alright then! I ll stop this patch here! Thank for your time! I have
noticed that there are a few functions and structs local to a file in erofs without static
declaration. I ll send a patch soon.
> Thanks,
> Gao Xiang
>
> >
> > thanks,
> >
> > greg k-h
> >