Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1980847rdb; Wed, 31 Jan 2024 15:40:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyIZ9/eYUYt1JsJtqZJyNnqyxKEnqyZCnvTZpLwRcNcMhlmGTj9p1To0PvZSMtLljshn0O X-Received: by 2002:a17:906:c57:b0:a35:f3bc:455b with SMTP id t23-20020a1709060c5700b00a35f3bc455bmr2172796ejf.33.1706744454489; Wed, 31 Jan 2024 15:40:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706744454; cv=pass; d=google.com; s=arc-20160816; b=eGlIQg8RFsDMrqj5XrsStjOCbAD/dADxGJkW5Nt8GROn7UbTsV/A7lT6M81lkT8y1J 9VEVAo2F5CCnIZNh/pmrFi4j0O0FpbU0N5S0r/NsNHr3YNidByRE7yqeGcNWN/XHuRG0 5oP+PaBQ76GkIFDyJYl8ZR0JCLl5UIOTSa1SAdSQEGL5aNa7ondUzbchFhxkL/+whm8k oEcq1DCprkLwt6FRKwhN/G2ZLIJ639pxDY5YYPg3px/zFKJyzMfH/uE17emCMg8mG6hK xfpLljCUhuJalTa9o4hQMTf6CF5jb05CzCeBEvJ4kVCiW/dbEvpM22+AVaPeZ0pSISKx /Llg== 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:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=9QNgMG1V+sShKZyZWPsvsaqKoL4Gh/7stnAPwzAP7cc=; fh=QRPEN0o8YJIbSlL5t3MrQHDORXf7dxcDr79+/U4kZBE=; b=XbAZKLkj8iaQ4zZv/FY3zj5e14+mZJWRYFoFI+llDdCDQBzhyD6Cb9lUmvsLEcX5Gz qiBem2lCyCk0Mx2tLRkqEOhutxcrhzXPOlq+MAdapK86qHQ1/E3EU12Duhkrey4DPVqe 6AILan02tcwnHNilTWJZRAYZRXnT0Bkh3d5gSJngZ+bbb8UpYtA8w6Ng9mJX0cfA8PXC QkzWu51gOUWIQRvyOiA3mY5G45w+eBo+K1ovNmrHjxw4VchfCzBQbB8/CvmBM/2zKDt/ VTXpDS2x25kh5HUk+QljvxAOsWk1QPVLnKpW30/S4qnGyszCqHtzIinQShySNHJSaJgy i8hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WWimYWUP; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-47382-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47382-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCW/yHauh7XyqTaNee00sbY/bgtMi11bZ5NymRkayQ1uNim+HJDqSoiMDEjuv42TT1lUvAKGir2azavilbTwn8+33xFLR0gvPEPwIZWdkA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id zn6-20020a170906ff0600b00a31723838d6si6119867ejb.575.2024.01.31.15.40.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 15:40:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47382-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WWimYWUP; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-47382-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47382-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3EA171F2E458 for ; Wed, 31 Jan 2024 23:40:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 460BC48781; Wed, 31 Jan 2024 23:31:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WWimYWUP" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 B525841206 for ; Wed, 31 Jan 2024 23:31:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706743865; cv=none; b=H3u7pHWgd7Dhq7T+SMAp2JrxqW5eGYLycxW7HOFJnhxSbRbO4V8/htoqUhAYNoX9/ZATiUf8llSc09mziEdSiErDYmNvk0xY3+5pROzQFJw2hxHf0LA6RWAPJie2KJApX8bPDjZIL9os3OPtGq50oxwwar7KNtXEORlBj87iSfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706743865; c=relaxed/simple; bh=xtXUWbFA5RhV5p2JPvTvy0REVEPRTKEXEP3AJq7jDQk=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=JJE9guW6Qg9/n6VLR+O7yshcpF6lrQxXtNe6PEStsj2TAqyN/vZy6fB1oNu982Bj8qdfczPLCZBPfPe314icVTdkNw+t+SCmrRazIUYQMHnnr+HUOJUfUfbaMIPTw73qzgaCfx5mM7IjyJn15oUTRBefLmtduy9aznFjRftfzIU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WWimYWUP; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706743861; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9QNgMG1V+sShKZyZWPsvsaqKoL4Gh/7stnAPwzAP7cc=; b=WWimYWUPlw8kK2Kh2McbC/1dswStMwdYAf7RgfCM+2ZAo3TdzJDwQjDpuL4sCI3ukuduLA CTVFRix9LRRaZIRmXmePeF76o4FmzIKmpjKBguUo6xOWzmUUDQE99X1J+nW9cxlGvCxKRS p03u010ib6vXZjsNDDtkWT2ILG/q9yI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-686-Ub6N-GuYMlS0zu0_pDbJ1Q-1; Wed, 31 Jan 2024 18:30:58 -0500 X-MC-Unique: Ub6N-GuYMlS0zu0_pDbJ1Q-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BCA85185A780; Wed, 31 Jan 2024 23:30:57 +0000 (UTC) Received: from virtlab511.virt.lab.eng.bos.redhat.com (virtlab511.virt.lab.eng.bos.redhat.com [10.19.152.198]) by smtp.corp.redhat.com (Postfix) with ESMTP id A4870C2590D; Wed, 31 Jan 2024 23:30:57 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH 8/8] KVM: remove unnecessary #ifdef Date: Wed, 31 Jan 2024 18:30:56 -0500 Message-Id: <20240131233056.10845-9-pbonzini@redhat.com> In-Reply-To: <20240131233056.10845-1-pbonzini@redhat.com> References: <20240131233056.10845-1-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 KVM_CAP_IRQ_ROUTING is always defined, so there is no need to check if it is. Signed-off-by: Paolo Bonzini --- include/uapi/linux/kvm.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 589aba934c51..9fb9dd9a8fd5 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -921,8 +921,6 @@ struct kvm_enable_cap { #define KVM_CAP_GUEST_MEMFD 234 #define KVM_CAP_VM_TYPES 235 -#ifdef KVM_CAP_IRQ_ROUTING - struct kvm_irq_routing_irqchip { __u32 irqchip; __u32 pin; @@ -987,8 +985,6 @@ struct kvm_irq_routing { struct kvm_irq_routing_entry entries[]; }; -#endif - #define KVM_IRQFD_FLAG_DEASSIGN (1 << 0) /* * Available with KVM_CAP_IRQFD_RESAMPLE -- 2.39.0