Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757493AbdCUNKl (ORCPT ); Tue, 21 Mar 2017 09:10:41 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:56135 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757448AbdCUNKj (ORCPT ); Tue, 21 Mar 2017 09:10:39 -0400 From: Arnd Bergmann To: "James E.J. Bottomley" , "Martin K. Petersen" Cc: Arnd Bergmann , Hannes Reinecke , Finn Thain , Johannes Thumshirn , James Smart , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: lpfc: fix linking against modular NVMe support Date: Tue, 21 Mar 2017 14:09:05 +0100 Message-Id: <20170321131017.2207105-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:ANUdfNNh6MfPLF4UqdJXdHuasoglKEBGMOCeNn+VnyNDPTsZfcu 1nywUazrqM+Qq972UR/6zJVEYC2CwaiSFX/4EDdjxlPfzJPQ0Iez28LUzi8O5ApUPL9WtsF sIGLkKDmpGf3i/ZY45XuupR8b419dsX+GwNj8w2PWU3rBjgM5seIilU1H9dhu5Az7LUH17I 5m2+NBN+kpStrPomrzXqQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:i1Ftbok41cU=:cx0ladTyLrZlfGzyVAmsCn R8WhmVUZWq1+DMwM/7W64dgrfKBpvRr64xcaAI8HePQgTkrf4AgPYXXpsvG5qGNZqeLeynuBp JJYhyhtn3XYoxDENSerClc64wi9P0hY4aELwU9uNojvcYRmpTYGK9A5QOv+DZkoVZY6XdLN2M FDFhUzjm7A+KjSmSAjJujpHQmpJXxRO0su1k8tSULOVs5ECFZJ+eydrJ+HWDyrV4AarSjBpye KYNQLUrqjFSDmlyn9RqiIkAjWqn45IBXWcmmf+DaJdNDe6Rsklk+by/CrMbzg5OHdsJ4Y7oEl I5b23UDf/3L1kEXgV7Fxyt5XOxJwNgy2EHe1tnrG5/yu2ySWWfZrQQmBkYNiJyzhVanZOhs3Z NCdf7IPngb72RREqecNJ8UC5Lp4qHYQXlYv6B6PwUwvHT2+b8RYMDBwU4GWZp9J0HMEfwSymj +lUhXoE8iFa9Z0CULF7F8jWSWxC/XA88p+nRUhp1HCgkbIAyoDExyS3Qw8BfAZ2M4cZf/H3ef HGwCuJ9CXq+vk5KmipRQ/kRM8hklnbaul6xeDAoil8XMTGBglAiLIFxVzDL4DoTqzJGvgqFI5 IBCulEdRHzg1jPQRvLiKOvPicCCikMjQQqW6lTitLtPwe4KWmaj6AYZGBv1xzSCyFWKg76LSa VtSR2BdN2U/IcEXzEL58cKiiDcGvJ3IbuSbxW+D+7YX9BHHXpb82Lq54Y7X3mCEyx2js= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1151 Lines: 32 When LPFC is built-in but NVMe is a loadable module, we fail to link the kernel: drivers/scsi/built-in.o: In function `lpfc_nvme_create_localport': (.text+0x156a82): undefined reference to `nvme_fc_register_localport' drivers/scsi/built-in.o: In function `lpfc_nvme_destroy_localport': (.text+0x156eaa): undefined reference to `nvme_fc_unregister_remoteport' We can avoid this either by forcing lpfc to be a module, or by disabling NVMe support in this case. This implements the former. Fixes: 7d7080335f8d ("scsi: lpfc: Finalize Kconfig options for nvme") Signed-off-by: Arnd Bergmann --- drivers/scsi/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig index 3c52867dfe28..d145e0d90227 100644 --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig @@ -1241,6 +1241,8 @@ config SCSI_LPFC tristate "Emulex LightPulse Fibre Channel Support" depends on PCI && SCSI depends on SCSI_FC_ATTRS + depends on NVME_TARGET_FC || NVME_TARGET_FC=n + depends on NVME_FC || NVME_FC=n select CRC_T10DIF ---help--- This lpfc driver supports the Emulex LightPulse -- 2.9.0