Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1836120ybz; Sat, 18 Apr 2020 09:26:37 -0700 (PDT) X-Google-Smtp-Source: APiQypL7MKc+DGgi58KOE2IrQa6FFib7rEYWwnzXpd1XTa3nSnkAYHIW4Xgy/j7pAet7YKNy7/EN X-Received: by 2002:aa7:d1d6:: with SMTP id g22mr7989070edp.36.1587227197240; Sat, 18 Apr 2020 09:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587227197; cv=none; d=google.com; s=arc-20160816; b=VQU8QvtZFJujd1mE1kFOwTZBIjvQvT/6VyNyiccbVbpr64meEkX+0vIL0dttBL6YBO EbOPolx8d+sTaNnJSkiiBqwDMbCr5S36x5BLZvMhORHS9UBDAXqE9hvWQIUU6wibhk7Y iEPFKEgG1NR+Y8PFRQPezXXtaC83v8+qVaQHrpr2vLm7sxxa+bqtascyqEnpVryrnlfW oW5NN4t6UbwqpOY1nd/uE032gbsz5zjFWZGJ5hu8qeg7ioRaeyD8cbESOu661RvA0Un1 GwxMx8sFMZf7O/4eBaw2pJg97QjengoxEeeVHLejSCsiMn6VdHjij3pHwWTCKw28uDac vZ2g== 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=eKEAFQxK4pm4u+bahGrkoB+g7IN7I4ZNXVaGTAX+co8=; b=xu4ZZFVr/yDyjhgj5prGFE06KSnBTiy53WrrMyLY4ZJ2LIIUAWMn37Kqa2Gi/SXp3x C/3c5xngK1TLTEzkQkff8WRY6PL3TheCm1LlDWQFuT8DMdv4k3Y/HupYzU0W7vcvxCkH n2QI4Db3mU/68uvYN0uQGmgz+rAfV4T643KMC46243EAecO/EnuFkqfAqTu4SALRzcqH 87ORo39VpS7+NFY4cgkGDGkqxvJ2pVnAGFO3wugSDIPcuIOXkB3BajwP2BYElEeS2DGg amAIZzxxuMfE6nwLV9+vkkMrf5edpwAnfYuYTVXgOA8eMbrURmbUd8WL5SXqrU2UjImT H5QQ== 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 fx19si8316431ejb.39.2020.04.18.09.26.13; Sat, 18 Apr 2020 09:26:37 -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 S1727837AbgDRQWl (ORCPT + 99 others); Sat, 18 Apr 2020 12:22:41 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:5548 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726416AbgDRQWi (ORCPT ); Sat, 18 Apr 2020 12:22:38 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id 11C8C4E149F; Sun, 19 Apr 2020 00:22:33 +0800 (CST) From: Wang Wenhu To: gregkh@linuxfoundation.org, arnd@arndb.de, linux-kernel@vger.kernel.org, oss@buserror.net, christophe.leroy@c-s.fr, linuxppc-dev@lists.ozlabs.org Cc: kernel@vivo.com, rdunlap@infradead.org, Wang Wenhu , Michael Ellerman Subject: [PATCH v6,3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram Date: Sat, 18 Apr 2020 09:21:56 -0700 Message-Id: <20200418162157.50428-4-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200418162157.50428-1-wenhu.wang@vivo.com> References: <20200418162157.50428-1-wenhu.wang@vivo.com> X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSlVDTUNLS0tLSEtOSkxOQ1lXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Oi46Sww4ETg1PA0WKCo3LDw* SkkaCixVSlVKTkNMSUlNQk5PSk1JVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUlPTEk3Bg++ X-HM-Tid: 0a718e1946a49376kuws11c8c4e149f 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: Arnd Bergmann Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: Randy Dunlap Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram support") Reviewed-by: Christophe Leroy Signed-off-by: Wang Wenhu --- No change v1-v5 --- 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