From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752076AbdL1IAu (ORCPT ); Thu, 28 Dec 2017 03:00:50 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:40873 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbdL1IAs (ORCPT ); Thu, 28 Dec 2017 03:00:48 -0500 X-Google-Smtp-Source: ACJfBotwFMhqWPsETxUR4OuLp9vLfE/7vIb9PAOzbTjG/SBU3c5D+KhN+uFs+QYGiemZwZCcWPTTTQ== From: Vaibhav Kothari To: linux-kernel@vger.kernel.org Cc: Vaibhav Kothari Subject: [PATCH] staging: irda: net: Fix warning for incomplete Declarations in irlap.c Date: Thu, 28 Dec 2017 13:30:41 +0530 Message-Id: <1514448041-26200-1-git-send-email-vaibhavddit@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the Sparse Warning "symbol was not declared. Should it be static?" in net/irlap.c Signed-off-by: Vaibhav Kothari --- drivers/staging/irda/net/irlap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/irda/net/irlap.c b/drivers/staging/irda/net/irlap.c index d7d8944..6bc5f0b5 100644 --- a/drivers/staging/irda/net/irlap.c +++ b/drivers/staging/irda/net/irlap.c @@ -48,12 +48,12 @@ #include static hashbin_t *irlap = NULL; -int sysctl_slot_timeout = SLOT_TIMEOUT * 1000 / HZ; +static int sysctl_slot_timeout = SLOT_TIMEOUT * 1000 / HZ; /* This is the delay of missed pf period before generating an event * to the application. The spec mandate 3 seconds, but in some cases * it's way too long. - Jean II */ -int sysctl_warn_noreply_time = 3; +static int sysctl_warn_noreply_time = 3; extern void irlap_queue_xmit(struct irlap_cb *self, struct sk_buff *skb); static void __irlap_close(struct irlap_cb *self); -- 2.7.4