From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 183E278B61; Tue, 27 Feb 2024 14:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709043539; cv=none; b=DRfD8ToZk/R72B5qK67b6xXy4OqBvH1z+bDel9/8KCaglRanuuN7ztff8uQN6wbLcXiKkrCZ9BMXP8PgYXESeYEVjmEjF8Oq432klS/1pCw+7dZUy9mtnWsILhNxWi7WYuNoe44N7C85qEznfD4M7Bop9cXB/ti0m1jG7WwhgwM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709043539; c=relaxed/simple; bh=Bb9rX+wC6nTPkPIccESKutFZgdEQWJKrr1maLsaeT2A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lXDOlr7LpMyoYW7XvqJHth7CpdyFsi9T7QBtJf5CnB8m8GoTIvhw3gqPrFUmpk14f105+/yUQ9xlINLwLgUdwNEZmjhAhv3aQls3gTFyEHNB1jtpRFAIPw0XCUGWC0r8/MxA5vljoKp+B4jEQpEqP4ymKKcgFpWKRSt63YhFHiA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yYHchJw9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yYHchJw9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66FC3C433C7; Tue, 27 Feb 2024 14:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709043538; bh=Bb9rX+wC6nTPkPIccESKutFZgdEQWJKrr1maLsaeT2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yYHchJw9E1HnPXxBwjiZmT8picOYU/DeGoE7ZZEEFER6F7sLFNcn0rryzVY4cW5mn L91r0X3Z3qDjr0iZcw7CM8y9+TOfVyTEwkHxiTaDhQ3JuYYYqaT5ANd0G6uThr8Cx0 wnKnx4lnrw+H5jQs7dwUTTSG+Xl5lAJyOee8wiQ8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Randy Dunlap , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Arnd Bergmann , Masahiro Yamada , Nicolas Schier , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, Geert Uytterhoeven , kernel test robot , Sasha Levin Subject: [PATCH 6.1 145/195] scsi: jazz_esp: Only build if SCSI core is builtin Date: Tue, 27 Feb 2024 14:26:46 +0100 Message-ID: <20240227131615.211799478@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240227131610.391465389@linuxfoundation.org> References: <20240227131610.391465389@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap [ Upstream commit 9ddf190a7df77b77817f955fdb9c2ae9d1c9c9a3 ] JAZZ_ESP is a bool kconfig symbol that selects SCSI_SPI_ATTRS. When CONFIG_SCSI=m, this results in SCSI_SPI_ATTRS=m while JAZZ_ESP=y, which causes many undefined symbol linker errors. Fix this by only offering to build this driver when CONFIG_SCSI=y. [mkp: JAZZ_ESP is unique in that it does not support being compiled as a module unlike the remaining SPI SCSI HBA drivers] Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Randy Dunlap Link: https://lore.kernel.org/r/20240214055953.9612-1-rdunlap@infradead.org Cc: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org Cc: Arnd Bergmann Cc: Masahiro Yamada Cc: Nicolas Schier Cc: James E.J. Bottomley Cc: Martin K. Petersen Cc: linux-scsi@vger.kernel.org Cc: Geert Uytterhoeven Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202402112222.Gl0udKyU-lkp@intel.com/ Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig index 03e71e3d5e5b3..3b990cf2c1954 100644 --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig @@ -1285,7 +1285,7 @@ source "drivers/scsi/arm/Kconfig" config JAZZ_ESP bool "MIPS JAZZ FAS216 SCSI support" - depends on MACH_JAZZ && SCSI + depends on MACH_JAZZ && SCSI=y select SCSI_SPI_ATTRS help This is the driver for the onboard SCSI host adapter of MIPS Magnum -- 2.43.0