The stats64_fn_wrap() function was changed to be not-static so it can
be used by usbnet. This causes problems in files that don't export
it. Work around that byt just pre-declaring it before the actual
definition.
Fixes: 5a00d8489c7 ("patches: adapt the stat64 usage for usbnet")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
@@
void stats64_fn(...) {...}
+#if LINUX_VERSION_IS_LESS(4,11,0)
++/* Just declare it here to keep sparse happy */
++struct rtnl_link_stats64 *
++stats64_fn_wrap(struct net_device *dev,
++ struct rtnl_link_stats64 *stats);
+struct rtnl_link_stats64 *
+stats64_fn_wrap(struct net_device *dev,
+ struct rtnl_link_stats64 *stats)