Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1103324ybz; Thu, 16 Apr 2020 02:59:19 -0700 (PDT) X-Google-Smtp-Source: APiQypLnP6LVnRi0dmSPcWcnWhg2M/XCdg498aaLH7kV/G+OdnNTSd3oCs9vn8vLy1FnBbvVBawk X-Received: by 2002:a17:906:a3ca:: with SMTP id ca10mr9150045ejb.298.1587031159124; Thu, 16 Apr 2020 02:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587031159; cv=none; d=google.com; s=arc-20160816; b=NeuaeScFlSBzkOLsuqDeOwoF55nXnC8/cO+MjlVGVkS/0LhtNiFoVtEYRQmJlnb0Wb cPiJEqQoFQSPON6Y7432TIeNxLqDmxeLOHg0E6Vdi+Lsn/p02Xp4iD2o8+B2hldba+Bq EalD1uipGF5WqjySEgoIkIuwj9i15VRxaqQYoaxVRKoKLVx0e5r43M/UQmgjIkScSwG8 4zRVxjMhX1YXnV8a1BI+1tvczXq1G8c9iU88ymcloPAKOAwaTXYeyfeMXhSec4ArM3YF kEQgIEW6IlE93YosM/QXjD4pYKINoBUElbQZzPjU3Lv9Njdb0dPcblibBTlt4Ki9sQ5a Mx/Q== 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=ki9lFaw/Ee0biHqZcwyBVTcE/WWXGKGAIb01ftBPovbM56PHVAC9DMFcNv1lwnlbaM 0W7DbgzQ4GmMSwvE3xZwmBR9Waulrppa73oF2DJRysZ8IZKmHnapikd0W/lutDWFHGgU k/2GpLi5CdXozgPLqBSUYa2G9NCDcFBVsu0IWyLwAe/IUAbMuebx32b9HlU/8sTYzIc6 fCz6b2Wb+/REhpypRzr16Ye7QLiNGJrPkcOnlP+3N4frecS80bDM2tn/z/x4A1LhqfP3 5GLlnHIUH9CKvXOZxOHErkYLB55/vBuSp02AXYiGKjCuMz8JM/69cw+ReMAM0PLDVmtQ f3/A== 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 a11si11967667ejr.86.2020.04.16.02.58.56; Thu, 16 Apr 2020 02:59:19 -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 S2504441AbgDPJzb (ORCPT + 99 others); Thu, 16 Apr 2020 05:55:31 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:49146 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504241AbgDPJzW (ORCPT ); Thu, 16 Apr 2020 05:55:22 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id 129C84E65D5; Thu, 16 Apr 2020 15:42:02 +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:41:40 -0700 Message-Id: <20200416074141.3555-4-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416074141.3555-1-wenhu.wang@vivo.com> References: <20200415152442.122873-1-wenhu.wang@vivo.com> <20200416074141.3555-1-wenhu.wang@vivo.com> X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVCTU5LS0tKTklOQ0xDQllXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NxA6Kio*Djg6DgguHSNPKj8d KRNPCQxVSlVKTkNMS0lJQklJT0NLVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUlDSUw3Bg++ X-HM-Tid: 0a7181f002689376kuws129c84e65d5 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