netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] debugfs: improve formatting of debugfs_real_fops()
@ 2016-11-10 17:23 Jakub Kicinski
  2016-11-10 17:51 ` Greg Kroah-Hartman
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jakub Kicinski @ 2016-11-10 17:23 UTC (permalink / raw)
  To: netdev
  Cc: Greg Kroah-Hartman, Nicolai Stange, Christian Lamparter,
	Jakub Kicinski

Type of debugfs_real_fops() is longer than parameters and
the name, so there is no way to break the declaration nicely.
We have to go over 80 characters.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
---
 include/linux/debugfs.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index bf1907d96097..374c6c67e6c0 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -52,8 +52,7 @@ struct debugfs_regset32 {
  * Must only be called under the protection established by
  * debugfs_use_file_start().
  */
-static inline const struct file_operations *
-debugfs_real_fops(const struct file *filp)
+static inline const struct file_operations *debugfs_real_fops(const struct file *filp)
 	__must_hold(&debugfs_srcu)
 {
 	/*
-- 
1.9.1

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

* Re: [PATCH] debugfs: improve formatting of debugfs_real_fops()
  2016-11-10 17:23 [PATCH] debugfs: improve formatting of debugfs_real_fops() Jakub Kicinski
@ 2016-11-10 17:51 ` Greg Kroah-Hartman
  2016-11-16  0:47 ` [PATCH net-next] " Jakub Kicinski
  2016-11-29 19:58 ` [PATCH] " Greg Kroah-Hartman
  2 siblings, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2016-11-10 17:51 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev, Nicolai Stange, Christian Lamparter

On Thu, Nov 10, 2016 at 05:23:49PM +0000, Jakub Kicinski wrote:
> Type of debugfs_real_fops() is longer than parameters and
> the name, so there is no way to break the declaration nicely.
> We have to go over 80 characters.
> 
> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
> ---
>  include/linux/debugfs.h | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

* [PATCH net-next] debugfs: improve formatting of debugfs_real_fops()
  2016-11-10 17:23 [PATCH] debugfs: improve formatting of debugfs_real_fops() Jakub Kicinski
  2016-11-10 17:51 ` Greg Kroah-Hartman
@ 2016-11-16  0:47 ` Jakub Kicinski
  2016-11-29 19:58 ` [PATCH] " Greg Kroah-Hartman
  2 siblings, 0 replies; 6+ messages in thread
From: Jakub Kicinski @ 2016-11-16  0:47 UTC (permalink / raw)
  To: netdev; +Cc: Jakub Kicinski

Type of debugfs_real_fops() is longer than parameters and
the name, so there is no way to break the declaration nicely.
We have to go over 80 characters.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
Sorry, I forgot to include the target tree in the tag, resending.
This is fixup for a patch which is sitting in net-next.

 include/linux/debugfs.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index bf1907d96097..374c6c67e6c0 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -52,8 +52,7 @@ struct debugfs_regset32 {
  * Must only be called under the protection established by
  * debugfs_use_file_start().
  */
-static inline const struct file_operations *
-debugfs_real_fops(const struct file *filp)
+static inline const struct file_operations *debugfs_real_fops(const struct file *filp)
 	__must_hold(&debugfs_srcu)
 {
 	/*
-- 
1.9.1

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

* Re: [PATCH] debugfs: improve formatting of debugfs_real_fops()
  2016-11-10 17:23 [PATCH] debugfs: improve formatting of debugfs_real_fops() Jakub Kicinski
  2016-11-10 17:51 ` Greg Kroah-Hartman
  2016-11-16  0:47 ` [PATCH net-next] " Jakub Kicinski
@ 2016-11-29 19:58 ` Greg Kroah-Hartman
  2016-11-29 20:11   ` Jakub Kicinski
  2 siblings, 1 reply; 6+ messages in thread
From: Greg Kroah-Hartman @ 2016-11-29 19:58 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev, Nicolai Stange, Christian Lamparter

On Thu, Nov 10, 2016 at 05:23:49PM +0000, Jakub Kicinski wrote:
> Type of debugfs_real_fops() is longer than parameters and
> the name, so there is no way to break the declaration nicely.
> We have to go over 80 characters.
> 
> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
> ---
>  include/linux/debugfs.h | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Doesn't apply to my tree, what did you make this against?

thanks,

greg k-h

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

* Re: [PATCH] debugfs: improve formatting of debugfs_real_fops()
  2016-11-29 19:58 ` [PATCH] " Greg Kroah-Hartman
@ 2016-11-29 20:11   ` Jakub Kicinski
  2016-11-29 20:27     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 6+ messages in thread
From: Jakub Kicinski @ 2016-11-29 20:11 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: netdev, Nicolai Stange, Christian Lamparter

On Tue, Nov 29, 2016 at 11:58 AM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Thu, Nov 10, 2016 at 05:23:49PM +0000, Jakub Kicinski wrote:
>> Type of debugfs_real_fops() is longer than parameters and
>> the name, so there is no way to break the declaration nicely.
>> We have to go over 80 characters.
>>
>> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
>> ---
>>  include/linux/debugfs.h | 3 +--
>>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> Doesn't apply to my tree, what did you make this against?

net-next, sorry, it

Fixes: 68f929ff2654 ("debugfs: constify argument to debugfs_real_fops()")

I think that change still haven't propagated out of Dave's tree.  Dave
didn't take my fix up patch, though, so my plan was to resend it to
you during the merge window?  Would that make sense?

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

* Re: [PATCH] debugfs: improve formatting of debugfs_real_fops()
  2016-11-29 20:11   ` Jakub Kicinski
@ 2016-11-29 20:27     ` Greg Kroah-Hartman
  0 siblings, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2016-11-29 20:27 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: netdev, Nicolai Stange, Christian Lamparter

On Tue, Nov 29, 2016 at 12:11:37PM -0800, Jakub Kicinski wrote:
> On Tue, Nov 29, 2016 at 11:58 AM, Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> > On Thu, Nov 10, 2016 at 05:23:49PM +0000, Jakub Kicinski wrote:
> >> Type of debugfs_real_fops() is longer than parameters and
> >> the name, so there is no way to break the declaration nicely.
> >> We have to go over 80 characters.
> >>
> >> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
> >> ---
> >>  include/linux/debugfs.h | 3 +--
> >>  1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > Doesn't apply to my tree, what did you make this against?
> 
> net-next, sorry, it
> 
> Fixes: 68f929ff2654 ("debugfs: constify argument to debugfs_real_fops()")
> 
> I think that change still haven't propagated out of Dave's tree.  Dave
> didn't take my fix up patch, though, so my plan was to resend it to
> you during the merge window?  Would that make sense?

Sure, that will work.

thanks,

greg k-h

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

end of thread, other threads:[~2016-11-29 20:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10 17:23 [PATCH] debugfs: improve formatting of debugfs_real_fops() Jakub Kicinski
2016-11-10 17:51 ` Greg Kroah-Hartman
2016-11-16  0:47 ` [PATCH net-next] " Jakub Kicinski
2016-11-29 19:58 ` [PATCH] " Greg Kroah-Hartman
2016-11-29 20:11   ` Jakub Kicinski
2016-11-29 20:27     ` Greg Kroah-Hartman

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).