Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp971829rwd; Thu, 15 Jun 2023 04:51:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4weO4a+ORO7qsrjNj04dub18+4MlU1TC1dkQEqlymVqESPbD57YqA/kCe48XuuIvqfcXZk X-Received: by 2002:a05:6a20:394c:b0:11c:d2af:70a6 with SMTP id r12-20020a056a20394c00b0011cd2af70a6mr4394200pzg.28.1686829915201; Thu, 15 Jun 2023 04:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686829915; cv=none; d=google.com; s=arc-20160816; b=bSLhw+xmYaVhPDo5quB7uo1q8U+7OqhjPfQVTRjWNt+7fh4nAm3NdfHCDnn9cs/h+M 2AQmhmG2uxmV9OxMzBp5N0Ex9Nj4TbEl4vh/4E9/gYgsr6nHAtkGM8o0KiLwSq+4iFOL HV0hGfrJsdbNXTNEzZVrIJWQs1/ZSmgiwBbX7QBNmHadxrRtMhyn0xuZEtWD1IhFgsTw pWucG3U/9yJuB3+LOvyRYasSLNTbPD7iSrcYgaFMwrsW6xvr+4qMxCyafsxyywAfRLkC qxJeNBWkJ4064SWOYpUzAOMJIsaY1yt0D+nYII3CeMQVFkwZQHkrtEMBjZANFAbbBs1X EF7w== 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=nT57VJbnUGUseO6w/cXwt5+aKYMfvTHj1ZD7CjcyYzs=; b=UV3/cZIhUpqJXzTnRWMsmHWJ53MPs+hMO0xZ6QgLiTMx3iofAZnFZHKp1sZnp9cAtr MR8q+1PuJIoArQHYkghiTyDwczsmYLNXaPZfkasb9jjpDc9VW5SNCcSHU0m5K/Pw2jZu hd5itDC+nL2luaTk2OVqz6UHMJUpQmPAbAf7xP/aXNPFwL/1radO22FIAZEjQ86NiEfY FAtgMsC72OsnbiBBH+7psnXcKEnYGAI7CWVykGtYYJ2grw5BbJ/Hc8+Vk+XCdGtJ1bKd XHL4SF2iIjrCdcbsZDuQFaEyIo5aw0/d4SQp6iYXLyfuOnwdx0JdN+BLG0AGyfn0skGA JUpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Jp37znBP; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=vpKzE87n; 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 f17-20020a170902f39100b001b2439e8befsi8709628ple.472.2023.06.15.04.51.42; Thu, 15 Jun 2023 04:51:55 -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=Jp37znBP; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=vpKzE87n; 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 S1344063AbjFOLkS (ORCPT + 99 others); Thu, 15 Jun 2023 07:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343940AbjFOLiz (ORCPT ); Thu, 15 Jun 2023 07:38:55 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E08430F3; Thu, 15 Jun 2023 04:38:15 -0700 (PDT) Date: Thu, 15 Jun 2023 11:38:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686829093; 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=nT57VJbnUGUseO6w/cXwt5+aKYMfvTHj1ZD7CjcyYzs=; b=Jp37znBPYrAxSWD3V3H5K65Aow3JMdWiUeOJZY+QTfJ03R832709wEyA/yEOuySuBSnhvx ru3tMRnDsdBwYCRJdnhVyuHJTSgtHOLH2/pac9dsToQBhHb4CSdpTte+4TadwmDN0IuHd2 ckbKGeeQRlsgoSKReA32eto3RkAwsC4I9i9Q1vyI9W1uaVW5CNirBu48/k46/dTP76z9AB NfWDBEzTNkEIJnN2WUF9Fhz4hTuotpFKUtnufrxlAZb51rmcFKbW7zvS2sAmaqSKFsHCkE m8MBYFeQVSc1tIC5i1dnfzjZhQXi0psC6GhIAoEFSq01XM8OhRo+y8LGUOxgRg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686829093; 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=nT57VJbnUGUseO6w/cXwt5+aKYMfvTHj1ZD7CjcyYzs=; b=vpKzE87nvFnH/5z6FVLwSjEFGNcFTVleULxNW4smnly5CuBWxDxF+Ub+shb3D/jJCUP5uy pvM0N/odPtBL8+Bg== 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: <168682909332.404.7850567326097465761.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 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: 1a17ce3d7dd5fba3876ba459f0d037b691788123 Gitweb: https://git.kernel.org/tip/1a17ce3d7dd5fba3876ba459f0d037b691788123 Author: Miaohe Lin AuthorDate: Sat, 03 Jun 2023 15:36:45 +08:00 Committer: Peter Zijlstra CommitterDate: Thu, 15 Jun 2023 13:28:21 +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;