]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/ethernet/sfc/efx_common.h
sfc: move MCDI logging device attribute
[linux.git] / drivers / net / ethernet / sfc / efx_common.h
index c602e5257088ce2b2575c19c8c1870c90911de17..e03404d1dc0ad1c3054b090dd9ef8e2cc9ec4612 100644 (file)
@@ -55,6 +55,14 @@ static inline int efx_check_disabled(struct efx_nic *efx)
        return 0;
 }
 
+#ifdef CONFIG_SFC_MCDI_LOGGING
+void efx_init_mcdi_logging(struct efx_nic *efx);
+void efx_fini_mcdi_logging(struct efx_nic *efx);
+#else
+static inline void efx_init_mcdi_logging(struct efx_nic *efx) {}
+static inline void efx_fini_mcdi_logging(struct efx_nic *efx) {}
+#endif
+
 void efx_mac_reconfigure(struct efx_nic *efx);
 void efx_link_status_changed(struct efx_nic *efx);