Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1048966ybz; Thu, 16 Apr 2020 01:41:54 -0700 (PDT) X-Google-Smtp-Source: APiQypJgFLBmG1jx6osz0L5ZlZ0rCDnAt9vXt1nNCLImnvkv7KUNJmS5oA8/O47Gd7ReNO4NzbPY X-Received: by 2002:aa7:d3d6:: with SMTP id o22mr2150371edr.52.1587026514656; Thu, 16 Apr 2020 01:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587026514; cv=none; d=google.com; s=arc-20160816; b=ukHbE8Pi1iqjfxQMHalF2zcId8caNzXLEy49dR64MLZn0A6UAG+HofFZMsLRmpadUa wTw4ft42F77mga7i0/UL3Lya+lMHYMPzleownP/zKQrGjxa5MxvI6uIL0cZicrMzebnt GT2hviYf35pH8gxUAaS8NbnRtFAyu+CaM0c63VeQEVyrfEAYn1f6gZZcWGBxp7WCt9s0 bV6PM4r6worHxwwsfdAkOZxWPE++xTuUVKkrnYuiUz9RmoMILt2WNSry/8noPCwqsKi3 oVVuXM44HaBg8Kmo4OYWY8c5X9qul0PIvQfuSuUJiNf/qswo9x/c9EsHXk8HFP5WnPA4 uhUg== 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=gYS3rWAaAZsMEBWtIwCgCIJGVhZRlh/RiWFbVY5KZp1C5cstT2zS8doNSxrNrgbyYL gpjwszeV/aztIvd7Af4mLVh1MupcRmfu4j6KVN3aJ6t3RL5gyzPABi2VafJ/LMlGAFM7 FnnxAKL/12vgYU1vBmVcqY3oo5x3BzqA3EEMBfpS+fJemC261POy26XE+XSgz6qefiuL 30Scjp+lO+wI2GbIf6VYlQcOIjy2NoqQrfgSwW16rVzbhI3S6yxZWhbp3T/8ymGE8Nhg UiYuQiM9B1bgthIEk5c/ErKWQN/s8Xzo4cL+MQai/CdNqgLhUYKXMIL/o3BopwJ1y7P/ 8yaw== 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 dn10si10673209ejc.357.2020.04.16.01.41.31; Thu, 16 Apr 2020 01:41:54 -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 S2502324AbgDPIkE (ORCPT + 99 others); Thu, 16 Apr 2020 04:40:04 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:9731 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502487AbgDPIfd (ORCPT ); Thu, 16 Apr 2020 04:35:33 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id A22834E396D; Thu, 16 Apr 2020 15:49:35 +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:49:17 -0700 Message-Id: <20200416074918.3617-4-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416074918.3617-1-wenhu.wang@vivo.com> References: <20200415152442.122873-1-wenhu.wang@vivo.com> <20200416074918.3617-1-wenhu.wang@vivo.com> X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVISkNLS0tLTENJS0pJQllXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MT46LQw4TjgwCggyKxwCNyky HANPCgNVSlVKTkNMS0lISExNS0NJVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUlDSUw3Bg++ X-HM-Tid: 0a7181f6ee349376kuwsa22834e396d 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