From patchwork Thu Jun 15 11:38:13 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: 108460 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp588508vqr; Thu, 15 Jun 2023 05:17:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57E0Tkx1upoYkAI4vIydE4j8ttg8PKIl+h7H85HfG0y7z6v/Vwe13GOBPUrNpzZlqvIeDg X-Received: by 2002:a05:6a20:1ca:b0:11a:aba8:b2dd with SMTP id 10-20020a056a2001ca00b0011aaba8b2ddmr3657471pzz.25.1686831439653; Thu, 15 Jun 2023 05:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686831439; cv=none; d=google.com; s=arc-20160816; b=EIOUsuRti+jsQ4BkKojezOo4v/BMPLDo4OpzUOy5Fpv11TbVZd1WqxFrFu9AlKtY3W e9IWLGowgB561E/bhv/kBVAKot1UzwRxAgqXq180pXA8qy4nA7ZU9/aNNqc2Ufy5N9na /Lq9xwvwNgxCUmOb6VeIykfAPth9prU/sLEDtvTfgxD4/wJbKqa3ePgeMVanab1RzAQz 6xgsi1SYlV+Gn0myFs26dJhmfb4il1Cj1GfXw9QxzsA41OOuSEOJFy3E25jqgBGEdNQn d7smVjR+29qYRnTnomfXP+D31iADjQ9zN0ufAhrsldJufXGdTWk02FQjG1cU5IFtlhS7 rCEA== 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; 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 n11-20020a63b44b000000b005439d1acbbcsi1726970pgu.440.2023.06.15.05.17.04; Thu, 15 Jun 2023 05:17:19 -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; 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 S1344065AbjFOLkT (ORCPT + 99 others); Thu, 15 Jun 2023 07:40:19 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768770963483840757?= X-GMAIL-MSGID: =?utf-8?q?1768770963483840757?= 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;