From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A45AC1EB44 for ; Thu, 31 Oct 2024 00:43:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730335417; cv=none; b=XK3IZBnTyRx5syaD0IBVk5W4K8/nEQczR7cBMQKMUUT0OnjXr6KZjIJjYkMcn2yLLAQAqE+itkA6ZrGlrAc8sKkPpfPLAh7Gl/7ijU+5g4c/3QIcXFMCfiKEh8ieqyWCXuni4LHxwAHZKP+yEreT7ThHSn10KZUWQb+Fu50wp6A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730335417; c=relaxed/simple; bh=mQwaKkURbifMZiDHraDc/5oFkvSgynWluwX7GIK9IV0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=JnbcGzjMzimr+bsSjEmuq13wHhBYI/nnjBYQN90ezhZABTtXIyA6KY7CLz8nSGSwt6WSAMiM2s1WKjO2nD8Tr2X7755zeUPdqaZHphztV/uv7FbuAObFQhTeAojSDrV0f3Kv/iE05/MHxDJ5Ik9ENaprIW/X3sxWAb/UC8ZgDKo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=PxX1AMZx; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="PxX1AMZx" Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-6e9e897852fso7742787b3.3 for ; Wed, 30 Oct 2024 17:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1730335415; x=1730940215; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=Lc9Ko3rusE2y1usfYJVqx+IQsEW0RdfxueyJA1MxufY=; b=PxX1AMZxqDqKmcfpXTv2cz7P86pNe/hXtXI55ZzMYmX/MGFHGNrYWTMtvEAlF3dsls J54gUbwPRKAlF5aIOzB5kmtLnSDTr/wa7JWH4epeF98JEo8D5na0i2hRWyTcueByXkg5 y83yNp6P8M838388rAvXkRsE5qZrxvmxzY77iOZPrdg6aulGbJzY2iI6S+S2S0PgyNzC Q6DcwBcOQlaIqLSA3ReMm4QKFycik3oz7xRGTzjrPGXcq9ESz1blEbHfa3g3wC9SzdqG AJd/93DcyiMCmXqv9ZJdv4pQG93rY1Y2EKoqBZCzRmRhvCdvRGXrhBaSy3aAe/TTqPkZ uvNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730335415; x=1730940215; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Lc9Ko3rusE2y1usfYJVqx+IQsEW0RdfxueyJA1MxufY=; b=NSQOeTy/L7Au/hutz4BOuGC9DENSLPRcumnF8DCMtz+3gpn+Nanjwo7fW3utXXQbDn s8xfwSyo9Y0vMUCt0bzgiUc09ryIFoY6s91+XvBzyyulmGvhPSl6+JAf9ceC5CYBQmLu F9yHNDFdzB/6pP1EfQ5ZfM84eszr4uo7Tv4J71dtbP5uSUh5W+J+ytHTShiFEOEQNaeN cjc6ynV0Mh7kDOeSGyjvycnqgC+P5P3s26Ih/mPWQnLp4wNKC5OomSvNHgWejjagXJCG gc6OzXUUN/HATVjCojlFIFARm3ryX1ZKi10KFVY9qzJipP96k9fuiTiZgZrdVqspcPuG XzyA== X-Forwarded-Encrypted: i=1; AJvYcCVEXuHMSCZy7JgMMR3zneYTVeAUI/y0BUuzF4t6TeIHsyll037ycF+AQT5PGmKLI9rhJK08k6ZBzYuw7rY=@vger.kernel.org X-Gm-Message-State: AOJu0YyTXR5MG3Pqtf8+Pds4Ek82Vua/SIFjPFGLBa2DpTRpnA4bX4Aj vF8Umgi0wbvgZymjqiVA9ugO18+96f6grxoR1hbncxCTFMMeICbN9Kknktl9jokM1wcpRw9+RUT 7dA== X-Google-Smtp-Source: AGHT+IE5CV6w7aHkdUCJhDlcvvVHFUDLTLIJOE4n078/KB1R9SLnbLrJSAMahhcc96u9kY1YecUcK67MDbo= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:9d:3983:ac13:c240]) (user=seanjc job=sendgmr) by 2002:a05:690c:3808:b0:6e2:12e5:356f with SMTP id 00721157ae682-6e9d8b214c0mr13625677b3.3.1730335414769; Wed, 30 Oct 2024 17:43:34 -0700 (PDT) Date: Wed, 30 Oct 2024 17:43:33 -0700 In-Reply-To: <20240906221824.491834-2-mlevitsk@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240906221824.491834-1-mlevitsk@redhat.com> <20240906221824.491834-2-mlevitsk@redhat.com> Message-ID: Subject: Re: [PATCH v4 1/4] KVM: x86: drop x86.h include from cpuid.h From: Sean Christopherson To: Maxim Levitsky Cc: kvm@vger.kernel.org, Thomas Gleixner , Paolo Bonzini , Ingo Molnar , Vitaly Kuznetsov , linux-kernel@vger.kernel.org, "H. Peter Anvin" , x86@kernel.org, Borislav Petkov , Dave Hansen Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 06, 2024, Maxim Levitsky wrote: > Drop x86.h include from cpuid.h to allow the x86.h to include the cpuid.h > instead. >=20 > Also fix various places where x86.h was implicitly included via cpuid.h >=20 > Signed-off-by: Maxim Levitsky > --- > arch/x86/kvm/cpuid.h | 1 - > arch/x86/kvm/mmu.h | 1 + > arch/x86/kvm/vmx/hyperv.c | 1 + > arch/x86/kvm/vmx/nested.c | 2 +- > arch/x86/kvm/vmx/sgx.c | 3 +-- > 5 files changed, 4 insertions(+), 4 deletions(-) This missed a necessary include in mtrr.c (maybe only for W=3D1 builds?) arch/x86/kvm/mtrr.c:95:5: error: no previous prototype for =E2=80=98kvm_mtr= r_set_msr=E2=80=99 [-Werror=3Dmissing-prototypes] 95 | int kvm_mtrr_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data) | ^~~~~~~~~~~~~~~~ arch/x86/kvm/mtrr.c:110:5: error: no previous prototype for =E2=80=98kvm_mt= rr_get_msr=E2=80=99 [-Werror=3Dmissing-prototypes] 110 | int kvm_mtrr_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) | ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors