From patchwork Thu Jun 17 14:54:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 12328107 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7588FC2B9F4 for ; Thu, 17 Jun 2021 14:56:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 154DF610A1 for ; Thu, 17 Jun 2021 14:56:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 154DF610A1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=L8AHLJH5TjZ1M+45MwxSlk1Q4dhi+aCbiyqUhz1Q4jU=; b=rXkESZ2m1P+NuO PH4rA/hkGDwFA6dKmknmWvLmYguhuM3gXwwaraf3PTCaTL6QULuE/KWIpMBoAo3+y0F7jOvKJZEVE 416qxHjgAvJugGB+KChuknw4IYp7X3Bnm1F7Dm9hviHFHrnHmd7pNmMPVfhpt7Jg/YcKO35h1Varn u13PFczmHxoHl7UfpZBmrCtzY2dD9r4W+cnrWwP1dBUF3HPjqzn37GAQKXxcMVEJQI2ebDNyjbM0n z34Q/Yk6S/46Uh4dTVPt3chb8edYt8mIj2YW83FoS2AtlgM73GurcIdw1Hkw4jFYeNPRWXY4wm/Qv WV4W3i8im+tVPZbQ//aA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lttPm-00AoFX-5y; Thu, 17 Jun 2021 14:54:42 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lttPi-00AoEi-2W for linux-arm-kernel@lists.infradead.org; Thu, 17 Jun 2021 14:54:39 +0000 Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:a093:b5a9:3704:ca4d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D7FA5801DE; Thu, 17 Jun 2021 16:54:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1623941674; bh=JKlpSBg/ExbzEdl1ufs7EBUWctqP4tz6uQjjqsHQkDI=; h=From:To:Cc:Subject:Date:From; b=gGtRolO7bOvIhUEf2OHHLGWPxkVR+w4zVmWUkC7rGEXDBuatFaSI990SFwmEG4grU tMXCIczg8wjN/VY3Jo92DP6b0hTxu1bBgaYAw4Gq8tZ1rO4U9nwwzMjl5CTcOQcUiY 7YDDU4UlXV+YF/o13Hh8UxhiEt7z5FopvLMY2VJFznKW62jeWUUScp2kr0Aas8YKgN LY0r913XTryEVXZU47kpUUhmrpX/uSy7rB+hns/GE4tc65W4sWiJWv+B8R0QRAtbHn /LOlJTDZSlAILwOirVp6g0dJtMADlxeG/VUI5DLemOAuubWrOKAd9gBk0s2RZA69j+ 2eyLyvRPnPnyg== From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, marex@denx.de, Fabio Estevam , kernel test robot Subject: [PATCH] imx: common: Move prototype outside the SMP block Date: Thu, 17 Jun 2021 11:54:15 -0300 Message-Id: <20210617145415.37440-1-festevam@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210617_075438_464949_77B199D0 X-CRM114-Status: GOOD ( 10.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Currently the imx_gpcv2_set_core1_pdn_pup_by_software() prototype is guarded by the CONFIG_SMP symbol. This causes W=1 build warnings when CONFIG_SMP is not selected: arch/arm/mach-imx/src.c:103:6: warning: no previous prototype for 'imx_gpcv2_set_core1_pdn_pup_by_software' [-Wmissing-prototypes] Fix it by moving the imx_gpcv2_set_core1_pdn_pup_by_software() prototype outside of the CONFIG_SMP block. Fixes: e34645f45805 ("ARM: imx: add smp support for imx7d") Reported-by: kernel test robot Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index f0a073a71401..13f3068e9845 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h @@ -68,7 +68,6 @@ void imx_set_cpu_arg(int cpu, u32 arg); void v7_secondary_startup(void); void imx_scu_map_io(void); void imx_smp_prepare(void); -void imx_gpcv2_set_core1_pdn_pup_by_software(bool pdn); #else static inline void imx_scu_map_io(void) {} static inline void imx_smp_prepare(void) {} @@ -81,6 +80,7 @@ void imx_gpc_mask_all(void); void imx_gpc_restore_all(void); void imx_gpc_hwirq_mask(unsigned int hwirq); void imx_gpc_hwirq_unmask(unsigned int hwirq); +void imx_gpcv2_set_core1_pdn_pup_by_software(bool pdn); void imx_anatop_init(void); void imx_anatop_pre_suspend(void); void imx_anatop_post_resume(void);