From patchwork Tue Jan 26 12:45:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12046379 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=-17.0 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,URIBL_BLOCKED, 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 A1DE5C433E6 for ; Tue, 26 Jan 2021 12:48:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 5D74723104 for ; Tue, 26 Jan 2021 12:48:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5D74723104 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NXSvCcTYKiFWmcgpZqO0CCChgSqY4qvRbZb+WMaYGYM=; b=v9QuzB6ukiby09TeuRcHjF6I2 smUCx/WAgv8rN0z9HRBYzIcaXEwpxPo6Be51PvALh0FvFL07O+keTJrtAuyUhi5UxPBNAubGqz/D3 0v8dZegDP4scOTwZtPQYjR5gdZJm3zDS2qAeBJor+4okKquuQMzD6s0AkVFB0x5ZFhZkT2X8vBGgY hEz2gkEuax8HMBHmB8j9zdgA8feUntudaM4bAI/jM3G2sIqoyXzDUpY34MaS4bRnsH9Z5FI9ZrXAD QQSK7maaTYW22ssrxVBY0+s/0o++b1QiyMGLV7ZGP9QzvGwOroHN0PCQjTyHy3SwgCQjjwYLAKJzW VD540HyCg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4Nkf-0001Cx-RA; Tue, 26 Jan 2021 12:47:21 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4NjV-0000eF-D1 for linux-arm-kernel@lists.infradead.org; Tue, 26 Jan 2021 12:46:11 +0000 Received: by mail-wm1-x329.google.com with SMTP id c128so2649606wme.2 for ; Tue, 26 Jan 2021 04:46:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zJtSQGuxz964dfYUWXRLdwlnPP2R/QEORl17NxQy5d4=; b=GDA6VuYgWblPv9tnaRfwdw/YrjYKrCWwOqW7HYExURDfcqlHtm9ulxub2JS85ZsYPD TiANdGatfnUgdRGLQh7GoQ22HKgKxvCct1Ju90J2tVyc7HfZDqAHGqZNNl1yx6AEAW/y oAvSsIi7xZKfpE/BhunIxIwoXuZ7U4EJpXkuXQ1Jq+lpDL2EelHHGqMLY6o2zYSOBDH6 ErvsgoNL+63u/tVu4mOPYe+0LqurL6A68GprJpVLYDhioCUiu7qlV8ODNe3IMqzG8OLQ mu8hIIf0sukV9EY1KqWw7EYHnVbnE5GoJFc0Pf7LM7GfQBDGR/osUddtpChhCk/83U7q 6VFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zJtSQGuxz964dfYUWXRLdwlnPP2R/QEORl17NxQy5d4=; b=j50tq1LaGhtYLv0Ex4S4Ma9I0mwYEOTvyE/Q2o8slUysmdXj8ztThzpxbBm95uMsEE PZLcj3geck0ABU8hz+Ae3PuDFwI+up2VVDB2ZoqipUKqPTvia4nm7ZB272jn8tadr/Ic bH8Pzg284ZbTjfTfNQuRXpTxpeTy+Dwc9x3SPaLo22UXZks6Eje97C3oi2e/yRzDs1Cv 8SDEzaqp0kxydFWcXJIVGU+hqd5BFVUQYlF7pwXD4swhSgfpqBqiIhF3aC7YSYgU5U/M WP0yoFDt1wsmK/CvUO67h9NGg1SFHm9SPYKJcCxwbARe8AgV+rULwKyvpDgoPy3Y77tq mpFA== X-Gm-Message-State: AOAM533Z/vG8iWNsjp9fPwk4o0DwOetILimyAzQafygPYbrNJmECjSlH AwVIQpDcVvDBltZtzShQiz9j6A== X-Google-Smtp-Source: ABdhPJz6MIZQG2LgzYeGqTVMQgNd8pCBhDKPFxbM5Le6UPbMFQS8g+QNOT/b/djSPdsv18wh7s/uXQ== X-Received: by 2002:a7b:ce11:: with SMTP id m17mr4492622wmc.158.1611665168230; Tue, 26 Jan 2021 04:46:08 -0800 (PST) Received: from dell.default ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id i131sm3263073wmi.25.2021.01.26.04.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 04:46:07 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 20/21] clk: imx: Move 'imx6sl_set_wait_clk()'s prototype out to accessible header Date: Tue, 26 Jan 2021 12:45:39 +0000 Message-Id: <20210126124540.3320214-21-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210126124540.3320214-1-lee.jones@linaro.org> References: <20210126124540.3320214-1-lee.jones@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210126_074609_709043_AFE2FC1F X-CRM114-Status: GOOD ( 18.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ahmad Fatoum , Shawn Guo , Sascha Hauer , linux-kernel@vger.kernel.org, Russell King , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fixes the following W=1 kernel build warning(s): drivers/clk/imx/clk-imx6sl.c:156:6: warning: no previous prototype for ‘imx6sl_set_wait_clk’ [-Wmissing-prototypes] Cc: Russell King Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: Ahmad Fatoum Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Lee Jones --- arch/arm/mach-imx/common.h | 1 - arch/arm/mach-imx/cpuidle-imx6sl.c | 1 + arch/arm/mach-imx/pm-imx6.c | 1 + drivers/clk/imx/clk-imx6sl.c | 1 + include/linux/clk/imx.h | 15 +++++++++++++++ 5 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 include/linux/clk/imx.h diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index 2d76e2c6c99e3..2b004cc4f95e5 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h @@ -85,7 +85,6 @@ void imx_anatop_pre_suspend(void); void imx_anatop_post_resume(void); int imx6_set_lpm(enum mxc_cpu_pwr_mode mode); void imx6_set_int_mem_clk_lpm(bool enable); -void imx6sl_set_wait_clk(bool enter); int imx_mmdc_get_ddr_type(void); int imx7ulp_set_lpm(enum ulp_cpu_pwr_mode mode); diff --git a/arch/arm/mach-imx/cpuidle-imx6sl.c b/arch/arm/mach-imx/cpuidle-imx6sl.c index 4521e5352bf64..b86ffbeb28e42 100644 --- a/arch/arm/mach-imx/cpuidle-imx6sl.c +++ b/arch/arm/mach-imx/cpuidle-imx6sl.c @@ -3,6 +3,7 @@ * Copyright (C) 2014 Freescale Semiconductor, Inc. */ +#include #include #include #include diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c index 40c74b4c4d730..9244437cb1b9b 100644 --- a/arch/arm/mach-imx/pm-imx6.c +++ b/arch/arm/mach-imx/pm-imx6.c @@ -4,6 +4,7 @@ * Copyright 2011 Linaro Ltd. */ +#include #include #include #include diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/clk-imx6sl.c index 2f9361946a0e1..29eab05c90689 100644 --- a/drivers/clk/imx/clk-imx6sl.c +++ b/drivers/clk/imx/clk-imx6sl.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include diff --git a/include/linux/clk/imx.h b/include/linux/clk/imx.h new file mode 100644 index 0000000000000..75a0d96965528 --- /dev/null +++ b/include/linux/clk/imx.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (C) 2020 Freescale Semiconductor, Inc. + * + * Author: Lee Jones + */ + +#ifndef __LINUX_CLK_IMX_H +#define __LINUX_CLK_IMX_H + +#include + +void imx6sl_set_wait_clk(bool enter); + +#endif