[PATCH 07/33] fix unused parameter warning in print_simple_table()
From: Maciej Żenczykowski <hidden>
Date: 2019-10-17 18:21:50
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Maciej Żenczykowski <hidden>
Date: 2019-10-17 18:21:50
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Maciej Żenczykowski <redacted> This fixes: external/ethtool/sfc.c:3811:29: error: unused parameter 'revision' [-Werror,-Wunused-parameter] print_simple_table(unsigned revision, const struct efx_nic_reg_table *table, Signed-off-by: Maciej Żenczykowski <redacted> Change-Id: I253158a534c295b13e13dd02461952927cf8814c --- sfc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sfc.c b/sfc.c
index 69c61e2..f56243d 100644
--- a/sfc.c
+++ b/sfc.c@@ -3808,8 +3808,7 @@ print_single_register(unsigned revision, const struct efx_nic_reg *reg, } static const void * -print_simple_table(unsigned revision, const struct efx_nic_reg_table *table, - const void *buf) +print_simple_table(const struct efx_nic_reg_table *table, const void *buf) { const struct efx_nic_reg_field *field = &table->fields[0]; size_t value_width = (field->width + 3) >> 2;
@@ -3918,7 +3917,7 @@ sfc_dump_regs(struct ethtool_drvinfo *info maybe_unused, struct ethtool_regs *re revision <= table->max_revision) { printf("\n%s:\n", table->name); if (table->field_count == 1) - buf = print_simple_table(revision, table, buf); + buf = print_simple_table(table, buf); else buf = print_complex_table(revision, table, buf); }
--
2.23.0.866.gb869b98d4c-goog