From patchwork Tue Jan 5 17:44:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11999957 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C40FC433E0 for ; Tue, 5 Jan 2021 17:46:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1746220449 for ; Tue, 5 Jan 2021 17:46:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1746220449 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=pwkfZq4+RwL4bMmoQhMCcBxrGzYXbhKFEFEchIE+lJY=; b=dcIGklw/KAD8r63DlV6sn2B7aI bzGpEdq7XRrJjg1a2hIXrGW9IBBBjuH8wY+hyQFzXdD1+mqd0+eT7zNQy/8z7lpjOf1TS7isSxNXz I0uGW0GBpit59bpEzPsg/m9F9ANeIiWk21MDfNunItceu/08ARYd1w2bNoa+1dn9FxAMFCKncEEPS vR605sv2bzFdIvG4GnprLgdtTcywuVhDXq8wjm0pwoMJJ8emx4Ak9oeOmidnXK9x1eDp4queYLK4D qZWIxnDblpVMt6/1yVKpW4eMn4kh6OFYeshmAUfTy94U31GeHckDx0KnwMm6t9kXsVfx8W7dXIN1J HsTVquxw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwqO5-0005qY-2m; Tue, 05 Jan 2021 17:44:53 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwqO2-0005pa-KU for linux-arm-kernel@lists.infradead.org; Tue, 05 Jan 2021 17:44:51 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2A6A820449; Tue, 5 Jan 2021 17:44:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609868689; bh=TjjlwPMS6rylNBKyHvGAxREpk7KDsSRvPjUyiApN9c4=; h=From:To:Cc:Subject:Date:From; b=JcQTb9V2t7KutYYl0TuGwdhXkuwLOOm4JQHCGbOjBVobZDyJpChtLwFgiIRs0TU+G VUx51LQhg4u6iaVTqM+hBDvpLblH4T7EmvPum4XqWvQ1+RCSMKaE1OCEMSMRZtmBaE ogwxOJab3WIewonz0RYTyI8TblKdRVuuVBv1JJgMXbpDj2DFHJedv1Snrd8JTsk02P VWyXtpzb7nP+MJvkB9eymWhxUHBYWFIJdT15XbXwhEf7fG+h8eITXAvSe7wl9MeBpl IGaszDrjqBpDG3J7eiEnA6XSoKzXOeTTPiKl7VOlc/nbjMGu1o/5vJ8dEYeFIZxS7S M9qP2gWV1uMbA== From: Krzysztof Kozlowski To: Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] soc: samsung: exynos-chipid: correct helpers __init annotation Date: Tue, 5 Jan 2021 18:44:40 +0100 Message-Id: <20210105174440.120041-1-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210105_124450_751046_74F94E15 X-CRM114-Status: GOOD ( 13.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel test robot Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org After converting to builtin driver, the probe function should not call __init functions anymore: >> WARNING: modpost: vmlinux.o(.text+0x8884d4): Section mismatch in reference from the function exynos_chipid_probe() to the function .init.text:product_id_to_soc_id() Reported-by: kernel test robot Fixes: 352bfbb3e023 ("soc: samsung: exynos-chipid: convert to driver and merge exynos-asv") Signed-off-by: Krzysztof Kozlowski --- drivers/soc/samsung/exynos-chipid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c index fa6a9b9f6d70..5c1d0f97f766 100644 --- a/drivers/soc/samsung/exynos-chipid.c +++ b/drivers/soc/samsung/exynos-chipid.c @@ -44,7 +44,7 @@ static const struct exynos_soc_id { { "EXYNOS7420", 0xE7420000 }, }; -static const char * __init product_id_to_soc_id(unsigned int product_id) +static const char *product_id_to_soc_id(unsigned int product_id) { int i;