Skip to contentSkip to conversation

net/mqprio: Fix build error due to non-exported symbol

PATCH New Alexander Duyck 1 participant 1 message Oct 17, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mqprio: Fix build error due to non-exported symbol

From: Alexander Duyck <[email protected]>

I overlooked the fact that netdev_txq_to_tc was not an exported symbol. To fix that I am providing the export for the symbol in order to avoid breaking builds where mqprio is not built into the kernel.

---
 net/core/dev.c |    1 +
 1 file changed, 1 insertion(+)
net/core/dev.c +1 -0
index fb766d906148..0aa255f3a866 100644
@@ -2008,6 +2008,7 @@ int netdev_txq_to_tc(struct net_device *dev, unsigned int txq)
 
 	return 0;
 }
+EXPORT_SYMBOL(netdev_txq_to_tc);
 
 #ifdef CONFIG_XPS
 static DEFINE_MUTEX(xps_map_mutex);