From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753703AbdH2Lt5 (ORCPT ); Tue, 29 Aug 2017 07:49:57 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:38095 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753654AbdH2Lti (ORCPT ); Tue, 29 Aug 2017 07:49:38 -0400 Subject: Re: [PATCH][media-next] media: qcom: camss: Make function vfe_set_selection static To: Colin King Cc: Todor Tomov , Mauro Carvalho Chehab , linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20170829102110.25657-1-colin.king@canonical.com> From: Todor Tomov Message-ID: <043e2533-e1fd-4823-4dc7-b21483c5f560@linaro.org> Date: Tue, 29 Aug 2017 14:49:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170829102110.25657-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29.08.2017 13:21, Colin King wrote: > From: Colin Ian King > > The function vfe_set_selection is local to the source and does > not need to be in global scope, so make it static. > > Cleans up sparse warning: > warning: symbol 'vfe_set_selection' was not declared. Should it be static? > > Signed-off-by: Colin Ian King Thank you! Acked-by: Todor Tomov > --- > drivers/media/platform/qcom/camss-8x16/camss-vfe.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/camss-8x16/camss-vfe.c b/drivers/media/platform/qcom/camss-8x16/camss-vfe.c > index b21b3c2dc77f..b22d2dfcd3c2 100644 > --- a/drivers/media/platform/qcom/camss-8x16/camss-vfe.c > +++ b/drivers/media/platform/qcom/camss-8x16/camss-vfe.c > @@ -2660,7 +2660,7 @@ static int vfe_get_selection(struct v4l2_subdev *sd, > * > * Return -EINVAL or zero on success > */ > -int vfe_set_selection(struct v4l2_subdev *sd, > +static int vfe_set_selection(struct v4l2_subdev *sd, > struct v4l2_subdev_pad_config *cfg, > struct v4l2_subdev_selection *sel) > { > -- Best regards, Todor Tomov