Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp690662ybz; Wed, 15 Apr 2020 16:48:59 -0700 (PDT) X-Google-Smtp-Source: APiQypJGU2Yp5/ZDM8sgFZcK/N86GlSWYkHpzS48zjFC3oSpCtdZANPGzM7RBMvybNRNcGTxgvKL X-Received: by 2002:aa7:d4c4:: with SMTP id t4mr27582768edr.181.1586994539021; Wed, 15 Apr 2020 16:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586994539; cv=none; d=google.com; s=arc-20160816; b=rV9x1EtTHZfUNzdTcj11YWZz9h3rw02lM3JMbBZeDQ30i3fG8IN1EZY8Grj361LhWj xSN3JTx6hhsaink7XIysYtM15Dfyu9xnI2rDJkH8fpQu5sqJh5PL5DY7DJ+jizT71YQr R4F+WT6A2SNaWu3rBRAvtJ/t4EXAmEohk0rxtuoZeQxE8N9GYU0S3vrFbfK5HN/1vQTL LPsqW2yITVMhD+Z1E6KQvUshvpVUKQ4kE1oZIa/xDcf1TOMg+qLyGyVZ6AiO8/5KXJxt +M1NYU5gXtLMc6CXSAf0v8P6nlx+ZPAAn6fbKfPFFVaStqN/mJGln9TCj/UVHqC1/jXh xOUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=2wJItb5Ue3kVHufqe5e6XihdEWWbQAUIs5Zi3t8Wtjo=; b=ixcnbG+KdTQf85oKLFYQ4pdMDjuQNTUL56ijRO1FJdS9boq0oaUHPwH9B3/B3+euyX XkHRZDEpw0+aRoX88nFIKPtSYV1eO3kIyQZxU3KVvb4PUCQMHKF9OE27WUKDFd1khHcN SaozAg+TRMpjYa4eWnt2ZJyB3J4dAgKSaWTCvQkhwi2aRC/AbdFaePgwGXYBCkoiNYGF nac6CTWcjE8Emt3jd84wAb+OGfexje3mRe6ti/kzsTs3UohHUK25+Drfsd6OnjcVQY8G FY9HRgxRkaVweeb/SXL57z9EbD4P8S8MclNqX40mUFTM+cF6NcyXW3p+xWgtK0wOCqOY KWcA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si7124374edu.188.2020.04.15.16.48.35; Wed, 15 Apr 2020 16:48:59 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S369815AbgDOMfo (ORCPT + 99 others); Wed, 15 Apr 2020 08:35:44 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:57623 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S369756AbgDOMe1 (ORCPT ); Wed, 15 Apr 2020 08:34:27 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id E72894E2388; Wed, 15 Apr 2020 20:34:24 +0800 (CST) From: Wang Wenhu To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, oss@buserror.net, christophe.leroy@c-s.fr, linuxppc-dev@lists.ozlabs.org Cc: kernel@vivo.com, Wang Wenhu , Michael Ellerman Subject: [PATCH 3/5] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram Date: Wed, 15 Apr 2020 05:33:44 -0700 Message-Id: <20200415123346.116212-4-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200415123346.116212-1-wenhu.wang@vivo.com> References: <20200415123346.116212-1-wenhu.wang@vivo.com> X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVNTkxCQkJCQklITEtNSllXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Kzo6Sxw6Ijg*FghJKUIsIzpD HT8aClZVSlVKTkNNQk5PS01OSEtOVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUlNTEM3Bg++ X-HM-Tid: 0a717dd555389376kuwse72894e2388 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Signed-off-by: Wang Wenhu Warning information: MODPOST vmlinux.o WARNING: modpost: vmlinux.o(.text+0x1e540): Section mismatch in reference from the function mpc85xx_l2ctlr_of_probe() to the function .init.text:instantiate_cache_sram() The function mpc85xx_l2ctlr_of_probe() references the function __init instantiate_cache_sram(). This is often because mpc85xx_l2ctlr_of_probe lacks a __init annotation or the annotation of instantiate_cache_sram is wrong. --- arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c b/arch/powerpc/sysdev/fsl_85xx_cache_sram.c index be3aef4229d7..3de5ac8382c0 100644 --- a/arch/powerpc/sysdev/fsl_85xx_cache_sram.c +++ b/arch/powerpc/sysdev/fsl_85xx_cache_sram.c @@ -68,7 +68,7 @@ void mpc85xx_cache_sram_free(void *ptr) } EXPORT_SYMBOL(mpc85xx_cache_sram_free); -int __init instantiate_cache_sram(struct platform_device *dev, +int instantiate_cache_sram(struct platform_device *dev, struct sram_parameters sram_params) { int ret = 0; -- 2.17.1