From patchwork Sun Sep 25 07:25:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76952 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp623537qgf; Sun, 25 Sep 2016 00:25:52 -0700 (PDT) X-Received: by 10.66.76.225 with SMTP id n1mr27794387paw.122.1474788352600; Sun, 25 Sep 2016 00:25:52 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oq7si16351272pac.220.2016.09.25.00.25.52; Sun, 25 Sep 2016 00:25:52 -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 S1422744AbcIYHZt (ORCPT + 27 others); Sun, 25 Sep 2016 03:25:49 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34352 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032943AbcIYHZs (ORCPT ); Sun, 25 Sep 2016 03:25:48 -0400 Received: by mail-pf0-f174.google.com with SMTP id l25so7025955pfb.1 for ; Sun, 25 Sep 2016 00:25:48 -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=LogMieoQ/b+WmjSyZWmDdB0AeeqnpVHY302ccM53Z6Q=; b=bu9dewiYuQBRLLWUQqoLkl7FC/gfO1gUFKrgO6l+6B1f4qSgRFZFJKypNz510r0Nfi U7Tppz8pmzJwaaPHoRE0ewYi3OeCjbtwkCJkN7sl9t7CuaLzJYpL6TDUYRsnc3YnRJjp yx8CjSQVTtVY537p06nQpHm2C84Kc8mFfoLds= 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=LogMieoQ/b+WmjSyZWmDdB0AeeqnpVHY302ccM53Z6Q=; b=mLTKFcxUrv0UrBbhVPfYUwVSe/TJS269Ztb+rWlIYLIi0B7aM6tfnlpEbOHN69uCDA 0zd7cCc4LoP3yOAJwfa6h4E0Pq9UgBAtrTlAZrIE5JiWM/djK6GBRmzC5toc8uW5F8w3 xwGjHwlrHRNtIv1unZv1ZEZcHmjeRTihxSQH0ps4he3GuZ8LKFCBdIruYgm7ej2lipci VQODK0TgQEzPCfDS8wtM72UoUDyQqBrx6wVa0js5bGI9brWLQoMJG26M1NfPo0BbvPiM swHD69KmYiOY9M1eH6lTcoHYxKM17SpZPwlbMYEZbVzp3oj/H5+HX5YEhEr9zmxWmp94 FBaw== X-Gm-Message-State: AE9vXwP7OSmWt/sMVmytIHmsZEpIVcNGsNA82XpRXiDyi1o8u8okvXiHYlf+5cjumEYSB87J X-Received: by 10.98.81.1 with SMTP id f1mr27394835pfb.35.1474788347870; Sun, 25 Sep 2016 00:25:47 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id y5sm22315617pfb.13.2016.09.25.00.25.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 00:25:47 -0700 (PDT) From: Baoyou Xie To: kraxel@redhat.com, airlied@linux.ie, daniel.vetter@ffwll.ch, alexander.deucher@amd.com, treding@nvidia.com, boris.brezillon@free-electrons.com, CARLOS.PALMINHA@synopsys.com, ville.syrjala@linux.intel.com, christian.koenig@amd.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@zte.com.cn, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn, Baoyou Xie Subject: [PATCH] drm/bochs: mark bochs_connector_get_modes() static Date: Sun, 25 Sep 2016 15:25:34 +0800 Message-Id: <1474788334-11007-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/bochs/bochs_kms.c:181:5: warning: no previous prototype for 'bochs_connector_get_modes' [-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/bochs/bochs_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c index 207a2cb..0b4e5d1 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c @@ -178,7 +178,7 @@ static void bochs_encoder_init(struct drm_device *dev) } -int bochs_connector_get_modes(struct drm_connector *connector) +static int bochs_connector_get_modes(struct drm_connector *connector) { int count;