Messages in this thread Patch in this message | | | From | Mariusz Kozlowski <> | Subject | [PATCH] [SCSI] bnx2fc: fix build error when !CONFIG_MODULES | Date | Wed, 2 Mar 2011 23:10:03 +0100 |
| |
drivers/scsi/bnx2fc/bnx2fc_fcoe.c:1815: error: dereferencing pointer to incomplete type drivers/scsi/bnx2fc/bnx2fc_fcoe.c:1815: error: ‘MODULE_STATE_LIVE’ undeclared (first use in this function)
Signed-off-by: Mariusz Kozlowski <mk@lab.zgora.pl> --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index e476e87..689db39 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c @@ -1812,10 +1812,12 @@ static int bnx2fc_disable(struct net_device *netdev) mutex_lock(&bnx2fc_dev_lock); +#ifdef CONFIG_SCSI_BNX2X_FCOE_MODULE if (THIS_MODULE->state != MODULE_STATE_LIVE) { rc = -ENODEV; goto nodev; } +#endif /* obtain physical netdev */ if (netdev->priv_flags & IFF_802_1Q_VLAN) @@ -1875,10 +1877,12 @@ static int bnx2fc_enable(struct net_device *netdev) BNX2FC_MISC_DBG("Entered %s\n", __func__); mutex_lock(&bnx2fc_dev_lock); +#ifdef CONFIG_SCSI_BNX2X_FCOE_MODULE if (THIS_MODULE->state != MODULE_STATE_LIVE) { rc = -ENODEV; goto nodev; } +#endif /* obtain physical netdev */ if (netdev->priv_flags & IFF_802_1Q_VLAN) -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |