From patchwork Thu Sep 3 13:52:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Scull X-Patchwork-Id: 11753651 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C2FBF618 for ; Thu, 3 Sep 2020 13:55:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7EA3D208B3 for ; Thu, 3 Sep 2020 13:55:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="giCMSr64"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="EC4t/Z3M" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7EA3D208B3 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version:Message-Id: In-Reply-To:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0C7S/RC4QrEPIpAkHljJ4CE+eB8BSc1LzygQmX5HDCE=; b=giCMSr64wYJZQLocj76lqKyh0 LgP/sp0qBsSy7pHPy8QrlXabimb9iz2PPQbP/SM1+EbNSzI9Sk4CTBXvQKr/qQ0iEW8x3WD7Ieu42 XkbPRkM2IWie+FpTyLNblb7kFdN6ythN+2BYOYAJ+sSGD08zO3R6iXdrhkmAm9tuhUoDOwnf3MzmN Dya/EUSGPiN4VhzVpiChQPCW7gXELZSuCLqRV4z8ykdO4BA2yXnpeVzuDew9XazWWunydTUtTTV+w 5b7QBrbNmPfyRBk4iSD+q5TpVDsI+Zb3q+4tm/2Sjqj3WXrsrl4QQwa6vyy4tUlq6WKwz0im+vI3S zZqcO3Mmw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDpgB-0001zO-UU; Thu, 03 Sep 2020 13:53:31 +0000 Received: from mail-qk1-x74a.google.com ([2607:f8b0:4864:20::74a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDpg1-0001uV-R5 for linux-arm-kernel@lists.infradead.org; Thu, 03 Sep 2020 13:53:23 +0000 Received: by mail-qk1-x74a.google.com with SMTP id v16so1572704qka.18 for ; Thu, 03 Sep 2020 06:53:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=lkS3HdLznCxMbsFhlurcWnSrTq5G/SsOZVmpPWKJtBQ=; b=EC4t/Z3MHb9RU9819zmwAkj6/bFVLneqooJ1YIeq8v3LIIzN4Hz6j04Xm5JAYC4faS 6uM4SywqJx3hgAzbiJBGmAVQ1zkK5Xj8GYJh2CQiesJAIcr4CHNOpU5EFkEyvpozd7QP Je5wagoC34EB0P/ImbsDHsR8A7A0dwaMEt1U19YMpCM/GUD/7CTtMuq5SbdsSUKHb6AZ Pis11q6LlxHObK6PgDJj0YRW0T4sd9VEfzBAwX+dUa8ZeRxM2KbYEffQnshgeXTKJA+4 sFAb3VybXO567oj/5aAULZefVD47pu58AJX+9WhuQyjuXofTmoVesrXx9q2vROb+asyA eymA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=lkS3HdLznCxMbsFhlurcWnSrTq5G/SsOZVmpPWKJtBQ=; b=m4R2Z65rM92+JHC8Jpcat5GIgqYPQf7++y6qnVWEZqpsiIQRyNXEFYLgD4uZpf8aHA YV4wKnP8ZZ1m/S0DeTfo4a1V1w6coYOEsJIi1vNzsHvu+d6ZyTHj2QacnLtFU2SSftgW UGNuLm6nd05sni8O3h8eO/IbhS4j6fRd/QAa2qlKUOUd2NHr1fAMvlCsBaFt5blD6b8+ +UiLg8w2wrDC8NaY9n+88HI/lZ2hh6Wg+X8Q5AmWOiP2R1SiIGFCPaVnF2ZkpitYUYjS yrlbSxQ4HzbH+lnLp9Ky/ogHH26kWv+tMFkmyKdUquTjIMY72+XOToraI1IOsrBG+ag8 knJw== X-Gm-Message-State: AOAM533zuLYoz+iDlwmSoObtMzoWTYI9benU6etitKoAqcUYiPQf/cMa dBZQ6mQXth/8LG8p2d8GTuvgaq1NBIo= X-Google-Smtp-Source: ABdhPJy0N/5mGTDUGiPLg/oa1CKfP1NryMz4+xoDwd2Q7Mq0rBOzDSAcrCvbyQsKiYNt0Y3cjToYu7OELI8= X-Received: from ascull.lon.corp.google.com ([2a00:79e0:d:109:4a0f:cfff:fe4a:6363]) (user=ascull job=sendgmr) by 2002:ad4:45a6:: with SMTP id y6mr2091657qvu.8.1599141198093; Thu, 03 Sep 2020 06:53:18 -0700 (PDT) Date: Thu, 3 Sep 2020 14:52:52 +0100 In-Reply-To: <20200903135307.251331-1-ascull@google.com> Message-Id: <20200903135307.251331-4-ascull@google.com> Mime-Version: 1.0 References: <20200903135307.251331-1-ascull@google.com> X-Mailer: git-send-email 2.28.0.402.g5ffc5be6b7-goog Subject: [PATCH v3 03/18] KVM: arm64: Remove kvm_host_data_t typedef From: Andrew Scull To: kvmarm@lists.cs.columbia.edu X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200903_095321_928398_DFBE19F5 X-CRM114-Status: GOOD ( 13.15 ) X-Spam-Score: -8.2 (--------) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-8.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:74a listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -7.5 USER_IN_DEF_DKIM_WL From: address is in the default DKIM white-list 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.5 DKIMWL_WL_MED DKIMwl.org - Medium sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, kernel-team@android.com, suzuki.poulose@arm.com, maz@kernel.org, Sudeep Holla , james.morse@arm.com, Andrew Scull , catalin.marinas@arm.com, will@kernel.org, julien.thierry.kdev@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The kvm_host_data_t typedef is used inconsistently and goes against the kernel's coding style. Remove it in favour of the full struct specifier. Signed-off-by: Andrew Scull --- arch/arm64/include/asm/kvm_host.h | 4 +--- arch/arm64/kvm/arm.c | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index e52c927aade5..16adbefde1cc 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -262,8 +262,6 @@ struct kvm_host_data { struct kvm_pmu_events pmu_events; }; -typedef struct kvm_host_data kvm_host_data_t; - struct vcpu_reset_state { unsigned long pc; unsigned long r0; @@ -565,7 +563,7 @@ void kvm_set_sei_esr(struct kvm_vcpu *vcpu, u64 syndrome); struct kvm_vcpu *kvm_mpidr_to_vcpu(struct kvm *kvm, unsigned long mpidr); -DECLARE_PER_CPU(kvm_host_data_t, kvm_host_data); +DECLARE_PER_CPU(struct kvm_host_data, kvm_host_data); static inline void kvm_init_host_cpu_context(struct kvm_cpu_context *cpu_ctxt) { diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c index 46dc3d75cf13..1af4c77feda2 100644 --- a/arch/arm64/kvm/arm.c +++ b/arch/arm64/kvm/arm.c @@ -46,7 +46,7 @@ __asm__(".arch_extension virt"); #endif -DEFINE_PER_CPU(kvm_host_data_t, kvm_host_data); +DEFINE_PER_CPU(struct kvm_host_data, kvm_host_data); static DEFINE_PER_CPU(unsigned long, kvm_arm_hyp_stack_page); /* The VMID used in the VTTBR */ @@ -1538,7 +1538,7 @@ static int init_hyp_mode(void) } for_each_possible_cpu(cpu) { - kvm_host_data_t *cpu_data; + struct kvm_host_data *cpu_data; cpu_data = per_cpu_ptr(&kvm_host_data, cpu); err = create_hyp_mappings(cpu_data, cpu_data + 1, PAGE_HYP);