From patchwork Fri Jun 16 15:16:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 109199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1430077vqr; Fri, 16 Jun 2023 08:35:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7788cYMcyPQd2bUjffhciE9ZjPwiEa6mSoTdfOKho+12B6VkmkRsccJGkJo4oOmYFtiheA X-Received: by 2002:a05:6a00:1141:b0:663:ee11:b1 with SMTP id b1-20020a056a00114100b00663ee1100b1mr2551433pfm.28.1686929721440; Fri, 16 Jun 2023 08:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686929721; cv=none; d=google.com; s=arc-20160816; b=GuMOMpqvKWLOgm1k23EpOHlXq1GkjIUbnjK+3W7vmMw3m8RviWNnrts4E38rjVHD2H e381+WFJ1/0LpTh7XlaOkDn9+lymKZckbyEX8QPahCs09rcc8ZUlJ523Xo53bbLYGO89 Kls8tYo+McPIxlQpAy5Y6hmHr6PkPrGlupUT8KJtF1QRxBqJ2J/zK0vpVbKbOiD+5F5T YlHPE2mZfi7Icn3YG8MQdc6f6Ardxxf0vcXFr2CgSYXCCZ2ntg2mtYnt37p7GlnnAD8l wGQL5A4bLGnUz53Ti9WTUCJC+X4W49SVk8s8paiHT/Np7cBbK+k3tYbyMW9yHBXC2dIL PIRA== 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=f91D0xmWauZGJUDw/aEInTSPCvvm5F7WQVK8OGO4AMU=; b=0pVipVuahpCJsIYbuKQbLc+GppToxyNi1WE821Uo8XeCf6ytGcwQz5vSWIKA7zWbNS tvSrVjEz0tR4cmpIgbEMb6QHvrfu5OpROnu+/kuF7uf5NtQyRb5Ev4jcmadcdJq4oIaz By/Q4tPw/3vxWs84/2J1fmBbcME6isPRYDAvAOjjIxGajdvqGbuGk07Aw7yu1+Ayhfrz xpE0L7ydGFWkf0j3wttEy+ty0Fs0Al3HTnVWGJQ+nbsstdavgcHcl7wI791jvuufjbDW P/CADCsoVmM6Fptg47B4miFQ5QZ1QVo5y7kKfMIUknL4Jd2rUurO4FYN/V0KixNcOvQF eptw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=mWsjzbes; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u203-20020a6279d4000000b00666eb3ab9e3si211841pfc.387.2023.06.16.08.35.07; Fri, 16 Jun 2023 08:35:21 -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=@linutronix.de header.s=2020 header.b=mWsjzbes; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345907AbjFPPQs (ORCPT + 99 others); Fri, 16 Jun 2023 11:16:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231695AbjFPPQp (ORCPT ); Fri, 16 Jun 2023 11:16:45 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC24C30FF; Fri, 16 Jun 2023 08:16:43 -0700 (PDT) Date: Fri, 16 Jun 2023 15:16:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686928602; 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=f91D0xmWauZGJUDw/aEInTSPCvvm5F7WQVK8OGO4AMU=; b=mWsjzbesIw6ijtKIY+z03FxLkxjejwaflhIsWVUPdCPgpHor+hEZQG33H1ejDAXUfBVgPI 39crKvqzEVEn4lfSTGYyXEa2HL2R23GkOP2Ox7QkeEZGpgg836bDjomwn7t0JoSfy5DfTR nVc17Nzou5b6SVp/k1w/gjKMs6w+B4zb1ua6pHQiLb1hE8CxgnjJ1zPK8xKyH5NV6cLX0m dejk1qOkJ+95OhVClNmNFqr2dFfB4YfJ/0vS09BV0lQh9g/RhHGEL3Ja8uKlm/o1keEZem FoDqris0O3wRt/Ce3E4LMKkU1oSXQi0ocUjo9eRdPLiV1A8SbGr1znUrKOjVyw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686928602; 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=f91D0xmWauZGJUDw/aEInTSPCvvm5F7WQVK8OGO4AMU=; b=HR9NDpAzdQZrQPDwSjLulFytNTUq+yszAXG6CRh7IcEcLDVCnjtYzAxJNCK6QfvdWFtcpV GH1taWE11g0+utDg== From: "tip-bot2 for Miaohe Lin" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/topology: Mark set_sched_topology() __init Cc: Miaohe Lin , "Peter Zijlstra (Intel)" , Valentin Schneider , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230603073645.1173332-1-linmiaohe@huawei.com> References: <20230603073645.1173332-1-linmiaohe@huawei.com> MIME-Version: 1.0 Message-ID: <168692860207.404.4144241334175555026.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768770963483840757?= X-GMAIL-MSGID: =?utf-8?q?1768874019836161220?= The following commit has been merged into the sched/core branch of tip: Commit-ID: 0cce0fde499a92c726cd2e24f7763644f7c9f971 Gitweb: https://git.kernel.org/tip/0cce0fde499a92c726cd2e24f7763644f7c9f971 Author: Miaohe Lin AuthorDate: Sat, 03 Jun 2023 15:36:45 +08:00 Committer: Peter Zijlstra CommitterDate: Fri, 16 Jun 2023 17:08:01 +02:00 sched/topology: Mark set_sched_topology() __init All callers of set_sched_topology() are within __init section. Mark it __init too. Signed-off-by: Miaohe Lin Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Valentin Schneider Link: https://lore.kernel.org/r/20230603073645.1173332-1-linmiaohe@huawei.com --- include/linux/sched/topology.h | 2 +- kernel/sched/topology.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index 816df6c..67b573d 100644 --- a/include/linux/sched/topology.h +++ b/include/linux/sched/topology.h @@ -203,7 +203,7 @@ struct sched_domain_topology_level { #endif }; -extern void set_sched_topology(struct sched_domain_topology_level *tl); +extern void __init set_sched_topology(struct sched_domain_topology_level *tl); #ifdef CONFIG_SCHED_DEBUG # define SD_INIT_NAME(type) .name = #type diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index ca44722..cb92dc5 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1681,7 +1681,7 @@ static struct sched_domain_topology_level *sched_domain_topology_saved; #define for_each_sd_topology(tl) \ for (tl = sched_domain_topology; tl->mask; tl++) -void set_sched_topology(struct sched_domain_topology_level *tl) +void __init set_sched_topology(struct sched_domain_topology_level *tl) { if (WARN_ON_ONCE(sched_smp_initialized)) return;