Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755840AbcJXRuS (ORCPT ); Mon, 24 Oct 2016 13:50:18 -0400 Received: from foss.arm.com ([217.140.101.70]:59202 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752054AbcJXRuR (ORCPT ); Mon, 24 Oct 2016 13:50:17 -0400 Date: Mon, 24 Oct 2016 18:50:14 +0100 From: liviu.dudau@arm.com To: Arnd Bergmann Cc: Baoyou Xie , brian.starkey@arm.com, malidp@foss.arm.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: Re: [PATCH] drm/arm: mark symbols static where possible Message-ID: <20161024175014.GS8762@e106497-lin.cambridge.arm.com> References: <1477127581-1095-1-git-send-email-baoyou.xie@linaro.org> <6967038.koRMV7E4Wg@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6967038.koRMV7E4Wg@wuerfel> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1775 Lines: 51 On Mon, Oct 24, 2016 at 12:18:37PM +0200, Arnd Bergmann wrote: > On Saturday, October 22, 2016 5:13:01 PM CEST Baoyou Xie wrote: > > 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 > > --- > ... > > @@ -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); > > > > The change looks correct, but I notice that the two lines of the > declaration are no longer aligned. > > The file follows the normal style of aligning the argument list > in the second line to line up with the opening '(', so please keep > it that way. > > Arnd > Fixed it locally and pushed it into my public repo @ git://linux-arm.org/linux-ld.git for-upstream/mali-dp I will send it to David Airlie as a pull request together with the other patches/cleanups. Many thanks, Liviu -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯