netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Jakub Kicinski <jakub.kicinski@netronome.com>
Cc: netdev@vger.kernel.org, Nicolai Stange <nicstange@gmail.com>,
	Christian Lamparter <chunkeey@gmail.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net-next resend 10/13] debugfs: constify argument to debugfs_real_fops()
Date: Thu, 10 Nov 2016 15:25:59 +0100	[thread overview]
Message-ID: <20161110142559.GA15902@kroah.com> (raw)
In-Reply-To: <1478193129-23476-11-git-send-email-jakub.kicinski@netronome.com>

On Thu, Nov 03, 2016 at 05:12:06PM +0000, Jakub Kicinski wrote:
> seq_file users can only access const version of file pointer,
> because the ->file member of struct seq_operations is marked
> as such.  Make parameter to debugfs_real_fops() const.
> 
> CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> CC: Nicolai Stange <nicstange@gmail.com>
> CC: Christian Lamparter <chunkeey@gmail.com>
> CC: LKML <linux-kernel@vger.kernel.org>
> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
> ---
>  include/linux/debugfs.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
> index 4d3f0d1aec73..bf1907d96097 100644
> --- a/include/linux/debugfs.h
> +++ b/include/linux/debugfs.h
> @@ -52,7 +52,8 @@ 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(struct file *filp)
> +static inline const struct file_operations *
> +debugfs_real_fops(const struct file *filp)

Ick.  Tell me that looks better :(

Please just don't wrap things like that, just make it go longer than 80
columns, I can handle the complaints...

thanks,

greg k-h

  reply	other threads:[~2016-11-10 14:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-03 17:11 [PATCH net-next resend 00/13] ring reconfiguration and XDP support Jakub Kicinski
2016-11-03 17:11 ` [PATCH net-next resend 01/13] nfp: add support for ethtool .get_channels Jakub Kicinski
2016-11-03 17:11 ` [PATCH net-next resend 02/13] nfp: centralize runtime reconfiguration logic Jakub Kicinski
2016-11-03 17:11 ` [PATCH net-next resend 03/13] nfp: rename ring allocation helpers Jakub Kicinski
2016-11-03 17:12 ` [PATCH net-next resend 04/13] nfp: reuse ring helpers on .ndo_open() path Jakub Kicinski
2016-11-03 17:12 ` [PATCH net-next resend 05/13] nfp: loosen relation between rings and IRQs vectors Jakub Kicinski
2016-11-03 17:12 ` [PATCH net-next resend 06/13] nfp: add helper to reassign rings to IRQ vectors Jakub Kicinski
2016-11-03 17:12 ` [PATCH net-next resend 07/13] nfp: move RSS indirection table init into a separate function Jakub Kicinski
2016-11-03 17:12 ` [PATCH net-next resend 08/13] nfp: add support for ethtool .set_channels Jakub Kicinski
2016-11-03 17:12 ` [PATCH net-next resend 09/13] nfp: reorganize nfp_net_rx() to get packet offsets early Jakub Kicinski
2016-11-03 17:12 ` [PATCH net-next resend 10/13] debugfs: constify argument to debugfs_real_fops() Jakub Kicinski
2016-11-10 14:25   ` Greg Kroah-Hartman [this message]
2016-11-10 15:42     ` Jakub Kicinski
2016-11-03 17:12 ` [PATCH net-next resend 11/13] nfp: add XDP support in the driver Jakub Kicinski
2016-11-03 17:12 ` [PATCH net-next resend 12/13] nfp: remove unnecessary parameters from nfp_net_bpf_offload() Jakub Kicinski
2016-11-03 17:12 ` [PATCH net-next resend 13/13] nfp: add support for offload of XDP programs Jakub Kicinski
2016-11-04 18:56 ` [PATCH net-next resend 00/13] ring reconfiguration and XDP support David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161110142559.GA15902@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=chunkeey@gmail.com \
    --cc=jakub.kicinski@netronome.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nicstange@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).