linux-stable/drivers/scsi/bnx2fc
Randy Dunlap 5fa5d9e34b scsi: bnx2fc: Fix Kconfig warning & CNIC build errors
[ Upstream commit eefb816acb ]

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'

Link: https://lore.kernel.org/r/20210213192428.22537-1-rdunlap@infradead.org
Fixes: 853e2bd210 ("[SCSI] bnx2fc: Broadcom FCoE offload driver")
Cc: Saurav Kashyap <skashyap@marvell.com>
Cc: Javed Hasan <jhasan@marvell.com>
Cc: GR-QLogic-Storage-Upstream@marvell.com
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:38:21 +01:00
..
57xx_hsi_bnx2fc.h scsi: Fix various misspellings of "connect" 2019-10-24 21:22:32 -04:00
bnx2fc.h scsi: bnx2fc: Update the driver version to 2.12.13 2020-03-29 18:10:59 -04:00
bnx2fc_constants.h
bnx2fc_debug.c
bnx2fc_debug.h
bnx2fc_els.c scsi: bnx2fc: fix bnx2fc_cmd refcount imbalance in send_srr 2019-06-26 22:43:02 -04:00
bnx2fc_fcoe.c scsi: bnx2fc: Make a bunch of symbols static in bnx2fc_fcoe.c 2020-09-15 21:29:21 -04:00
bnx2fc_hwi.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
bnx2fc_io.c scsi: bnx2fc: Fix spelling mistake "couldnt" -> "couldn't" 2020-08-24 23:10:27 -04:00
bnx2fc_tgt.c scsi: bnx2fc: Demote obvious misuse of kerneldoc to standard comment blocks 2020-07-15 16:01:58 -04:00
Kconfig scsi: bnx2fc: Fix Kconfig warning & CNIC build errors 2021-03-04 11:38:21 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00