wifi: mt76: fix compile error without CONFIG_PAGE_POOL_STATS

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2023-01-27 11:31:03 +01:00
parent 1af4a911eb
commit e8c10835cf
+2
View File
@@ -1729,6 +1729,7 @@ EXPORT_SYMBOL_GPL(mt76_ethtool_worker);
void mt76_ethtool_page_pool_stats(struct mt76_dev *dev, u64 *data, int *index)
{
#ifdef CONFIG_PAGE_POOL_STATS
struct page_pool_stats stats = {};
int i;
@@ -1737,6 +1738,7 @@ void mt76_ethtool_page_pool_stats(struct mt76_dev *dev, u64 *data, int *index)
page_pool_ethtool_stats_get(data, &stats);
*index += page_pool_ethtool_stats_get_count();
#endif
}
EXPORT_SYMBOL_GPL(mt76_ethtool_page_pool_stats);