SCSI: bnx2fc: fix Kconfig warning & CNIC build errors
Subsystems (2)
PATCH 1/1 SCSI: bnx2fc: fix Kconfig warning & CNIC build errors
CNIC depends on MMU, but since 'select' does not follow any dependency chains, SCSI_BNX2X_FCOE also needs to depend on MMU, so that erroneous configs are not generated, which cause build errors in cnic.
WARNING: unmet direct dependencies detected for CNIC
Depends on [n]: NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_BROADCOM [=y] && PCI [=y] && (IPV6 [=n] || IPV6 [=n]=n) && MMU [=n] Selected by [y]:
- SCSI_BNX2X_FCOE [=y] && SCSI_LOWLEVEL [=y] && SCSI [=y] && PCI [=y] && (IPV6 [=n] || IPV6 [=n]=n) && LIBFC [=y] && LIBFCOE [=y]
riscv64-linux-ld: drivers/net/ethernet/broadcom/cnic.o: in function `.L154':
cnic.c:(.text+0x1094): undefined reference to `uio_event_notify'
riscv64-linux-ld: cnic.c:(.text+0x10bc): undefined reference to `uio_event_notify'
riscv64-linux-ld: drivers/net/ethernet/broadcom/cnic.o: in function `.L1442':
cnic.c:(.text+0x96a8): undefined reference to `__uio_register_device'
riscv64-linux-ld: drivers/net/ethernet/broadcom/cnic.o: in function `.L0 ':
cnic.c:(.text.unlikely+0x68): undefined reference to `uio_unregister_device'
--- drivers/scsi/bnx2fc/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/bnx2fc/Kconfig +1 -0
@@ -5,6 +5,7 @@ config SCSI_BNX2X_FCOE depends on (IPV6 || IPV6=n) depends on LIBFC depends on LIBFCOE + depends on MMU select NETDEVICES select ETHERNET select NET_VENDOR_BROADCOM
Martin K. Petersen
AppliedRandy,
Quoted 3 lines
CNIC depends on MMU, but since 'select' does not follow any dependency chains,
SCSI_BNX2X_FCOEalso needs to depend on MMU, so that erroneous configs are not generated, which cause build errors in cnic.
Applied to 5.12/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 11 lines · Randy Dunlap
CNIC depends on MMU, but since 'select' does not follow any dependency chains,
SCSI_BNX2X_FCOEalso needs to depend on MMU, so that erroneous configs are not generated, which cause build errors in cnic.WARNING: unmet direct dependencies detected for CNIC
Depends on [n]: NETDEVICES [=y] && ETHERNET [=y] &&NET_VENDOR_BROADCOM[=y] && PCI [=y] && (IPV6 [=n] || IPV6 [=n]=n) && MMU [=n] Selected by [y]:
-SCSI_BNX2X_FCOE[=y] &&SCSI_LOWLEVEL[=y] && SCSI [=y] && PCI [=y] && (IPV6 [=n] || IPV6 [=n]=n) && LIBFC [=y] && LIBFCOE [=y][...]
Applied to 5.12/scsi-queue, thanks!
[1/1] SCSI: bnx2fc: fix Kconfig warning & CNIC build errors
https://git.kernel.org/mkp/scsi/c/eefb816acb01
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering