Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7510869rwp; Tue, 18 Jul 2023 17:05:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlEl1hG8m6eNk6tNznCvjhS/OwkyTFhWQ3GS5uHbkpWjDS/kZO8cR8u+66YIz5SdDhyzpoTC X-Received: by 2002:a05:6a20:729f:b0:137:2460:d3b5 with SMTP id o31-20020a056a20729f00b001372460d3b5mr706628pzk.62.1689725104004; Tue, 18 Jul 2023 17:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689725103; cv=none; d=google.com; s=arc-20160816; b=fHWNVTi2cJn8QVPv97QRkGitI1rHotii+huDj6cAquvo9p9rukXT4ytaxdLXf4VdCD RDi9fq+Ro5lCcirnbYvu6b3EUYt//N14gA2kHmwd3ymV91kLe9FXNKncbo7+TAaA9eHs YkDOhgA0GbWsb5jakoN3aCXTj/hKtvbuRaXe7WP33KDUWJYG7esByRwg3HLnZKOLuru0 1e/upnN6M+OU3NOsUpd6vCezkxt6CFgRLHU6wiYmEtvR1YkP6yd5WGdvF4H0GcuEkOaT Pwdc6L3XQMDOPsLQnCO+2KACNHmF5ss+wtP1bLq1euPrUyeKI4zo4BpHN86OvQBCX6TO XttQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=WUfCrqcqzPgtS1UwKv933k1oCAb1hY7UF4nDFC6XfxY=; fh=D6d5aNryYQiYyjenfSFWOT3594jRd4xJmyqVXmIxeQo=; b=SX9RuXtol6HFnlRGFhs3Bd/uMXbiom1Z8cYRPU25+yoyuoZ7D9zYp35xfdddRxYlMa qFXw0Qcs0zSKFGUcZpFx634WFMGB4nVBcp9JG7ALBxuLhtWrwvizDYBISnMroSu6mD3t kMET5u5pgyd4M2SWa6E8XHDylfyotfTbji9ewqEDmy5T8skXRjBPPpdWLPCGiAnoRd5O dJmsx+QosQihgGfNThaXCQSfAqVvKqOVZOfFC/aYzjRXnxnXcqkDRNGZ0wVll1k/v+7z HrACFaRARuYv8Xdq/Qs66aj6zQel9r5OL3DJV9HAr+7ClSRkCnVO4NgcBE9XpMUXjiYE LzUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=kxtMkPfB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ct20-20020a056a000f9400b00682574b6ef1si778772pfb.381.2023.07.18.17.04.26; Tue, 18 Jul 2023 17:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=kxtMkPfB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230405AbjGRXtT (ORCPT + 99 others); Tue, 18 Jul 2023 19:49:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230100AbjGRXtK (ORCPT ); Tue, 18 Jul 2023 19:49:10 -0400 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA02FE56 for ; Tue, 18 Jul 2023 16:48:39 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-1b8b310553bso48761945ad.3 for ; Tue, 18 Jul 2023 16:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689724119; x=1692316119; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=WUfCrqcqzPgtS1UwKv933k1oCAb1hY7UF4nDFC6XfxY=; b=kxtMkPfBzSrDgFwiM6lTbnnV1ORifom1wTCX0JDc2o8v5mvJbgd+eW3FzBholZ+QF/ ZB/tw1vxVtp6lnWfOuYWDBnkA/zcHKeYCxsNI4yLGBDWisxt2V2CGW6+/c9nKHHqWO0Z pwjXyxzIVoB/8QMRAPYJ2ESVagoDqveLkahmzeblrfSHi+C7b/LSvjVeGXXFBmG27xpW 46+iHLUL/iDL1W1dNobEnmnSwB6oZXJ54GsRbQDHUEuzlNSG0pgY2rC5/BfRYynN9jnl 9GH+3FZfZFTDU0qQSnRrsV2OdAHlQuwXUaGl7W047p5QIleFQWR+9FWJ+QSsSRbSbDcH Ypxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689724119; x=1692316119; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WUfCrqcqzPgtS1UwKv933k1oCAb1hY7UF4nDFC6XfxY=; b=gaSA/r1wifqSVCGP1eQfWzti9/pLVgqrFpQ189/BOjo7dLm3hEnkghNFIIhixZ/tBL ipRHXVnCQefR3G3AYgQ+9uUiYYbLd7/drN+7JaFTzD0lIc9g4LeXDTyYdEtPxhkBgWWE CU3IRu03DSbu60cep8J69zuwpimc1IGy/1yAUqss9ZmfYamNsT555kox3EBTifh2dDmy TI438jtdPofjtO4v+AZ93UJq1pJ9iQKY7uYlbQVGhFxMU51K3/AzWUfIq94YLAFP+d2L gt1WxB3OtwOaHTfzxBCULRLwQwyF/sk9iQ1qe8lyUGpRXxFaB2CUPBNvLlme6DC4rPGd ZzoQ== X-Gm-Message-State: ABy/qLYPI7XZdXe+43VEmdK9BDfnk6FPafqPOsaGBLwTAGorrrFy++ss 46lROB08K4bqkjKp2H+A8l9xe01Dcas= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:f546:b0:1b8:a552:c8c9 with SMTP id h6-20020a170902f54600b001b8a552c8c9mr7279plf.13.1689724119324; Tue, 18 Jul 2023 16:48:39 -0700 (PDT) Reply-To: Sean Christopherson Date: Tue, 18 Jul 2023 16:44:47 -0700 In-Reply-To: <20230718234512.1690985-1-seanjc@google.com> Mime-Version: 1.0 References: <20230718234512.1690985-1-seanjc@google.com> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog Message-ID: <20230718234512.1690985-5-seanjc@google.com> Subject: [RFC PATCH v11 04/29] KVM: PPC: Drop dead code related to KVM_ARCH_WANT_MMU_NOTIFIER From: Sean Christopherson To: Paolo Bonzini , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Sean Christopherson , "Matthew Wilcox (Oracle)" , Andrew Morton , Paul Moore , James Morris , "Serge E. Hallyn" Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Chao Peng , Fuad Tabba , Jarkko Sakkinen , Yu Zhang , Vishal Annapurve , Ackerley Tng , Maciej Szmigiero , Vlastimil Babka , David Hildenbrand , Quentin Perret , Michael Roth , Wang , Liam Merwick , Isaku Yamahata , "Kirill A . Shutemov" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Sean Christopherson --- arch/powerpc/kvm/powerpc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 7197c8256668..5cf9e5e3112a 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c @@ -634,10 +634,11 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) case KVM_CAP_SYNC_MMU: #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE r = hv_enabled; -#elif defined(KVM_ARCH_WANT_MMU_NOTIFIER) - r = 1; #else - r = 0; +#ifndef KVM_ARCH_WANT_MMU_NOTIFIER + BUILD_BUG(); +#endif + r = 1; #endif break; #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE -- 2.41.0.255.g8b1d071c50-goog