Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1408214ybz; Thu, 16 Apr 2020 08:38:45 -0700 (PDT) X-Google-Smtp-Source: APiQypLMyYaO7MZ/mKqbOxkgoveTiqKLMh4HTpvvSsWaIRHH04k6MWl1TtVmvizHZVzXqlB5QX2z X-Received: by 2002:a50:fa49:: with SMTP id c9mr31621385edq.9.1587051525327; Thu, 16 Apr 2020 08:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587051525; cv=none; d=google.com; s=arc-20160816; b=UlObE68zZEJWAPS+gdDoCY8IOhaf0542WVMTLGLKZjSLWRcYuIEZRa9AUQAovwmciz lN53O88MLam3c1+E5U1wkK6yQP22fXTU3WSrCJB/aRXpcr6Hc2ZIsJf04IY329gg64ON usWIIcvj3mwdLq1RpJQUFAeyLUI/aOyYbRTt2hlUHDOHC7bm2+OtEfanP1duxhhXkQQK FAlYME8Yzqnas5s3v+1yJZUd7wW5lRyyI0MUPUsc3ZCLDX/ycAo4JqJOXugO7tKFAVSl dQ+F1cMxRK6PAw8VvvTT7RBdERs/r+eaXIFZ+7dpppT+odIVHshPCyvrNwKZj/uxVGMj m+Eg== 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=pTX2wHwInqHTum/FC8S9pIy8RDwQfP6c9JliwFmqhFg=; b=ANxmrW53FkiDNGB41AEnixX0zd9SpkQvvR/ZkQQG2WQwc6SE7yA94TXPz8Vr0uEZHm YfqdxXgp6ybddxJeu0YvPT4vGy1NwSS2ElmfNTHksoJbjn/52WEIC+zYLi0RVJTeew6d bUodslIudrhCvPsKNDqZ/6TP1x7P5/AScMvg+frW0AwUV3XcKdq8PzhzqwHgMu5OaUrq Mca4/HdZfjNsZbteKuvm+9z0z1IedkFE3ilsd33IVw/2nq2H+JWv4Wdud1WBf4Y+qbsc VgnkXHh52QdLG7t0DQGPDfXYRR7JpSq6PjcIOhOD2FKBtIg9SZXv6fgikrcvDNLOSyo/ keKw== 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 s8si13551491edj.463.2020.04.16.08.38.21; Thu, 16 Apr 2020 08:38: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 S2410529AbgDPPgI (ORCPT + 99 others); Thu, 16 Apr 2020 11:36:08 -0400 Received: from mail-m127101.qiye.163.com ([115.236.127.101]:3902 "EHLO mail-m127101.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410349AbgDPPgA (ORCPT ); Thu, 16 Apr 2020 11:36:00 -0400 Received: from ubuntu.localdomain (unknown [58.251.74.226]) by mail-m127101.qiye.163.com (Hmail) with ESMTPA id 4FA7E47833; Thu, 16 Apr 2020 23:35:57 +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 v4,3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram Date: Thu, 16 Apr 2020 08:35:36 -0700 Message-Id: <20200416153537.23736-4-wenhu.wang@vivo.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200416153537.23736-1-wenhu.wang@vivo.com> References: <20200416153537.23736-1-wenhu.wang@vivo.com> X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZSlVCQ0tCQkJCT01OQk9JT1lXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6ME06TSo6IjgrGg8MFj85KS8s EgsKFA5VSlVKTkNMS05KSE5MTU1DVTMWGhIXVQweFRMOVQwaFRw7DRINFFUYFBZFWVdZEgtZQVlO Q1VJTkpVTE9VSUlNWVdZCAFZQUlMTUw3Bg++ X-HM-Tid: 0a7183a1e5979865kuuu4fa7e47833 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 Changes since v3: * 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