qed: Fix build error without CONFIG_DEVLINK
authorYueHaibing <yuehaibing@huawei.com>
Sat, 1 Jun 2019 08:06:05 +0000 (16:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 22:11:05 +0000 (15:11 -0700)
commitbd8d7d9088289ba099721e7c696d988842b6cc24
tree6174c7e69992ae1fda2fa947628386752ae565d8
parent5472c3c6a5f0573a609f77adce8ed1bd54233c7a
qed: Fix build error without CONFIG_DEVLINK

Fix gcc build error while CONFIG_DEVLINK is not set

drivers/net/ethernet/qlogic/qed/qed_main.o: In function `qed_remove':
qed_main.c:(.text+0x1eb4): undefined reference to `devlink_unregister'

Select DEVLINK to fix this.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 24e04879abdd ("qed: Add qed devlink parameters table")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Michal KalderonĀ <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/Kconfig