Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp860433rdg; Fri, 13 Oct 2023 03:32:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGwmYyUYtbeUqrztNZS55DE3aEhYMERaNGQlTP8W+HYqcrrHavhcol21Fxf9dBVcyTttHrP X-Received: by 2002:a05:6358:e49c:b0:135:499a:382b with SMTP id by28-20020a056358e49c00b00135499a382bmr28714224rwb.7.1697193151969; Fri, 13 Oct 2023 03:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697193151; cv=none; d=google.com; s=arc-20160816; b=HM59yVrYLxCUZjCJGDjwO44eefEhQ8eItvLEZ6+WoIw0o8C7PfUIJqlItW1842gCIa 86GOQZcOxx8vu1pEW6CpDw20XfgvOQXZhzzJijEKejsOqjlMPXROrBlx1PUlugbqZILQ /deLe9WjBTXoqbsX1F1VeJhqS8uNlab+M0IJKfU9KBhKIHfng8vMf5N26TE8SjO0POIp 1NPK/j2rvSyXrMvujfnOiptgrw5lUr5PCFl2pGR7WcnjtUSoRd6LdIdhKtNTf65H4Cqs VEo+ToRmXZKV+ysPSpGDigQo/BmuoMU4X4bYhoF2mxGNvDtLcE3PlSo66xv3Ozx186PO MTkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=8GqFWLwKpBTs9NmQk+Iig1hSCyVU4NpiAHXus0C4MYY=; fh=jyDpbnN4Jam/tI44hvGQUbcJ+ny/WD3skfcKHn8tJZE=; b=iLmclC0A19wwYzsuibtdtCRZflfgs3E/G/um4qpkd+YQlViHfmRfcWw4mO7V/V3rij tX5HdLm+vLrDp9BeiI4hJpeEpGcXqKfjwvCWoMH6OR5Sgi+RfSSeXEg/BklvI04/yMdp 2g3V2jgAaX6kShfxnqMfiRO9yX/cDjWPBfnKfNjZVcVRONn3TIw9JaZHJpgyVuYOMsc/ TgQiBzjudlOIm8dODrYOnNZiAJI3053kIzR2yqmnjQJG9pZJ2ZQXB+u63Kb01PbxZFd6 lFktG0YKPwv+wLlWQb7Uj63BqnjNuMdFNVhAXoTyJm1Z9ffJpP5vM2pMGMEHJ/4Pd+/s UBqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=C9xkqxnk; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id w15-20020a056a0014cf00b0068e4a646d2csi17816713pfu.252.2023.10.13.03.32.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 03:32:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=C9xkqxnk; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 6D80B81BE2D1; Fri, 13 Oct 2023 03:32:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230041AbjJMKcX (ORCPT + 99 others); Fri, 13 Oct 2023 06:32:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbjJMKcU (ORCPT ); Fri, 13 Oct 2023 06:32:20 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5377C0; Fri, 13 Oct 2023 03:32:18 -0700 (PDT) Date: Fri, 13 Oct 2023 10:32:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697193137; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8GqFWLwKpBTs9NmQk+Iig1hSCyVU4NpiAHXus0C4MYY=; b=C9xkqxnkOPfo8XMwxlWuc1XAQDG9/H4lYI2e5ErusY6y4gw2296g/tqhdhYn2m2USH977n UhDoFRgKS9vVFOH1fkMxsaaMuzQ5D3zTARNKBkUB8MUHZpweINzxZa3hOu4I5loA7mUKC7 kwQLs4fd44ih3kaFAp37VuDhpDpaKsco9hnb40N6fp3HjOp53TgafstJIQOanpTcd3ZUZU Cas6JOCsAPDE7SLIOuf9ZQsg0SwjU6NALFUUZ7iZ/pFsQp8ut7Wm1IFwER30qvOuhKDl/j rZkTor6Vt3UWRbBApwX+kNSNoKzjJ+cg2Ig0p120BvV4PymRLPQm3Ew+ZUSAdA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697193137; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8GqFWLwKpBTs9NmQk+Iig1hSCyVU4NpiAHXus0C4MYY=; b=iZRw9O5fftztFdFP0XV6JtFZcbG7KQ+5+50BZC69hgsZkzJTQOH+rqKFPgEynIIZarPHTW Bw8xuy47xSd18kAQ== From: "tip-bot2 for Ingo Molnar" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/core] x86/apic, x86/hyperv: Use u32 in hv_snp_boot_ap() too Cc: Ingo Molnar , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230814085113.233274223@linutronix.de> References: <20230814085113.233274223@linutronix.de> MIME-Version: 1.0 Message-ID: <169719313683.3135.11702474908875768918.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 13 Oct 2023 03:32:29 -0700 (PDT) The following commit has been merged into the x86/core branch of tip: Commit-ID: 92fe9bb77b0c9fade150350fdb0629a662f0923f Gitweb: https://git.kernel.org/tip/92fe9bb77b0c9fade150350fdb0629a662f0923f Author: Ingo Molnar AuthorDate: Fri, 13 Oct 2023 12:14:27 +02:00 Committer: Ingo Molnar CommitterDate: Fri, 13 Oct 2023 12:26:58 +02:00 x86/apic, x86/hyperv: Use u32 in hv_snp_boot_ap() too The data type for APIC IDs was standardized to 'u32' in the following recent commit: db4a4086a223 ("x86/apic: Use u32 for wakeup_secondary_cpu[_64]()") Which changed the function arguments type signature of the apic->wakeup_secondary_cpu() APIC driver function. Propagate this to hv_snp_boot_ap() as well, which also addresses a 'assignment from incompatible pointer type' build warning that triggers under the -Werror=incompatible-pointer-types GCC warning. Fixes: db4a4086a223 ("x86/apic: Use u32 for wakeup_secondary_cpu[_64]()") Signed-off-by: Ingo Molnar Acked-by: Thomas Gleixner Link: https://lore.kernel.org/r/20230814085113.233274223@linutronix.de --- arch/x86/hyperv/ivm.c | 2 +- arch/x86/include/asm/mshyperv.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/hyperv/ivm.c b/arch/x86/hyperv/ivm.c index 8c6bf07..c6edde1 100644 --- a/arch/x86/hyperv/ivm.c +++ b/arch/x86/hyperv/ivm.c @@ -288,7 +288,7 @@ static void snp_cleanup_vmsa(struct sev_es_save_area *vmsa) free_page((unsigned long)vmsa); } -int hv_snp_boot_ap(int cpu, unsigned long start_ip) +int hv_snp_boot_ap(u32 cpu, unsigned long start_ip) { struct sev_es_save_area *vmsa = (struct sev_es_save_area *) __get_free_page(GFP_KERNEL | __GFP_ZERO); diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h index 033b53f..a9630e9 100644 --- a/arch/x86/include/asm/mshyperv.h +++ b/arch/x86/include/asm/mshyperv.h @@ -276,11 +276,11 @@ int hv_unmap_ioapic_interrupt(int ioapic_id, struct hv_interrupt_entry *entry); #ifdef CONFIG_AMD_MEM_ENCRYPT bool hv_ghcb_negotiate_protocol(void); void __noreturn hv_ghcb_terminate(unsigned int set, unsigned int reason); -int hv_snp_boot_ap(int cpu, unsigned long start_ip); +int hv_snp_boot_ap(u32 cpu, unsigned long start_ip); #else static inline bool hv_ghcb_negotiate_protocol(void) { return false; } static inline void hv_ghcb_terminate(unsigned int set, unsigned int reason) {} -static inline int hv_snp_boot_ap(int cpu, unsigned long start_ip) { return 0; } +static inline int hv_snp_boot_ap(u32 cpu, unsigned long start_ip) { return 0; } #endif #if defined(CONFIG_AMD_MEM_ENCRYPT) || defined(CONFIG_INTEL_TDX_GUEST)