From patchwork Wed Sep 21 05:14:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76663 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1851032qgf; Tue, 20 Sep 2016 22:15:04 -0700 (PDT) X-Received: by 10.66.188.202 with SMTP id gc10mr49139981pac.104.1474434904496; Tue, 20 Sep 2016 22:15:04 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o195si28589567pfg.25.2016.09.20.22.15.04; Tue, 20 Sep 2016 22:15:04 -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 S1754448AbcIUFPC (ORCPT + 27 others); Wed, 21 Sep 2016 01:15:02 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33063 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751190AbcIUFO7 (ORCPT ); Wed, 21 Sep 2016 01:14:59 -0400 Received: by mail-pf0-f177.google.com with SMTP id 21so15078065pfy.0 for ; Tue, 20 Sep 2016 22:14:59 -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=vLLC1LMrQTYjEknGl0RJ3lfCYx9c9BH+GQyqLrCr/uA=; b=YP6X72z91pIwma2yWLJmqrLxalJXGRaYEwOWUDh75lcjmjl3haWUjTIh0XPx3qqvCR u+nyRu4xzAfiaZeQyA92G/3s6JKAo5aqYnaj7IqZO9x3X5ofjReR5GOmPrGrBUlQaLS8 8pcwHFaHr+Ec21A5awTZ3wJJL3zNxyYqW0nJk= 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=vLLC1LMrQTYjEknGl0RJ3lfCYx9c9BH+GQyqLrCr/uA=; b=Y9ayG1XgOGWpxIFeThr4T4xp4eUVrI6ElAXTceDkLzDykboOStznOKaKk+HVzNjJgM ohAauFlD12gOZdjRR9iocL9q+YKFknYbxE+IOKUdXAy8ILMjfVcEaduSH6Ayg7qk+i1e vjCPpc9EOk8lCm4bfOBj+VqjrSKY3xXrCuEsq8Av83kXCe7w08jihHyX4rwonVmi9IJk z56KqjEysK84FsGpA5jl1oUjbHs9EXR4uBDQ4/RvEHlpRfQXq1umMWwF9gdc9zwv7lux 3P2iSKGk3oSIOnxAGepwTe7uTps7hJ48DFRd1fS3EjTbPz797fx3GIAE3tR4bEKhgfse xe+w== X-Gm-Message-State: AE9vXwOAD6K4xVZAoHdfRT8D8qozLsU40rQEvfgATKlC3N9+3XhHTWUbcw8ZhaR+51IZ7EKD X-Received: by 10.98.36.70 with SMTP id r67mr47552269pfj.174.1474434899189; Tue, 20 Sep 2016 22:14:59 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.29]) by smtp.gmail.com with ESMTPSA id n7sm82777126pfg.45.2016.09.20.22.14.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Sep 2016 22:14:58 -0700 (PDT) From: Baoyou Xie To: jsarha@ti.com, tomi.valkeinen@ti.com, airlied@linux.ie Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] drm/tilcdc: mark tilcdc_atomic_check() static Date: Wed, 21 Sep 2016 13:14:36 +0800 Message-Id: <1474434876-9293-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 1 warning when building kernel with W=1: drivers/gpu/drm/tilcdc/tilcdc_drv.c:64:5: warning: no previous prototype for 'tilcdc_atomic_check' [-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 --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 4405e4b..1d26bc9 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -61,7 +61,7 @@ static void tilcdc_fb_output_poll_changed(struct drm_device *dev) drm_fbdev_cma_hotplug_event(priv->fbdev); } -int tilcdc_atomic_check(struct drm_device *dev, +static int tilcdc_atomic_check(struct drm_device *dev, struct drm_atomic_state *state) { int ret;