From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755754AbcH2TNx (ORCPT ); Mon, 29 Aug 2016 15:13:53 -0400 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:42772 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751314AbcH2TNv (ORCPT ); Mon, 29 Aug 2016 15:13:51 -0400 Subject: Re: [PATCH] fix:iio:common:st_sensors:st_sensors_trigger:mark symbols static where possible To: Linus Walleij , Baoyou Xie References: <1472279190-23169-1-git-send-email-baoyou.xie@linaro.org> Cc: Lars-Peter Clausen , Peter Meerwald-Stadler , rob@kernel.org, maitysanchayan@gmail.com, Crestez Dan Leonard , Gregor Boirie , "linux-iio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Arnd Bergmann , xie.baoyou@zte.com.cn From: Jonathan Cameron Message-ID: <849dac94-63e1-8e0a-584c-b5c02dd811a7@kernel.org> Date: Mon, 29 Aug 2016 20:13:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/08/16 09:44, Linus Walleij wrote: > On Sat, Aug 27, 2016 at 8:26 AM, Baoyou Xie wrote: > >> We get 2 warnings when biuld kernel with W=1: >> drivers/iio/common/st_sensors/st_sensors_trigger.c:69:13: warning: no previous prototype >> for 'st_sensors_irq_handler' [-Wmissing-prototypes] >> drivers/iio/common/st_sensors/st_sensors_trigger.c:85:13: warning: no previous prototype >> for 'st_sensors_irq_thread' [-Wmissing-prototypes] >> >> In fact, these 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 > > Reviewed-by: Linus Walleij Applied to the togreg branch of iio.git. Initially pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > > Yours, > Linus Walleij >