From patchwork Mon Dec 28 12:44:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 352697 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp9815581jai; Mon, 28 Dec 2020 07:08:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQqWjgYFe8/98lMjdhK0BCV6FlbiW2JNKn20+HEVdyRC6cnNDad7Kf9CeHaBdPc52bhLkV X-Received: by 2002:a17:906:add7:: with SMTP id lb23mr44078968ejb.352.1609168116068; Mon, 28 Dec 2020 07:08:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609168116; cv=none; d=google.com; s=arc-20160816; b=F/9l1DADLLnyu56tNyNFyNVP2fdPeFZDD0P4myumuVb/QGUhWS8YMbbT966SyGbzaH sybJYSLmZBrgEUxohIgtDQUWJm/cioE1kVVNaN1gsJRK48EwSocPmFOUtfilkOnStm2X 9B36txcr+uNC9zWXzxSJoHzd3pbEQplOEsQhV/sFn2gy9V757AA56UXkYCxuPJ0KlFYM mBvCE368Evap5R16QNVa9aGslbh8855/8AS/FCGc0Y6BSie1i/epl0HRD5bnNncnAfaq DzpMBtms0GTHbb+cRaJaZNbnnYmvcEaoOCnOhOBoLClqAjI3rwa4CON14QC4kNRFWYUz QprA== 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=uLLTVKZlfXnHQFNHrjf0Ma93IAeoCxFSkLVIy+/6SYTk6lxBTBV07RZl+f1RU+38Fi rtMtt6XnSFoBX+fV892BcpAglkhDQBK2qTa8J1IsnVeMbW6TO5kaMhsLfAKxAJVLDTCT gDAMAD5UuT9Uqm6nzFETeQmbpxJVMWF4zh3+4x2WegzdDxnELxLXxyJWaEaHQX+GCVY7 q/n1welYFRHajh8TKQvSQv4gM+QVWtUenNs9A9JumD4aULz5Ex2jN7oKk7EMq27za4ll qSPYxbA87x+a3fDR44/LO5sL2WTkrApumUXZW9GKp1eMrQo96NoWj0JKACkcrV9vglcr JUAw== 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 stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 e26si6853795edv.153.2020.12.28.07.08.35; Mon, 28 Dec 2020 07:08:36 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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 stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S2408125AbgL1PCp (ORCPT + 14 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?b?5ZGo55Cw5p2wICA=?= , 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 Precedence: bulk List-ID: X-Mailing-List: stable@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(-) -- 2.27.0 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;