summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-01-27 14:00:12 +0000
committerRussell King <rmk+kernel@armlinux.org.uk>2021-05-28 18:38:25 +0100
commite9c9af6547fe57b2656d83e2c1268915e8860c4a (patch)
tree2fdd7785086055c21d7831c2cf7319a9fe0de427
parent004350492fb197d7fa35a715814f7d1ebd2fdf9d (diff)
net: dsa: mv88e6xxx: debugfs hacks to fix the compile
This is the problem with out-of-tree maintained patches; they break, sometimes requiring substantial rework. It's all very well promising to publish new versions as that happens, but it causes pain when they aren't published in a timely manner. Hence this hack. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c b/drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c
index 931e769fe9ce..4005a4760884 100644
--- a/drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c
+++ b/drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c
@@ -668,6 +668,7 @@ static const struct file_operations mv88e6xxx_vlan_table_fops = {
static int mv88e6xxx_pvt_show(struct seq_file *s, void *p)
{
+#if 0
struct mv88e6xxx_chip *chip = s->private;
struct dsa_switch_tree *dst = chip->ds->dst;
int port, src_dev, src_port;
@@ -716,8 +717,10 @@ static int mv88e6xxx_pvt_show(struct seq_file *s, void *p)
unlock:
mutex_unlock(&chip->reg_lock);
-
return err;
+#else
+ return 0;
+#endif
}
static ssize_t mv88e6xxx_pvt_write(struct file *file, const char __user *buf,