Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752714AbdGXDY5 (ORCPT ); Sun, 23 Jul 2017 23:24:57 -0400 Received: from wp244.webpack.hosteurope.de ([80.237.133.13]:38846 "EHLO wp244.webpack.hosteurope.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713AbdGXDYr (ORCPT ); Sun, 23 Jul 2017 23:24:47 -0400 Date: Mon, 24 Jul 2017 05:24:43 +0200 (CEST) From: Marcus Wolf To: gregkh@linuxfoundation.org, David Wittman Cc: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org Message-ID: <1636103802.23032.1500866683539@ox.hosteurope.de> In-Reply-To: <1500850006-5026-1-git-send-email-dwittman@gmail.com> References: <1500850006-5026-1-git-send-email-dwittman@gmail.com> Subject: Re: [PATCH] staging: pi433: fix sparse warning: missing static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.3-Rev29 X-Originating-Client: com.openexchange.ox.gui.dhtml X-bounce-key: webpack.hosteurope.de;marcus.wolf@wolf-entwicklungen.de;1500866687;8149f13b; X-HE-SMSGID: 1dZTz9-0003E6-Kz Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1815 Lines: 64 reviewed-by: Marcus Wolf The fixes of this patch are fine, but there are already patches out there, containing these fixes. Thanks, Marcus > David Wittman hat am 24. Juli 2017 um 00:46 geschrieben: > > > A few local functions in the pi433 module were getting flagged by Sparse > for missing declarations, so I added static qualifiers to clean up the > warnings. > > Signed-off-by: David Wittman > --- > drivers/staging/pi433/pi433_if.c | 4 ++-- > drivers/staging/pi433/rf69.c | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/pi433/pi433_if.c > b/drivers/staging/pi433/pi433_if.c > index 1bc478a..46461b4 100644 > --- a/drivers/staging/pi433/pi433_if.c > +++ b/drivers/staging/pi433/pi433_if.c > @@ -313,7 +313,7 @@ struct pi433_instance { > > /*-------------------------------------------------------------------------*/ > > -int > +static int > pi433_receive(void *data) > { > struct pi433_device *dev = data; > @@ -463,7 +463,7 @@ struct pi433_instance { > return bytes_total; > } > > -int > +static int > pi433_tx_thread(void *data) > { > struct pi433_device *device = data; > diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c > index e391ce7..e5eee84 100644 > --- a/drivers/staging/pi433/rf69.c > +++ b/drivers/staging/pi433/rf69.c > @@ -433,7 +433,7 @@ int rf69_set_dc_cut_off_frequency_during_afc(struct > spi_device *spi, enum dccPer > return rf69_set_dc_cut_off_frequency_intern(spi, REG_AFCBW, dccPercent); > } > > -int rf69_set_bandwidth_intern(struct spi_device *spi, u8 reg, enum mantisse > mantisse, u8 exponent) > +static int rf69_set_bandwidth_intern(struct spi_device *spi, u8 reg, enum > mantisse mantisse, u8 exponent) > { > u8 newValue; > > -- > 1.9.1 > >