From patchwork Sat Oct 22 09:07:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 78769 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1694395qge; Sat, 22 Oct 2016 02:08:06 -0700 (PDT) X-Received: by 10.99.56.65 with SMTP id h1mr7923510pgn.166.1477127286459; Sat, 22 Oct 2016 02:08:06 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p84si6140156pfk.119.2016.10.22.02.08.06; Sat, 22 Oct 2016 02:08:06 -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 S936557AbcJVJID (ORCPT + 27 others); Sat, 22 Oct 2016 05:08:03 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:34025 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934238AbcJVJIA (ORCPT ); Sat, 22 Oct 2016 05:08:00 -0400 Received: by mail-pf0-f176.google.com with SMTP id r16so70325917pfg.1 for ; Sat, 22 Oct 2016 02:08:00 -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=fAIzhUz5UvP/y6asE6vQzjZ/qkSu+wNqF3JcNCHQRE4=; b=SPLj7exPwB35rT4jyI0pRcfcwXs4wHeOBYHvNrZ7PQSLo2lKZNffV+5/M5qWf5ePjT B7SuibUu5NHNhDHVD6JQdlROD+7IcEvGVpo1fHB0Lgze3jaY/YeLI8wNCQ4JGrN5vU4J v+sUbsXcUof37nFdLwTA2pztm0iGL4TlHmc8k= 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=fAIzhUz5UvP/y6asE6vQzjZ/qkSu+wNqF3JcNCHQRE4=; b=FNOv1YpgFT4gWQnWCTwCUWAOf/hEaRJOu8CSmCRGu8dHbikFqoTdzq6TVGUtmE2iqT t6ZAa50E22J03DXTeYOxoCIEe6k63XsTqzuuNYTIrk4na0XcbJm2qNJvk+n4xgmn//V1 S+voI5m73UkjQbN4ubw8HNZWLLzSKP38gEQmITvgUBFyRK78XbKNd892Ij1pLj+hFmm0 TkKTgSv/66qT1qZzbYgkWXB5hDQPp1JjiSrMSGAQVWmRhNdMAEfBqLUuX7EM2vypW4C5 gbK9kwpcdJd3fYLNq4aMYiGPw7hRinqe3XMnbEBisM7H2169eoJ6098MxpFcepfkQmNa WOCQ== X-Gm-Message-State: ABUngvd8cEYzdhWG8wnF5dBK3ie3M0wJhC75vlLDB/ihuy5IOfiihWhu4AvIeZqvjFY3rKzG X-Received: by 10.98.10.6 with SMTP id s6mr9523351pfi.8.1477127280131; Sat, 22 Oct 2016 02:08:00 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id cp2sm10705039pad.3.2016.10.22.02.07.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 22 Oct 2016 02:07:59 -0700 (PDT) From: Baoyou Xie To: liviu.dudau@arm.com, brian.starkey@arm.com, malidp@foss.arm.com, airlied@linux.ie, dri-devel@lists.freedesktop.org Cc: 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/arm: mark symbols static where possible Date: Sat, 22 Oct 2016 17:07:31 +0800 Message-Id: <1477127251-23894-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/arm/malidp_planes.c:49:25: warning: no previous prototype for 'malidp_duplicate_plane_state' [-Wmissing-prototypes] drivers/gpu/drm/arm/malidp_planes.c:66:6: warning: no previous prototype for 'malidp_destroy_plane_state' [-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 these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/arm/malidp_planes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c index 82c193e..5339e87 100644 --- a/drivers/gpu/drm/arm/malidp_planes.c +++ b/drivers/gpu/drm/arm/malidp_planes.c @@ -46,7 +46,8 @@ static void malidp_de_plane_destroy(struct drm_plane *plane) devm_kfree(plane->dev->dev, mp); } -struct drm_plane_state *malidp_duplicate_plane_state(struct drm_plane *plane) +static struct +drm_plane_state *malidp_duplicate_plane_state(struct drm_plane *plane) { struct malidp_plane_state *state, *m_state; @@ -63,7 +64,7 @@ struct drm_plane_state *malidp_duplicate_plane_state(struct drm_plane *plane) return &state->base; } -void malidp_destroy_plane_state(struct drm_plane *plane, +static void malidp_destroy_plane_state(struct drm_plane *plane, struct drm_plane_state *state) { struct malidp_plane_state *m_state = to_malidp_plane_state(state);