From patchwork Sun Sep 18 13:58:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9337823 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C0A836077F for ; Sun, 18 Sep 2016 14:01:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A894828D7F for ; Sun, 18 Sep 2016 14:01:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CA8728D84; Sun, 18 Sep 2016 14:01:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1FB3728D7F for ; Sun, 18 Sep 2016 14:01:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1blcci-0002nk-Pf; Sun, 18 Sep 2016 13:59:12 +0000 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1blccd-0002m4-Ez for linux-arm-kernel@lists.infradead.org; Sun, 18 Sep 2016 13:59:08 +0000 Received: by mail-pa0-x234.google.com with SMTP id id6so40053894pad.3 for ; Sun, 18 Sep 2016 06:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=71hai0IpJKlYiU/MHg3xJyzGO+IyEn3Khiu9pHkcaLQ=; b=KZXXW+qUrWgfl/Z2ivYUrTm6VPYKaRSnk3/Fc0XNqZ0hOXLdNOJAXM+8/HCS8DXzGd QKL1NcETKsC5ifGm36hJeI3ex58W/VHGfgpLbGpmlsTLqRtgCfPBaePE1C8ZJGl6pPt2 ZFDcLpnhKcMKw+Ywb9FK2kx7ztDNlZLY9Iie4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=71hai0IpJKlYiU/MHg3xJyzGO+IyEn3Khiu9pHkcaLQ=; b=mOItRm3sX+nzsxOgfS8Hzb7OBbP4FYnPeTDEWvY4SR6+N21WRr7aRmW7+yMmraLH3Z /OFYSuAAD/pLlwIjnqcT5MLfWx3CAXIMjHhPDODdB2KTRy2E+ggbAHAPT10+UIB07LKm YUXieG5S4IFQgmxCmlL4ZqtilACseaJDDf7I2pz4nNnDBV5l49+TrFvQU1Bm2GRk6+nG Zt9PmhgfsRZ8JNmPuowcDbVtxQqztw1a02bCahAA7NQB3yD4cbXMxRB3p1uONLOCW2EN RlLa/AEQFc7Gy5GFX+BgS59NDCIgoDPvfQJk2aytJhBxsFF7t2PdVPO2Ar1u+vLkZaSH h5PQ== X-Gm-Message-State: AE9vXwN9Nh0I6/NCU3+tZ5CPvhUZGKd0uFPXGhyTvGnNAOLRrzp0Wj97gq3nDrKVl+OkDhxo X-Received: by 10.66.253.133 with SMTP id aa5mr25094377pad.161.1474207126282; Sun, 18 Sep 2016 06:58:46 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.172]) by smtp.gmail.com with ESMTPSA id k80sm26565520pfk.27.2016.09.18.06.58.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 06:58:45 -0700 (PDT) From: Baoyou Xie To: jingoohan1@gmail.com, inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, airlied@linux.ie, kgene@kernel.org, krzk@kernel.org, javier@osg.samsung.com Subject: [PATCH] drm/exynos: mark exynos_dp_crtc_clock_enable() static Date: Sun, 18 Sep 2016 21:58:30 +0800 Message-Id: <1474207110-16111-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160918_065907_585310_E890D1A2 X-CRM114-Status: GOOD ( 10.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, arnd@arndb.de, xie.baoyou@zte.com.cn, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, baoyou.xie@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP We get 1 warning when building kernel with W=1: drivers/gpu/drm/exynos/exynos_dp.c:46:5: warning: no previous prototype for 'exynos_dp_crtc_clock_enable' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c index 4f08505..528229f 100644 --- a/drivers/gpu/drm/exynos/exynos_dp.c +++ b/drivers/gpu/drm/exynos/exynos_dp.c @@ -43,7 +43,7 @@ struct exynos_dp_device { struct analogix_dp_plat_data plat_data; }; -int exynos_dp_crtc_clock_enable(struct analogix_dp_plat_data *plat_data, +static int exynos_dp_crtc_clock_enable(struct analogix_dp_plat_data *plat_data, bool enable) { struct exynos_dp_device *dp = to_dp(plat_data);