Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1028562ybz; Thu, 16 Apr 2020 01:12:12 -0700 (PDT) X-Google-Smtp-Source: APiQypLbousFVwtsU1oXwAmfmoUFUq3eTs/yxbd3Y9XGCRh+QFkBfrBAl2yYjQVkRZ+iIcjGoltW X-Received: by 2002:aa7:c90d:: with SMTP id b13mr12384647edt.14.1587024732617; Thu, 16 Apr 2020 01:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587024732; cv=none; d=google.com; s=arc-20160816; b=Pos+hkezmrCrUQWuOCuTLSn+eraiDF2Qauv2cf50It1+dj36fXOsqOX8jz6goXq1dx DUUBlHxjaFKaJ1Tl7B7wn6coECKLgvYhoMajevpaHpjowoOSdfvhSx+pET7tZLptl+An 0Xxh7J6Z/ElNDXYDK61tPBw3+gKfCcFCNba3eAAVD8sSk24jiCrXNRiaSy8fj/4A1+KT 9X07JwcUaXzczz5xz3F4ijs7Sb8/KBiHFGN/uD5n1xUdSbaql8zDfpeqebzHmk1GZJdJ QqGFoWi4YZmGIaL/kryT9zaZxqYH8i+JBdIn9eytf50CwEUa1CUD/2zAO6In/BarNOcy NONQ== 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=tCv2WD6dIv5fQoewADXvW588mQyBO/xuwlMEQJZ7CZU=; b=f91RH9cGLUw7KBeCARvyUCtHeXl39Sax1yzufBlsvWKmsjAAXb1YuXO+iZNHPm5s/p SL1epbQR1fsIDzsVQwFZ8bDth56BTbO1js2kW88RAYt92HobaON+vsmry7Opl0BRoKO8 8N/N//JvX5s3FFzhBc/s2o2ZcgLKs8tjQLHO4D1B35EbxZerMDliWVQaPczfbFX8Zbox bD85DDj2zAPoYziHDf9N1vPFVaVLtZ/riNHzMdQbQPQp8ak0sKcb4avDFTUIeuePMduc VPZkNhthFUjuKKJuaz+vIYW47wugsujwZT4PTZ/Z97oxucjsgqrOpSLgdvai13wpVIYy 5gpg== 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 y44si11798300ede.532.2020.04.16.01.11.48; Thu, 16 Apr 2020 01:12:12 -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 S2440881AbgDPIKF (ORCPT + 99 others); Thu, 16 Apr 2020 04:10:05 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:10249 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440894AbgDPIFC (ORCPT ); Thu, 16 Apr 2020 04:05:02 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id 1100F4E5FB8; Thu, 16 Apr 2020 15:30:06 +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 v3,3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram Date: Thu, 16 Apr 2020 00:29:28 -0700 Message-Id: <20200416072929.3489-4-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416072929.3489-1-wenhu.wang@vivo.com> References: <20200415152442.122873-1-wenhu.wang@vivo.com> <20200416072929.3489-1-wenhu.wang@vivo.com> X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVPTEJLS0tLQkpOTklMSFlXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OSI6TAw4EzgxMAgXDT83Fy0t ThQwCyhVSlVKTkNMS0lJSUtNT09NVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUlDSUw3Bg++ X-HM-Tid: 0a7181e515799376kuws1100f4e5fb8 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. --- Changes since v1: * None Changes since v2: * None --- 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