projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36592d6
)
fm10k: warn if the stat size is unknown
author
Jacob Keller
<
[email protected]
>
Thu, 12 Apr 2018 18:15:58 +0000
(11:15 -0700)
committer
Jeff Kirsher
<
[email protected]
>
Wed, 9 May 2018 16:02:44 +0000
(09:02 -0700)
Signed-off-by: Jacob Keller <
[email protected]
>
Tested-by: Krishneil Singh <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
index 09fa1a30ee3e8666886871190424bea9ee383a95..7657daa27298dac290859c105640873e4b5f08d7 100644
(file)
--- a/
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
+++ b/
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c
@@
-248,6
+248,8
@@
static void __fm10k_add_ethtool_stats(u64 **data, void *pointer,
*((*data)++) = *(u8 *)p;
break;
default:
+ WARN_ONCE(1, "unexpected stat size for %s",
+ stats[i].stat_string);
*((*data)++) = 0;
}
}