Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp1437481qtf; Fri, 16 Jun 2023 08:37:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5UPTR53KlCp+pk8vvrrUcP/5QhGU+tAPpaomDUvtH7LmMOv96bG4/Nri1VlzjxXJMoZXZC X-Received: by 2002:a17:90a:f2c3:b0:25e:9e59:af1a with SMTP id gt3-20020a17090af2c300b0025e9e59af1amr1853185pjb.21.1686929842113; Fri, 16 Jun 2023 08:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686929842; cv=none; d=google.com; s=arc-20160816; b=fSirXpZPo0AdzzPtVVUKvGzYEKSlBfgLQEtX39pcJ5E720BzMlb274AMukeZnyNX/S YUdOFq1ZMWODBmC9qTXjYpKvoBRKH+TkTYwqOLHNlucu9oz42MW0VfL9nCW1jtiBYyxj XkjGt+U4naguT9iS4R2LCvOb6PS5cvo1PJflkleko22q9+yi/5sKTFysfzEhM//a1lK7 D8ctftVaEkrzkGZ22q4w4dwaw3/E+19e0hOlJFSnwj3SmoVUYJluaprzGAguuQFB0jTp vmuEKw9nBRnwWZf0gdif1ibA1XyC0eIgLw0wtcCXCJJu+qOShqRWHap0jTqt16Jm5DjJ aVWg== 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 header.b=HR9NDpAz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce23-20020a17090aff1700b002402275fc56si1800654pjb.118.2023.06.16.08.37.09; Fri, 16 Jun 2023 08:37:22 -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 header.b=HR9NDpAz; 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 S1345904AbjFPPQs (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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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;