public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Nathan Huckleberry <nhuck@google•com>
To: davem@davemloft•net, maxime.chevallier@bootlin•com
Cc: netdev@vger•kernel.org, linux-kernel@vger•kernel.org,
	Nathan Huckleberry <nhuck@google•com>,
	clang-built-linux@googlegroups•com
Subject: [PATCH v2] net: mvpp2: debugfs: Add pmap to fs dump
Date: Wed, 19 Jun 2019 11:17:15 -0700	[thread overview]
Message-ID: <20190619181715.253903-1-nhuck@google.com> (raw)
In-Reply-To: <20190619084921.7e1310e0@bootlin.com>

There was an unused variable 'mvpp2_dbgfs_prs_pmap_fops'
Added a usage consistent with other fops to dump pmap
to userspace.

Cc: clang-built-linux@googlegroups•com
Link: https://github.com/ClangBuiltLinux/linux/issues/529
Signed-off-by: Nathan Huckleberry <nhuck@google•com>
---
Changes from v1 -> v2
* Fix typo
* Change commit prefix to debugfs
 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
index 0ee39ea47b6b..274fb07362cb 100644
--- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
+++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
@@ -566,6 +566,9 @@ static int mvpp2_dbgfs_prs_entry_init(struct dentry *parent,
 	debugfs_create_file("hits", 0444, prs_entry_dir, entry,
 			    &mvpp2_dbgfs_prs_hits_fops);
 
+	debugfs_create_file("pmap", 0444, prs_entry_dir, entry,
+			     &mvpp2_dbgfs_prs_pmap_fops);
+
 	return 0;
 }
 
-- 
2.22.0.410.gd8fdbe21b5-goog


  reply	other threads:[~2019-06-19 18:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-13 17:53 Cleanup of -Wunused-const-variable in drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c Nathan Huckleberry
2019-06-18  6:39 ` Maxime Chevallier
2019-06-18 16:09   ` [PATCH] net: mvpp2: cls: Add pmap to fs dump Nathan Huckleberry
2019-06-18 19:00     ` Nick Desaulniers
2019-06-19  2:33     ` David Miller
2019-06-19  6:49     ` Maxime Chevallier
2019-06-19 18:17       ` Nathan Huckleberry [this message]
2019-06-19 20:46         ` [PATCH v2] net: mvpp2: debugfs: " Nick Desaulniers
2019-06-19 21:20         ` 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=20190619181715.253903-1-nhuck@google.com \
    --to=nhuck@google$(echo .)com \
    --cc=clang-built-linux@googlegroups$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=maxime.chevallier@bootlin$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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