Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3566228pxv; Mon, 12 Jul 2021 21:37:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygE/Bz1F0Y7qKEvn4sY4yTj0gKxF4x+iDuqhrRnv8YMuDLR7BquDHwKUFK86A9FTeF+DGM X-Received: by 2002:a02:6d12:: with SMTP id m18mr2145348jac.102.1626151039149; Mon, 12 Jul 2021 21:37:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626151039; cv=none; d=google.com; s=arc-20160816; b=PFz4ViVFDYqGxpyR4YB/F0thEncuQovJPpFMfxVTXyYD4K/nSqvOZcUcAr+u0UmWtG eGiJZrZv8oFwWRyetC+CRMg7XQX+mOn03CKhmzBW4kZzcvybJUD/uH+i0R66RRW83mK9 W7mtYcz9IYSRKkbRysVIG/yXkBQK5dmB4n+PIBL7MmQLRrJNmG7AnkcLVWtqBJfOO7A6 6cD4HA6XWzrbg7H/8/+M3Vk/QC75U9ytLDtaxsAIKB8d3lvHCw7K5k6a+PAEEj6mzwne 4M11ov7Rel8WRmKeLrD75EnH1JCs8VdrQs8UD1nGkmTQh5x10rCxedD4a2OkkZ9yMDNC 7Qag== 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:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=jj6UyBOyXEzLFWsMg+oxI+l23bxA8dSQx3WFTtDkRN8=; b=bpodTLJn410SMJQcjklb5nx4K4/yuBwQMgWTdRLw649Q3PX3gX/lxsy0HSmsEUenUT j5ULUkyK/KTW8HV+pQs8bBgt3ualtl+hrAKDtG1V+J8FkSQ+TOjeVU6/caO3ToWpmIU6 sG64xEs6006CthVChA7aKW5YLBZ9L0IoMbifvDjjX+dpeDZMYjFUE48zdjXgq4RMTMfh Qum4fOgdDp4NgpVc/rnQ0Px8pZiY8Zmw0VNEOK0aYUvBFxo5+uwH3+ZazcKowVOoi1Ee JxGW+EXYuxBMyguMJYglA4Agok+9QJF2RFca6Rj32Q/Fy9mya+cicWr6ZFSM2OjWuGIJ FBGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=X2LLF0sH; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si21171283jab.33.2021.07.12.21.37.07; Mon, 12 Jul 2021 21:37:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=X2LLF0sH; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230074AbhGMEi5 (ORCPT + 99 others); Tue, 13 Jul 2021 00:38:57 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:50420 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbhGMEiz (ORCPT ); Tue, 13 Jul 2021 00:38:55 -0400 Date: Tue, 13 Jul 2021 04:36:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1626150963; 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; bh=jj6UyBOyXEzLFWsMg+oxI+l23bxA8dSQx3WFTtDkRN8=; b=X2LLF0sHciBknYHGuLByDH9sM5khpkVqiHnMg9B2l2Qnw0BAV4eMMqOsgtIr6LohnlKC+9 9ksSq13lz96Z9290FttSJXclTtVZAr2z/aFqIG1EXt+/RknoJdwHKkQ6NgdocuiO3jn1rk i6hEzTOsYgrgF0bNYp4RXXFeN2v/lPlNw6mJgDnc5epqLU9d/a2Pih1nQaCVeutdA57f65 M4bj3Y0E+bwr7YnwNk9j7n7dIawc3teoXrXHIf4n1SasR8rVNXXnOBS0Ntcfuj6BmOaWwz 0sPTttc4A5+QKrvkoIenXocPlg2hCSJM2BCwgWByOr7ORH1prsQK5/sp1bA+sA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1626150963; 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; bh=jj6UyBOyXEzLFWsMg+oxI+l23bxA8dSQx3WFTtDkRN8=; b=2CFfZDq3CEjJvoKyw92cqd4H+9W5ZSuzBY7s8OEaKfA2kDlmh+ClSrL1nrNx+yCAM2gDFS tGQ79q4OxkPfoyCQ== From: "tip-bot2 for Ingo Molnar" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/urgent] smpboot: Mark idle_init() as __always_inlined to work around aggressive compiler un-inlining Cc: Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <162615096187.395.16156439314770075462.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/urgent branch of tip: Commit-ID: e9ba16e68cce2f85e9f5d2eba5c0453f1a741fd2 Gitweb: https://git.kernel.org/tip/e9ba16e68cce2f85e9f5d2eba5c0453f1a741fd2 Author: Ingo Molnar AuthorDate: Sun, 11 Jul 2021 08:26:45 +02:00 Committer: Ingo Molnar CommitterDate: Tue, 13 Jul 2021 06:32:59 +02:00 smpboot: Mark idle_init() as __always_inlined to work around aggressive compiler un-inlining While this function is a static inline, and is only used once in local scope, certain Kconfig variations may cause it to be compiled as a standalone function: 89231bf0 : 89231bf0: 83 05 60 d9 45 89 01 addl $0x1,0x8945d960 89231bf7: 55 push %ebp Resulting in this build failure: WARNING: modpost: vmlinux.o(.text.unlikely+0x7fd5): Section mismatch in reference from the function idle_init() to the function .init.text:fork_idle() The function idle_init() references the function __init fork_idle(). This is often because idle_init lacks a __init annotation or the annotation of fork_idle is wrong. ERROR: modpost: Section mismatches detected. Certain USBSAN options x86-32 builds with CONFIG_CC_OPTIMIZE_FOR_SIZE=y seem to be causing this. So mark idle_init() as __always_inline to work around this compiler bug/feature. Signed-off-by: Ingo Molnar --- kernel/smpboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/smpboot.c b/kernel/smpboot.c index e416304..21b7953 100644 --- a/kernel/smpboot.c +++ b/kernel/smpboot.c @@ -47,7 +47,7 @@ void __init idle_thread_set_boot_cpu(void) * * Creates the thread if it does not exist. */ -static inline void idle_init(unsigned int cpu) +static inline void __always_inline idle_init(unsigned int cpu) { struct task_struct *tsk = per_cpu(idle_threads, cpu);