diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-01-27 14:00:12 +0000 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2025-04-04 14:58:49 +0100 |
commit | 71ba5b88dfdb405a2773f0024dc454c17075151b (patch) | |
tree | db1b9932d5b0c800850cb4e2c7aaf1d4e24e1a23 | |
parent | 5888bdf322812df8d6e90beb18254691c1081904 (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.c | 5 |
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 9692724c05b1..b5cfeaf71002 100644 --- a/drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c +++ b/drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c @@ -660,6 +660,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; @@ -708,8 +709,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, |