Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp712020ybz; Wed, 15 Apr 2020 17:16:46 -0700 (PDT) X-Google-Smtp-Source: APiQypKUGaexdcN4BPGWWkDH8eQRAMweyH9uDyu64DJLN2G34XWyDqjMslW95h4ZAL39mhEN96ss X-Received: by 2002:a50:bc16:: with SMTP id j22mr28425393edh.257.1586996205923; Wed, 15 Apr 2020 17:16:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586996205; cv=none; d=google.com; s=arc-20160816; b=xsS+bdKsrq/NXYKkd+irzwX3LSAilvKO6RF13jbh9yC+KPJO5pqv2/Rv75B6wD0bqJ IlYLT6+EMZolC23Xrwga4MxQG2VAXl9h9PdFeruqRtR33yvPQznQWi6AsJA/+fYRsqQl R07CJgcNQzxTyJ6AHi3r1psQ95x01A2PWiTNiKvSF6rSdJLvEXvdDvYXMLMTeY4HO4e6 36+LWW+sNrVrwVP7u2wXxjzp5vDmRpO1fWNtBZAUNQnS9reXmBC7M+r4F3XS+zYjgwFo SvedJzhk3jUMJCBIKvqpaRkz+muTgaeqq4qG9LUZ+/MMBnSxV3+o/XmDtuJmKBZaR952 uthw== 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=jdbheM4mINp6ll3mi0zk6SRESNtzr40fu646dM0Bodg=; b=lFI+kvdsQRc121keiTu7mElBrfGVeFv7qYLS8oyoSQm+Opahx4J11MfKavWfFhlNM+ W1Ha0wQ5XnrouwWopr4PdPSRydhruIfT5qDW/EWHS/mxTuR8CyEtr1+bzJrySs5f59iW /X+cmAtNu38MQuTCC4loDMnDS1gwU/CByitOHch+/NI5oR2RlOM/LFOiUXZwW6OWXHJg V9opO1TgjETebpMc1uCMQedot/85L5T3dgk9gdD09KeyXkBsBtOCW0fVIH4B+ltcbCYr b7YG8Bx4mf1dyyFAuiljPTn0UXJ1DLwFHDKcjIvUwL7s+orhtxaBw6Yxys+j4Wr8MUpf y91g== 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 a9si10883333edk.466.2020.04.15.17.16.22; Wed, 15 Apr 2020 17:16:45 -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 S2636904AbgDOP0D (ORCPT + 99 others); Wed, 15 Apr 2020 11:26:03 -0400 Received: from m17618.mail.qiye.163.com ([59.111.176.18]:15156 "EHLO m17618.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2636876AbgDOPZm (ORCPT ); Wed, 15 Apr 2020 11:25:42 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by m17618.mail.qiye.163.com (Hmail) with ESMTPA id 7C78A4E18B5; Wed, 15 Apr 2020 23:25:38 +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 v2,3/5] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram Date: Wed, 15 Apr 2020 08:24:40 -0700 Message-Id: <20200415152442.122873-4-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200415152442.122873-1-wenhu.wang@vivo.com> References: <20200415124929.GA3265842@kroah.com> <20200415152442.122873-1-wenhu.wang@vivo.com> X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSVVPQkxCQkJCS01OSEJCSVlXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Pjo6Ajo6Pzg6AggjASo4GQ4s MRkwChFVSlVKTkNNQk1PSEhDQ01CVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUlMQkg3Bg++ X-HM-Tid: 0a717e72184c9376kuws7c78a4e18b5 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 --- 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