Received: by 10.213.65.68 with SMTP id h4csp1132853imn; Wed, 4 Apr 2018 13:14:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx49o7J8U2aGA08DD1/bMmd86754XJLOSwo5JuQwQq4em2BWp7XGRWijYwskWCE4LdVyjdSpJ X-Received: by 2002:a17:902:bf41:: with SMTP id u1-v6mr18973282pls.236.1522872842500; Wed, 04 Apr 2018 13:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522872842; cv=none; d=google.com; s=arc-20160816; b=jWS+efr4nyuDs7VywLSIgwVEGxycf5/o9P8CqgyxLQyZ2Z2A0igQXihfAlnkAHgw22 x48N647Gb4lLXOX/jmxxFi+VYNyle0EcUFXphI7AyZXqQoBb2GXUEZcqloTGFNS2ALXs fnlyf0fgCR3SU6+j+r4CIye5wHHINfkKTlWkQJ1Iu1YTZ6IQoP3dx9r6NZkVzmvybHew 137FKEvO2OQ1kIaU4B8JD1laYEvI2P5b3WMEYKeg9X3q+PUfkXoAuBjp9UVDOnRGYyz2 WUSGjnPa3RJvbXB4FUsp3guo1HImaeaEINAIVhxDeVcSNArMWWZtSmO5tyK2ujjddNE9 XKqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=R8OP8EaBcbWkOp5ITKzNc9ZMAHdBZrzW4u7nrahqSIE=; b=tTW9ReaKKBxD+/TFskZTeUoDdNY3MsowyMRzN9HnGfvlo3VjlPKh4kaXg6g7mLX/gH iVaI8Q3oMOkO/Y7YCXmV3r7gRHQZpQMVci1XV5tDHyaJ+cQADoHvtJc6S9sPDNjwqDDH A1wz8A1k7mWF8lOqan0q8QlOs0B5W/+3SZCBGEivsuNR+IHFTamNX+Dn+rVaT3hIPqxz h+MwX2tlQjl6saj5dxh7SkhTzbpswMi7FOWWWV+b+VsIeemUCqi8x6OGbpKo2Q6lR6Jw nVozsU3PnEA62L8tCM4+ZGjcyKvSugNiyoy8t881OpZnSXfVrF3YdYKligXg7EuNuLiW u23Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TgbFVRbL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si1764139pgn.473.2018.04.04.13.13.47; Wed, 04 Apr 2018 13:14:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TgbFVRbL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751926AbeDDUMi (ORCPT + 99 others); Wed, 4 Apr 2018 16:12:38 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54583 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbeDDUMg (ORCPT ); Wed, 4 Apr 2018 16:12:36 -0400 Received: by mail-wm0-f68.google.com with SMTP id r191so345339wmg.4 for ; Wed, 04 Apr 2018 13:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=R8OP8EaBcbWkOp5ITKzNc9ZMAHdBZrzW4u7nrahqSIE=; b=TgbFVRbL8lQEdQ9otC2CO2xJ+3PonJlo4DHe6yM0TDv2UIwPiNc4FKn8VTcBaFU+df JOxgj99MH7iOQ2VAjiy5mMB4XPUsS/GhU06nnXaAZDgw8RGhBo0Blfa20LvMQM2s/Rd5 Emcbmf0Pk+zY6iFKJtQkqKK7TN6m2CbOlTSlBvfICtQZwOpRTiNWbPeHQQfPDBi7fvnS 9esD+E8VBEyyFdehU4vFt9+6Sh80EAMt5408fMoue4cAdg+mLGb3lDEAsqwuKd1Srjro nU6pACM2q72rfb+LEAAI85nqaEsNP5MMkwydE2V29NLcKuvdoJ96R7i4rRp7ijLA3ND7 vTjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=R8OP8EaBcbWkOp5ITKzNc9ZMAHdBZrzW4u7nrahqSIE=; b=kbS4VmzBe+JLBBAWIl2Gkk16rTBLDirtBJ/Is3Pw+VqEm5qWpC5FJzHOUhV/54IzDc izte7C9eWKgC47vw/hbky4RFlxqI5hFoIiCcR3LE19pC61UdiKlUlX3iMvz2Sjr1vjx8 CR96mcWKJ+S7Rbx5setBa0+CVh+VKN43muOW+wuV5ypq+pkUnkKOA7/y5/T+ENFUspeV Lp9Ww5nM2EsKfG0QWo6a9Ej8578HTl0vyPHRS+UEox900KIPZNvohSg6J0+0DKOoN3mN xKPjnDsidrS7cOAh3iDp5LTnGC6A8N93bWP+B0to8A/2eoRUn3g/YiVf+L5i6RUs2A4V GtGw== X-Gm-Message-State: AElRT7FXfOU7pdgxqxoEcc4EBK8YO+lLLJxtYjhDUFApBAECzDD3hzQ5 4/dE1WWwEK90iM7khSF80A8= X-Received: by 10.28.63.148 with SMTP id m142mr9013504wma.153.1522872755396; Wed, 04 Apr 2018 13:12:35 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id j4sm6551384wrd.53.2018.04.04.13.12.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Apr 2018 13:12:34 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 1B11E10C0572; Wed, 4 Apr 2018 22:12:32 +0200 (CEST) From: Mathieu Malaterre To: Michael Ellerman Cc: Christophe Leroy , Mathieu Malaterre , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 13/19] powerpc/52xx: Add missing functions prototypes Date: Wed, 4 Apr 2018 22:12:30 +0200 Message-Id: <20180404201230.27756-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180322202007.23088-14-malat@debian.org> References: <20180322202007.23088-14-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function prototypes were declared within a `#ifdef CONFIG_PPC_LITE5200` block which would prevent them from being visible when compiling `mpc52xx_pm.c`. Move the prototypes outside of the `#ifdef` block to fix the following warnings treated as errors with W=1: arch/powerpc/platforms/52xx/mpc52xx_pm.c:58:5: error: no previous prototype for ‘mpc52xx_pm_prepare’ [-Werror=missing-prototypes] arch/powerpc/platforms/52xx/mpc52xx_pm.c:113:5: error: no previous prototype for ‘mpc52xx_pm_enter’ [-Werror=missing-prototypes] arch/powerpc/platforms/52xx/mpc52xx_pm.c:181:6: error: no previous prototype for ‘mpc52xx_pm_finish’ [-Werror=missing-prototypes] Suggested-by: Christophe Leroy Signed-off-by: Mathieu Malaterre --- v3: remove extern keyword v2: no change arch/powerpc/include/asm/mpc52xx.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/mpc52xx.h b/arch/powerpc/include/asm/mpc52xx.h index e94cede14522..ce1e0aabaa64 100644 --- a/arch/powerpc/include/asm/mpc52xx.h +++ b/arch/powerpc/include/asm/mpc52xx.h @@ -350,14 +350,14 @@ extern struct mpc52xx_suspend mpc52xx_suspend; extern int __init mpc52xx_pm_init(void); extern int mpc52xx_set_wakeup_gpio(u8 pin, u8 level); -#ifdef CONFIG_PPC_LITE5200 -extern int __init lite5200_pm_init(void); - /* lite5200 calls mpc5200 suspend functions, so here they are */ extern int mpc52xx_pm_prepare(void); extern int mpc52xx_pm_enter(suspend_state_t); extern void mpc52xx_pm_finish(void); extern char saved_sram[0x4000]; /* reuse buffer from mpc52xx suspend */ + +#ifdef CONFIG_PPC_LITE5200 +int __init lite5200_pm_init(void); #endif #endif /* CONFIG_PM */ -- 2.11.0