Message ID | 20240214055953.9612-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-64764-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1142904dyb; Wed, 14 Feb 2024 03:27:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+djTgMCcsxGvC9Bg05YkZ+iBjlIZtX6/pY0mYmvIeVzFXPBcRCLRrdL7GLmcEPAPwuZxLNlV6c0hOsToFXsMSnurAzw== X-Google-Smtp-Source: AGHT+IHJN6EjOAaJcjTAM45qtjpXi7Q4gAy6eIw9tesHf4fXjR0s0LUFv2CwkPTrJ4UjwU/xTOqa X-Received: by 2002:a05:6871:8907:b0:214:44cf:a824 with SMTP id ti7-20020a056871890700b0021444cfa824mr2944757oab.32.1707910027364; Wed, 14 Feb 2024 03:27:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707910027; cv=pass; d=google.com; s=arc-20160816; b=O9fIfniv56xnKYNwqmEmc1jC7wxq8B1WGyQRDecpMepDxf1kpcptcQJ+9ylNaaQxv9 nX4BG9ns7Z1xN0T/70yWWfcvnJazGHEikxrOVVdykzKDRBst+W+c3ipodetjqddi/hHm dLXRR7hsOZHutR1A8dZEg57WZfuQq50kdTbDyjaMecytzYZ+BACddvRjSS2lFtlUMAss VcquBR+qrd5cp8JoyioPg8l9rQ0PVIsj94Cj0sqEw0L7C9r5SbLSPu9rne/dJcM3V8lh mBbIc1dkfiiLpcKApFevIePtwhd/WHRdKpUlFjT9vzZw8n7zrl7KckOUA/xkxIY6XqNw 5y8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=lSQHVkEuXKOPPFhQR3VnljNy6UO4HmXBWr18LMiSUi8=; fh=8xe8ReGilMyyWCsQVHyHFdqyCibOi+wCVTSaSCg/nCY=; b=Uxa71nCeglZb45NicjvumtQXhMZMhm4pM2px/+QYQ+Kdd7IEgrM9jpkk8a1XarUddb 8plFmeGbSlLFRplyKAtNoHdtMIeh/t9zRZyj8Ush8qtdaMatNXULaVGDvDyTvC1jgvId svXWdhc/PkAEnutJxS0aF3LFw5GvKaPHYpSN+s03SRywGgXGsYlZr7aTcZIzvwIIu7T2 7a9g02onY4K2gXaYKKrHVdXoBs9IvRB+SpfVUfQQ/0+ykQlyevGDQpfb1KHFswMAvsLd umhDi8mQQiAVx96LPMQ3AlLG/4nI7Na1R+8gmGlrc7LEGzydIuVnxQBX8xB90k0XB1IW 4VvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="GR/iwEXy"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-64764-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64764-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCW+nJ4NGRfxbEgEgMK3EQqfZ5ode509/QYGRJspNORQu6/0ke95M9gHGwQnWm/WOb/PydLbMkeMdjqONlShRtDvozBcGQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cl9-20020a056a02098900b005dc89f52e23si221566pgb.612.2024.02.14.03.27.07 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 03:27:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64764-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="GR/iwEXy"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-64764-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64764-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C2CF228ACE5 for <ouuuleilei@gmail.com>; Wed, 14 Feb 2024 06:00:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A3C011701; Wed, 14 Feb 2024 06:00:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="GR/iwEXy" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 D39D311183; Wed, 14 Feb 2024 05:59:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707890404; cv=none; b=VH2ABI5vMcv4UhOAEJSoFDmGYT5FdytnzRfiWy/W7JI7+F9vyMSF+8Eyho5y6e+DVX/Gs83jhLnOEkkbaa48i8jy3Vx9fL4XZgnD98nEoatSilqg4hMdXjZgbCyqzpdjyQnvz2XgBx01hZLtBkHrLKfRG6zKjfD/l2vp6qYYG3s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707890404; c=relaxed/simple; bh=S89Yy0TSquu1IiarqlR9c1HsKj9O0OkiKkRYen5KW0c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RHNeNcVyohwcwSMo/tASQYvXpPqEo7KSqgWiYKcPZnang+0N++GEcFP49oYCnsAmDHAFQQJr/U9SecjPUAZkcStrOHTgxi+5UIKOnUz2Z/rveYCLTiARFuP9OLXfdubqfA8c81CGcLy5ck2hv2A8b0pe12HOSxq+Sfx52Et8Bao= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=GR/iwEXy; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=lSQHVkEuXKOPPFhQR3VnljNy6UO4HmXBWr18LMiSUi8=; b=GR/iwEXyD3tLBMpeUjYZ/keMtD 1gezL/isRmv679++C+NKYivKmw/E4HaXYqdnPhg67vttt50+knRd/2L/ban+wu1fhB4RAMO5xaUWK 2O3ubxl+kZqJlV3ZLbfNjWQladoeRCO8nPXNZO9zg8xpNiBx290nlCOCJz2f4inHWZ2BQQE++QSCc fg9meOrd4gQ0FFYaoFBoZ/2netUVM6ThtydYF8g/48cGLNDpvpKHcVjaNCp0XyOsNa+488UvgREby 3wLBw+KRNseHMMYWEVnKzG4yxQUlrFEfYTLy5ATnaxuDkFqTD7+lOtlUO4kyGBrpwx7AyUBurt2pN KljKQVaQ==; Received: from [50.53.50.0] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1ra8JH-0000000BurM-27Cl; Wed, 14 Feb 2024 05:59:55 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, kernel test robot <lkp@intel.com>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, linux-mips@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, Masahiro Yamada <masahiroy@kernel.org>, Nicolas Schier <nicolas@fjasle.eu>, "James E.J. Bottomley" <jejb@linux.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, linux-scsi@vger.kernel.org, Geert Uytterhoeven <geert@linux-m68k.org> Subject: [PATCH] scsi: jazz_esp: only build if SCSI core is builtin Date: Tue, 13 Feb 2024 21:59:53 -0800 Message-ID: <20240214055953.9612-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790873464865692755 X-GMAIL-MSGID: 1790873464865692755 |
Series |
scsi: jazz_esp: only build if SCSI core is builtin
|
|
Commit Message
Randy Dunlap
Feb. 14, 2024, 5:59 a.m. UTC
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.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202402112222.Gl0udKyU-lkp@intel.com/
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Nicolas Schier <nicolas@fjasle.eu>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
---
drivers/scsi/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, 13 Feb 2024 21:59:53 -0800, Randy Dunlap wrote: > 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. > > > [...] Applied to 6.8/scsi-fixes, thanks! [1/1] scsi: jazz_esp: only build if SCSI core is builtin https://git.kernel.org/mkp/scsi/c/9ddf190a7df7
diff -- a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig @@ -1279,7 +1279,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