* [Patch] Fixed-fs-file_table_c-Missing-blank-line-warnings-an.patch @ 2024-07-27 7:21 mohitpawar 2024-07-27 7:21 ` [PATCH] Fixed: fs: file_table_c: Missing blank line warnings and struct declaration improved mohitpawar 0 siblings, 1 reply; 5+ messages in thread From: mohitpawar @ 2024-07-27 7:21 UTC (permalink / raw) To: brauner; +Cc: jack, linux-fsdevel, linux-kernel Thank You Jan and Christain for your support!! I have added the Signed-off-by tag and updated the struct file declaration. Regards, Mohit ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] Fixed: fs: file_table_c: Missing blank line warnings and struct declaration improved 2024-07-27 7:21 [Patch] Fixed-fs-file_table_c-Missing-blank-line-warnings-an.patch mohitpawar @ 2024-07-27 7:21 ` mohitpawar 2024-07-29 10:57 ` Christian Brauner 2024-07-29 11:49 ` Jan Kara 0 siblings, 2 replies; 5+ messages in thread From: mohitpawar @ 2024-07-27 7:21 UTC (permalink / raw) To: brauner; +Cc: jack, linux-fsdevel, linux-kernel, Mohit0404 From: Mohit0404 <mohitpawar@mitaoe.ac.in> Fixed- WARNING: Missing a blank line after declarations WARNING: Missing a blank line after declarations Declaration format: improved struct file declaration format Signed-off-by: Mohit0404 <mohitpawar@mitaoe.ac.in> --- fs/file_table.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/file_table.c b/fs/file_table.c index ca7843dde56d..306d57623447 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -136,6 +136,7 @@ static int __init init_fs_stat_sysctls(void) register_sysctl_init("fs", fs_stat_sysctls); if (IS_ENABLED(CONFIG_BINFMT_MISC)) { struct ctl_table_header *hdr; + hdr = register_sysctl_mount_point("fs/binfmt_misc"); kmemleak_not_leak(hdr); } @@ -383,7 +384,10 @@ EXPORT_SYMBOL_GPL(alloc_file_pseudo_noaccount); struct file *alloc_file_clone(struct file *base, int flags, const struct file_operations *fops) { - struct file *f = alloc_file(&base->f_path, flags, fops); + struct file *f; + + f = alloc_file(&base->f_path, flags, fops); + if (!IS_ERR(f)) { path_get(&f->f_path); f->f_mapping = base->f_mapping; -- 2.34.1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fixed: fs: file_table_c: Missing blank line warnings and struct declaration improved 2024-07-27 7:21 ` [PATCH] Fixed: fs: file_table_c: Missing blank line warnings and struct declaration improved mohitpawar @ 2024-07-29 10:57 ` Christian Brauner 2024-07-29 11:49 ` Jan Kara 1 sibling, 0 replies; 5+ messages in thread From: Christian Brauner @ 2024-07-29 10:57 UTC (permalink / raw) To: mohitpawar; +Cc: Christian Brauner, jack, linux-fsdevel, linux-kernel On Sat, 27 Jul 2024 12:51:34 +0530, mohitpawar@mitaoe.ac.in wrote: > Fixed- > WARNING: Missing a blank line after declarations > WARNING: Missing a blank line after declarations > Declaration format: improved struct file declaration format > > Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.misc [1/1] Fixed: fs: file_table_c: Missing blank line warnings and struct declaration improved https://git.kernel.org/vfs/vfs/c/0268eb6ea276 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fixed: fs: file_table_c: Missing blank line warnings and struct declaration improved 2024-07-27 7:21 ` [PATCH] Fixed: fs: file_table_c: Missing blank line warnings and struct declaration improved mohitpawar 2024-07-29 10:57 ` Christian Brauner @ 2024-07-29 11:49 ` Jan Kara 2024-07-29 12:18 ` Christian Brauner 1 sibling, 1 reply; 5+ messages in thread From: Jan Kara @ 2024-07-29 11:49 UTC (permalink / raw) To: mohitpawar; +Cc: brauner, jack, linux-fsdevel, linux-kernel On Sat 27-07-24 12:51:34, mohitpawar@mitaoe.ac.in wrote: > From: Mohit0404 <mohitpawar@mitaoe.ac.in> > > Fixed- > WARNING: Missing a blank line after declarations > WARNING: Missing a blank line after declarations > Declaration format: improved struct file declaration format > > Signed-off-by: Mohit0404 <mohitpawar@mitaoe.ac.in> > --- > fs/file_table.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/fs/file_table.c b/fs/file_table.c > index ca7843dde56d..306d57623447 100644 > --- a/fs/file_table.c > +++ b/fs/file_table.c > @@ -136,6 +136,7 @@ static int __init init_fs_stat_sysctls(void) > register_sysctl_init("fs", fs_stat_sysctls); > if (IS_ENABLED(CONFIG_BINFMT_MISC)) { > struct ctl_table_header *hdr; > + > hdr = register_sysctl_mount_point("fs/binfmt_misc"); > kmemleak_not_leak(hdr); > } > @@ -383,7 +384,10 @@ EXPORT_SYMBOL_GPL(alloc_file_pseudo_noaccount); > struct file *alloc_file_clone(struct file *base, int flags, > const struct file_operations *fops) > { > - struct file *f = alloc_file(&base->f_path, flags, fops); > + struct file *f; > + > + f = alloc_file(&base->f_path, flags, fops); > + When you separated the function call from the declaration of 'f' this empty line is superfluous. Maybe Christian can fix it up in his tree (or maybe he already did). Otherwise the patch looks good. Feel free to add: Reviewed-by: Jan Kara <jack@suse.cz> Honza -- Jan Kara <jack@suse.com> SUSE Labs, CR ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fixed: fs: file_table_c: Missing blank line warnings and struct declaration improved 2024-07-29 11:49 ` Jan Kara @ 2024-07-29 12:18 ` Christian Brauner 0 siblings, 0 replies; 5+ messages in thread From: Christian Brauner @ 2024-07-29 12:18 UTC (permalink / raw) To: Jan Kara; +Cc: mohitpawar, linux-fsdevel, linux-kernel On Mon, Jul 29, 2024 at 01:49:59PM GMT, Jan Kara wrote: > On Sat 27-07-24 12:51:34, mohitpawar@mitaoe.ac.in wrote: > > From: Mohit0404 <mohitpawar@mitaoe.ac.in> > > > > Fixed- > > WARNING: Missing a blank line after declarations > > WARNING: Missing a blank line after declarations > > Declaration format: improved struct file declaration format > > > > Signed-off-by: Mohit0404 <mohitpawar@mitaoe.ac.in> > > --- > > fs/file_table.c | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/fs/file_table.c b/fs/file_table.c > > index ca7843dde56d..306d57623447 100644 > > --- a/fs/file_table.c > > +++ b/fs/file_table.c > > @@ -136,6 +136,7 @@ static int __init init_fs_stat_sysctls(void) > > register_sysctl_init("fs", fs_stat_sysctls); > > if (IS_ENABLED(CONFIG_BINFMT_MISC)) { > > struct ctl_table_header *hdr; > > + > > hdr = register_sysctl_mount_point("fs/binfmt_misc"); > > kmemleak_not_leak(hdr); > > } > > @@ -383,7 +384,10 @@ EXPORT_SYMBOL_GPL(alloc_file_pseudo_noaccount); > > struct file *alloc_file_clone(struct file *base, int flags, > > const struct file_operations *fops) > > { > > - struct file *f = alloc_file(&base->f_path, flags, fops); > > + struct file *f; > > + > > + f = alloc_file(&base->f_path, flags, fops); > > + > > When you separated the function call from the declaration of 'f' this empty > line is superfluous. Maybe Christian can fix it up in his tree (or maybe he > already did). Otherwise the patch looks good. Feel free to add: I already did. :) ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-07-29 12:18 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-07-27 7:21 [Patch] Fixed-fs-file_table_c-Missing-blank-line-warnings-an.patch mohitpawar 2024-07-27 7:21 ` [PATCH] Fixed: fs: file_table_c: Missing blank line warnings and struct declaration improved mohitpawar 2024-07-29 10:57 ` Christian Brauner 2024-07-29 11:49 ` Jan Kara 2024-07-29 12:18 ` Christian Brauner
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®