Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752787AbdGSDAs (ORCPT ); Tue, 18 Jul 2017 23:00:48 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:33705 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752020AbdGSDAp (ORCPT ); Tue, 18 Jul 2017 23:00:45 -0400 From: Joseph Wright To: gregkh@linuxfoundation.org, linux@Wolf-Entwicklungen.de Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Joseph Wright Subject: [PATCH 1/2] Staging: pi433: declare functions static Date: Sun, 16 Jul 2017 14:48:57 +0000 Message-Id: <20170716144858.643-2-rjosephwright@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170716144858.643-1-rjosephwright@gmail.com> References: <20170716144858.643-1-rjosephwright@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 933 Lines: 34 Declare functions static to fix sparse warnings: warning: symbol 'pi433_receive' was not declared. Should it be static? warning: symbol 'pi433_tx_thread' was not declared. Should it be static? Signed-off-by: Joseph Wright --- drivers/staging/pi433/pi433_if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 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 @@ pi433_start_rx(struct pi433_device *dev) /*-------------------------------------------------------------------------*/ -int +static int pi433_receive(void *data) { struct pi433_device *dev = data; @@ -463,7 +463,7 @@ pi433_receive(void *data) return bytes_total; } -int +static int pi433_tx_thread(void *data) { struct pi433_device *device = data; -- 2.9.3