From patchwork Sun Sep 25 07:32:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76953 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp625368qgf; Sun, 25 Sep 2016 00:33:01 -0700 (PDT) X-Received: by 10.98.184.26 with SMTP id p26mr28083632pfe.71.1474788781723; Sun, 25 Sep 2016 00:33:01 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si18033657pfj.288.2016.09.25.00.33.01; Sun, 25 Sep 2016 00:33:01 -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=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422767AbcIYHc6 (ORCPT + 27 others); Sun, 25 Sep 2016 03:32:58 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34682 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031643AbcIYHc5 (ORCPT ); Sun, 25 Sep 2016 03:32:57 -0400 Received: by mail-pa0-f53.google.com with SMTP id zl8so2537625pac.1 for ; Sun, 25 Sep 2016 00:32:57 -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=8hfIzRc8Bg1xilZEoCHbKmjPQLkkEDeKN36wVWZwgA4=; b=d76AxeX0lPxE0q4Pfr1lTARk4gN0nxWnwxNsQ0jBWRW5uLIVgOffXz945E1fKHvsjE Gya30VSYDiKH+jE9W5RoHJfSgSAxON4rgnafK7d5UUAfvIwkqNcK4LI+RkmQJStEEIyw xPMrRfdvJt27t3g8jATd8IQC6xCyVvjI5Sf0o= 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=8hfIzRc8Bg1xilZEoCHbKmjPQLkkEDeKN36wVWZwgA4=; b=Uyxt6RGPNsk7Ge9LRPcgjMysljuXTcsxzmQkKq4tvKH0m9FmOAnzo5j/J0dKrNN/96 uhvL2ADVX4A0al4WkfpSQDFbM+L90s78yG5MOg62Btn/dBMWAVEWyvH6OtJVGIiWGhpe ap6+tOZxGE+EkW+EOzB40k26pq4CserxFjPh/C1PlTBattY6Ukp/6EYfnUkjUJ+0abYk uKEvSOE4veXPzfFf01eqHzSsQB2/4LQDyjkB7PHZMLWv5BEuuMmyL56O9ssyFkXTcI2h 3T3oqx0I8GlsaLuKudmyyqfBV+zgX/XkEATgJGOvR9gLlWvUEHydyhwfdCNuZMZUDHC2 2Q1w== X-Gm-Message-State: AA6/9Rkkxpmm0EpSZSUKNMtcIv0o7iybzs3F+v5G7Z2f/Merf30g4f7o68aRyoElFup7G9Rn X-Received: by 10.66.43.19 with SMTP id s19mr9119531pal.67.1474788776951; Sun, 25 Sep 2016 00:32:56 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id b88sm22281110pfe.66.2016.09.25.00.32.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 00:32:56 -0700 (PDT) From: Baoyou Xie To: airlied@linux.ie, ykk@rock-chips.com, inki.dae@samsung.com, seanpaul@chromium.org, gustavo.padovan@collabora.co.uk, daniel.vetter@ffwll.ch, ville.syrjala@linux.intel.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH] drm: bridge: analogix/dp: mark symbols static where possible Date: Sun, 25 Sep 2016 15:32:44 +0800 Message-Id: <1474788764-6069-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 2 warnings when building kernel with W=1: drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1053:5: warning: no previous prototype for 'analogix_dp_get_modes' [-Wmissing-prototypes] drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1097:1: warning: no previous prototype for 'analogix_dp_detect' [-Wmissing-prototypes] In fact, both functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks both functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index efac8ab..e6f7290 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -1050,7 +1050,7 @@ out: return ret; } -int analogix_dp_get_modes(struct drm_connector *connector) +static int analogix_dp_get_modes(struct drm_connector *connector) { struct analogix_dp_device *dp = to_dp(connector); struct edid *edid = (struct edid *)dp->edid; @@ -1093,7 +1093,7 @@ static const struct drm_connector_helper_funcs analogix_dp_connector_helper_func .best_encoder = analogix_dp_best_encoder, }; -enum drm_connector_status +static enum drm_connector_status analogix_dp_detect(struct drm_connector *connector, bool force) { struct analogix_dp_device *dp = to_dp(connector);