Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2528933lqz; Wed, 3 Apr 2024 00:00:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAdJUXFXiyHMevuHcZz2WWFE6vDF5Y931Cc6NQhpY9Tk/LqvMezQDgtrSfrT3XUb/uxJ7a5vPvnjzdrEE0xTM+BXhDHtsH30vapOaRwg== X-Google-Smtp-Source: AGHT+IHcPHcjgVBdIgNSZg8dVS/XG7/v7SRxqm1Hy2iRqUP7M1zHDnfB/68x2U0rwmqD0aXu9yGw X-Received: by 2002:a05:6808:2388:b0:3c3:8533:8871 with SMTP id bp8-20020a056808238800b003c385338871mr18444852oib.7.1712127616270; Wed, 03 Apr 2024 00:00:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712127616; cv=pass; d=google.com; s=arc-20160816; b=ws2NTGpPu0Q7EXRRPjI3EerjFJuC4J2UC0uO8dIcFs5Ne8xAe86qTW6w9arZ3ZVpFp WqynUgSqhKrOsbe6Q4Q4XwQa8PLuB7vwczrwSZS5UioK58d4MsoBR66ZNx+jMokML7xq w3VMSOPg9r+YzdlgStTIXNyogh78kkKNQpf/k3BkT5XpNdLG1xk6T6cuWKrUv5LIsCkx 2S7FmhwN9O4aqt2/M2sl/Dz9WV9Ow8aNyHMZOx+w6pfAKtr/c8oIo4VPKMqRwSmlPYgd q+S4AYy4to++2wsGOqVE5ALHBgYS4mhmhVoJZRBiMlyNikcqh7bmUvktyCNtis3JGIyE BbSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=WK+bCLUwJlPK0cC8dRiKU+R9qSxXMgw6f5WIvjnRYTA=; fh=gZJTxru7ydRpIxurx8mZg5bBk4+6w4AJppHuhPEGsLU=; b=n/xf8D2m3wikNjDYzRmfpDW2ioKyKsnT+wVq9d+2mEo37+6EDM1xoGOe+9Fj0ocEST zza7VoYMkKjTh0ykHwo+9vNoXDxjfnTGf2wRsRpDrOF0P2M5NkJHWeYfxYZC3CINzSiy v2u7jDElyO7FuP8xkV9Bf7FHxqcxCMk9LcLBlYTC6fFTV//kGtVcRGsOPrlvwdArf12Y DSpzweydAKW6eDMTBxJqwC5xBCMFkEa+Jg8X2MaCW1/PvfvH9bcF7qkzYiIz7qv32qFA dDePh++OnSAI01zETMoJlNajoQZWgb6kKtB6Hahy5LJvz9fIQDPyfRH5+7J5G5bPgxxd 9avg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=HzB1vfZ+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-129116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h11-20020a056a00230b00b006eb3c2b0472si6174557pfh.378.2024.04.03.00.00.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 00:00:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=HzB1vfZ+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-129116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E76E3283F68 for ; Wed, 3 Apr 2024 07:00:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DCA5548E7; Wed, 3 Apr 2024 06:59:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="HzB1vfZ+"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="UISgoHEs" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 AA24724B23; Wed, 3 Apr 2024 06:59:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712127595; cv=none; b=iHzZP6DKIeMzz1W/y/BaI89n4C0XwgzESzaPlui+xJg9qXFBUPmMkKwat1SUldiNPZ1By3JMo3BA+1nHd/8xL97DvovrPCtdUrjIIM1yphqQCq7Z7XGGvXnpk6tPOLaQqfFkEIoH5abuIdcamFISFafRmpC1SxvbXicci/HJqEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712127595; c=relaxed/simple; bh=VlfqdKSXYefzmBxkWSQufBOo1HBjBe6rDgGlEVPW2AM=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Li8pz8KRF3DP/SJYiSiEy5/l15eK0txK+/qgp/aMcuSq8GHhLhuV1xmhFi8IZcQMdL0BgFo2cPvhMFCElcIult8Sg2FlG/QIkO6fs0A/BiEFWz70sLnXtVu3z4HYXyIbBngtGbjp2yXIGR9Go2wFHZdKAvcD9Bo4llz5UJbXPl8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=HzB1vfZ+; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=UISgoHEs; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 03 Apr 2024 06:59:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712127591; 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=WK+bCLUwJlPK0cC8dRiKU+R9qSxXMgw6f5WIvjnRYTA=; b=HzB1vfZ+BH1oGnsmwWuwYzVeFzX6RsAjmJaMZUUsLpS8drGcEUvgXE0EdZHHaoSB6xbKLz M8yy1ZFxaYjp9UHUhDezkQbVKXuzhpyG/AZyN3WxNTV+oYi/73hzR3P31V73qnHslLn1U/ 2TCDVChVt2+SqgRI0eGiJS4q9Zvh0SQ3NZzxrJSay+KJXd7DapdcY+FD1I7WvX7gkxCUbA BM7i7cOzJ+MF4sakbauvh9J4B7+rLygvEMkcTYKELLabjuXn+KP3saF8XM6z1D0kO+1fyJ un36gQ7b+QwxnnIt4nZ8y+aMqLxmX1bUiENrJXg7K81EKvk/jtg1weeX1YjS+Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712127591; 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=WK+bCLUwJlPK0cC8dRiKU+R9qSxXMgw6f5WIvjnRYTA=; b=UISgoHEsQaG8/GKJuYmGomFwebsIbZbNiLRUXF4NvvLMHvjztvKDMmm4Evdvt6LDLvGmHQ znfzPMWhT5j2wdBA== From: "tip-bot2 for Saurabh Sengar" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/platform] x86/of: Change x86_dtb_parse_smp_config() to static Cc: Saurabh Sengar , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1712068830-4513-5-git-send-email-ssengar@linux.microsoft.com> References: <1712068830-4513-5-git-send-email-ssengar@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171212759058.10875.1562775554694124882.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/platform branch of tip: Commit-ID: f87136c05714836f1b659365443caccc1bbfce2d Gitweb: https://git.kernel.org/tip/f87136c05714836f1b659365443caccc1bbfce2d Author: Saurabh Sengar AuthorDate: Tue, 02 Apr 2024 07:40:30 -07:00 Committer: Ingo Molnar CommitterDate: Wed, 03 Apr 2024 08:49:56 +02:00 x86/of: Change x86_dtb_parse_smp_config() to static x86_dtb_parse_smp_config() is called locally only, change it to static. Signed-off-by: Saurabh Sengar Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/1712068830-4513-5-git-send-email-ssengar@linux.microsoft.com --- arch/x86/include/asm/prom.h | 2 -- arch/x86/kernel/devicetree.c | 18 +++++++++--------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/arch/x86/include/asm/prom.h b/arch/x86/include/asm/prom.h index 02644e0..365798c 100644 --- a/arch/x86/include/asm/prom.h +++ b/arch/x86/include/asm/prom.h @@ -23,12 +23,10 @@ extern int of_ioapic; extern u64 initial_dtb; extern void add_dtb(u64 data); void x86_of_pci_init(void); -void x86_dtb_parse_smp_config(void); void x86_flattree_get_config(void); #else static inline void add_dtb(u64 data) { } static inline void x86_of_pci_init(void) { } -static inline void x86_dtb_parse_smp_config(void) { } static inline void x86_flattree_get_config(void) { } #define of_ioapic 0 #endif diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c index b93ce8a..8e3c53b 100644 --- a/arch/x86/kernel/devicetree.c +++ b/arch/x86/kernel/devicetree.c @@ -279,6 +279,15 @@ static void __init dtb_apic_setup(void) dtb_ioapic_setup(); } +static void __init x86_dtb_parse_smp_config(void) +{ + if (!of_have_populated_dt()) + return; + + dtb_setup_hpet(); + dtb_apic_setup(); +} + void __init x86_flattree_get_config(void) { #ifdef CONFIG_OF_EARLY_FLATTREE @@ -307,12 +316,3 @@ void __init x86_flattree_get_config(void) if (of_have_populated_dt()) x86_init.mpparse.parse_smp_cfg = x86_dtb_parse_smp_config; } - -void __init x86_dtb_parse_smp_config(void) -{ - if (!of_have_populated_dt()) - return; - - dtb_setup_hpet(); - dtb_apic_setup(); -}