Commit c9ed2a49 authored by Vikram Narayanan's avatar Vikram Narayanan
Browse files

lcd/ixgbe: Make ASSERT_RTNL happy inside LCDs

Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <>
parent fc6df5b0
......@@ -24,7 +24,11 @@ int call_netdevice_notifiers(unsigned long val, struct net_device *dev)
bool cancel_work_sync(struct work_struct *work) { return true; }
int rtnl_is_locked(void) { return 0; }
/* ASSERT_RTNL macro checks if rtnl_lock is held by the caller
* during certain API calls. Inside LCDs we don't hold this lock,
* just make the assert macro happy by faking that we did.
int rtnl_is_locked(void) { return 1; }
void synchronize_irq(unsigned int irq) { }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment