Commit 13ea453a authored by Vikram Narayanan's avatar Vikram Narayanan

lcd/config: Add stubs to pre/post hook for ixgbe

Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <vikram186@gmail.com>
parent a1550690
......@@ -306,3 +306,31 @@ static inline void force_up_write(void *x)
* the %gs segment register. */
#undef get_current
#define get_current() (current_task)
/* XXX: For IXGBE device layer
* Polluting this file is inappropriate. Ideally we should have a
* common {pre,post}_hook and a project specific one
*/
#undef dev_warn
#define dev_warn(dev, fmt, ...) do { } while(0)
#undef dev_err
#define dev_err(dev, fmt, ...) do { } while(0)
#undef dev_info
#define dev_info(dev, fmt, ...) do { } while(0)
/* net layer locks
*/
#define rtnl_lock() do { } while(0)
#define rtnl_unlock() do { } while(0)
#define rtnl_is_locked() (0)
#define netdev_warn(dev, msg...) LIBLCD_WARN(msg)
#define netdev_err(dev, msg...) LIBLCD_ERR(msg)
#define netdev_crit(dev, msg...) LIBLCD_ERR(msg)
#define netdev_info(dev, msg...) LIBLCD_MSG(msg)
#define __dynamic_netdev_dbg(desc, dev, fmt...) LIBLCD_MSG(fmt)
#define system_state 1
......@@ -88,6 +88,7 @@
#undef CONFIG_IXGBE_DCA
#undef CONFIG_PTP_1588_CLOCK
#undef CONFIG_DEBUGFS
#undef CONFIG_PM
/*
* Set include guards to force using our includes.
......
Markdown is supported
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