From nobody Mon Feb 9 17:24:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1548413082934881.6224176755601; Fri, 25 Jan 2019 02:44:42 -0800 (PST) Received: from localhost ([127.0.0.1]:41789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmyyU-0003TY-VA for importer@patchew.org; Fri, 25 Jan 2019 05:44:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmyOy-0007fY-GS for qemu-devel@nongnu.org; Fri, 25 Jan 2019 05:07:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmyOw-00026G-Ty for qemu-devel@nongnu.org; Fri, 25 Jan 2019 05:07:55 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:39528) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gmyOw-00024v-MK for qemu-devel@nongnu.org; Fri, 25 Jan 2019 05:07:54 -0500 Received: by mail-wm1-x344.google.com with SMTP id y8so6009857wmi.4 for ; Fri, 25 Jan 2019 02:07:54 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id p4sm88048455wrs.74.2019.01.25.02.07.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jan 2019 02:07:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Tk646+qeFZF8k4MBXmfwyBZ0VvZEL7sRX7BXvPcxO3U=; b=sqIg2V7VNQxcmLCe8DaaIrdIA8OejTy+yoiGk6Po06mnDQkP5GUzlux/wMMwkTJnaW 7JaabqqUdhyUazxrfCAmfr1Jyg4j0LQ0ThDsfFmKeo+MgzbXNQEUf0tp/AzD3FpofBeQ uXhjLKwlAA1UCFzXb9wDec/1C0BVsG5wWdlaqm98otfvoBA+xslbWwhRDZbjRk2C8rAd m06qElAFvsgwCgc70LsG3u+4G139U9ZY7ubJHlMspLRiS29Zo0eiHSEsgcJ36ryueYdo dTsoDEPtkTt+CV8n0nFmfMCUIp5Ho7tDPJPzK1ZNMSsvzwUk/gTPyjyKp2ZX7LIl6Wx/ p1tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Tk646+qeFZF8k4MBXmfwyBZ0VvZEL7sRX7BXvPcxO3U=; b=B4/6lgKMkIrPHC/5uTbc9SygvGReR6zPjcw1FckgZ0i+DdE0cX/KrTjVK+d698xtBJ DVs9EOIzkJJO2LhROqTgMMOozPpPIgNO4Wk9War5Xv3m2LQjuTYcxjF3SchyTOEoGA+Y yj0tK08LveO3DetbumxMLQLpt/FpcIbA/FGERfqsndCtaJca3+MlLYNi4SqICGfIgPEq FUZZ3d0fj+j1xNGIddn9niIlBajYFhv/EViEPTx5YL2XCws9BZ2/sGprFVv3GK0BOJrC yrLn2wBuv4Jhe75CbfmJpnR8Y806uRLfHJRExp/lcptHZYfSNAbvdxpbyZCw24zxdlJ9 yusA== X-Gm-Message-State: AJcUukdKvUeJ8TXitH3s1I+O2hUBV7NmmN3H79tAfiMF1nJ2Bkz1wJqF I6BrLaKROCnHeMwDZkIT/JnVaUJF X-Google-Smtp-Source: ALg8bN5fzWjb0VcxSp2//QksHPSdruYs/4E+0TzfHrKI29RsaDkPsdgMq/4RgRuHM5scqteAKFGIQQ== X-Received: by 2002:a1c:6707:: with SMTP id b7mr6223430wmc.138.1548410873448; Fri, 25 Jan 2019 02:07:53 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 25 Jan 2019 11:06:59 +0100 Message-Id: <1548410831-19553-41-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1548410831-19553-1-git-send-email-pbonzini@redhat.com> References: <1548410831-19553-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::344 Subject: [Qemu-devel] [PATCH 40/52] scsi: express dependencies with Kconfig X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yang.zhong@intel.com, thuth@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This automatically removes the SCSI subsystem from the binary altogether if no controllers are selected. Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Message-Id: <20190123065618.3520-34-yang.zhong@intel.com> Signed-off-by: Paolo Bonzini --- hw/scsi/Kconfig | 11 ++++++++++- hw/scsi/Makefile.objs | 2 +- hw/usb/Kconfig | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/scsi/Kconfig b/hw/scsi/Kconfig index c02d880..b9cf269 100644 --- a/hw/scsi/Kconfig +++ b/hw/scsi/Kconfig @@ -5,24 +5,29 @@ config LSI_SCSI_PCI bool default y if PCI_DEVICES depends on PCI + select SCSI =20 config MPTSAS_SCSI_PCI bool default y if PCI_DEVICES depends on PCI + select SCSI =20 config MEGASAS_SCSI_PCI bool default y if PCI_DEVICES depends on PCI + select SCSI =20 config VMW_PVSCSI_SCSI_PCI bool default y if PCI_DEVICES depends on PCI + select SCSI =20 config ESP bool + select SCSI =20 config ESP_PCI bool @@ -34,10 +39,14 @@ config SPAPR_VSCSI bool default y depends on PSERIES + select SCSI =20 config VIRTIO_SCSI bool + select SCSI =20 config VHOST_USER_SCSI bool - default y if VHOST_USER && LINUX + # Only PCI devices are provided for now + default y if VIRTIO_PCI + depends on VHOST_USER && LINUX diff --git a/hw/scsi/Makefile.objs b/hw/scsi/Makefile.objs index 45167ba..54b36ed 100644 --- a/hw/scsi/Makefile.objs +++ b/hw/scsi/Makefile.objs @@ -6,7 +6,7 @@ common-obj-$(CONFIG_MEGASAS_SCSI_PCI) +=3D megasas.o common-obj-$(CONFIG_VMW_PVSCSI_SCSI_PCI) +=3D vmw_pvscsi.o common-obj-$(CONFIG_ESP) +=3D esp.o common-obj-$(CONFIG_ESP_PCI) +=3D esp-pci.o -obj-$(CONFIG_PSERIES) +=3D spapr_vscsi.o +obj-$(CONFIG_SPAPR_VSCSI) +=3D spapr_vscsi.o =20 ifeq ($(CONFIG_VIRTIO_SCSI),y) obj-y +=3D virtio-scsi.o virtio-scsi-dataplane.o diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig index e20670a..a1b7acb 100644 --- a/hw/usb/Kconfig +++ b/hw/usb/Kconfig @@ -52,11 +52,13 @@ config USB_STORAGE_BOT bool default y depends on USB + select SCSI =20 config USB_STORAGE_UAS bool default y depends on USB + select SCSI =20 config USB_AUDIO bool --=20 1.8.3.1