Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9117178pxu; Mon, 28 Dec 2020 07:04:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1s7ta6wXvIfaGweAQ3RbHILfpXQTocXi3jWJU/51+RXdwhy+WVnQarwXmP/Ud8kkrr/RH X-Received: by 2002:a05:6402:3192:: with SMTP id di18mr41857969edb.332.1609167887486; Mon, 28 Dec 2020 07:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167887; cv=none; d=google.com; s=arc-20160816; b=NSlwwfj2Yvdy549cQ8nk+c4P2iA6RQjiC3JjAc9BVP7mDjBHq1k/nuMUtplpoWbAXo obo4a4NbSOCDoCoD9OhS76184qc7kaBWTIow6wFxmtE0MugrtBaA2qecBxj9N8boQmvU LvqHyw9upBPf7LLCZKOLCDGGZvQxvLLNJAH/pcziT9U3fbP96F2tFQ+5tw1FbwHd63+k YJ0Haw7LdcRIQwK9a/XpjiJBYUi+gIOjSCZhBcF2YeFDih+qAG5RYCxz/spY2mMEXYFZ WGFVDfpbPGEJR7aYWntMbOIXZqomMOEhHxWoo6dEzCEH2qy8ivo4ca4UiCLsI1N2BZ8E 19cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Q5Z/dPjVLeMn9YCAbvfVQzZHncsETj5t8btU76z9Qyk=; b=hSpp3Nn9bAz1gz0tivdcH4mokWhrHCaLXE7vEEWFBYV5d7PVhRNeOvVDpcv9A6My5X qNXG6dGaZmcH2MBJPrz4REhOuAMFFbaSKbldYxlqM8nbdHgGQiQGdTkb9Lj8CizfuC+p TUkEBg1qAS16sHExmUYYtxhp9q5zkSXRuRHrK+1vdGhYntgP94J+ZqhBnX++gyEsoa+e zvz0KYu30MX7MuDWMeiaLY8+D/0PUSoRKyyoWCfZ4uEGYhfKbpfb6h4Ppdcfe2kKz+l9 teW9Ckaw71uAenCXOd7TsoV/ThPmKORai+fbQw3+XOk9+1vGCj5liLujdrKBoJlnSl+p McLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GLFsseuf; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ot14si18422437ejb.493.2020.12.28.07.04.24; Mon, 28 Dec 2020 07:04:47 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=GLFsseuf; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408127AbgL1PCp (ORCPT + 99 others); Mon, 28 Dec 2020 10:02:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:47222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439960AbgL1OMt (ORCPT ); Mon, 28 Dec 2020 09:12:49 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 46F7A22AAA; Mon, 28 Dec 2020 14:12:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164753; bh=dV46qeBfPLQJJtP+a2mxDy22q/gjmHpFLrDFTHvHiS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GLFsseufUZdrgfUTEKMCwaYPhBNvad8gBO2t4t3aiwR1uDWeR/U8a1iTRaDmawP0C NqcYYGA6iEmPd6+yjmhMZK6Wsezuj8DUGGa7PAK08H1BJf1ahR7SjGTrvshUmEkwu9 qMJgmcK4urWKpYzPtyWv3Zhc3MIDb5clUZXkIR+0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Daniel Lezcano , Paul Cercueil , =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20 ?= , Sasha Levin Subject: [PATCH 5.10 287/717] clocksource/drivers/ingenic: Fix section mismatch Date: Mon, 28 Dec 2020 13:44:45 +0100 Message-Id: <20201228125034.780980192@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Lezcano [ Upstream commit 5bd7cb29eceb52e4b108917786fdbf2a2c2048ef ] The function ingenic_tcu_get_clock() is annotated for the __init section but it is actually called from the online cpu callback. That will lead to a crash if a CPU is hotplugged after boot time. Remove the __init annotation for the ingenic_tcu_get_clock() function. Fixes: f19d838d08fc (clocksource/drivers/ingenic: Add high resolution timer support for SMP/SMT) Reported-by: kernel test robot Signed-off-by: Daniel Lezcano Reviewed-by: Paul Cercueil Tested-by: 周琰杰 (Zhou Yanjie) Link: https://lore.kernel.org/r/20201125102346.1816310-1-daniel.lezcano@linaro.org Signed-off-by: Sasha Levin --- drivers/clocksource/ingenic-timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/ingenic-timer.c b/drivers/clocksource/ingenic-timer.c index 58fd9189fab7f..905fd6b163a81 100644 --- a/drivers/clocksource/ingenic-timer.c +++ b/drivers/clocksource/ingenic-timer.c @@ -127,7 +127,7 @@ static irqreturn_t ingenic_tcu_cevt_cb(int irq, void *dev_id) return IRQ_HANDLED; } -static struct clk * __init ingenic_tcu_get_clock(struct device_node *np, int id) +static struct clk *ingenic_tcu_get_clock(struct device_node *np, int id) { struct of_phandle_args args; -- 2.27.0