lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 28 Dec 2017 13:30:41 +0530
From:   Vaibhav Kothari <vaibhavddit@...il.com>
To:     linux-kernel@...r.kernel.org
Cc:     Vaibhav Kothari <vaibhavddit@...il.com>
Subject: [PATCH] staging: irda: net: Fix warning for incomplete Declarations in irlap.c

This patch fixes the Sparse Warning "symbol was
not declared. Should it be static?" in net/irlap.c

Signed-off-by: Vaibhav Kothari <vaibhavddit@...il.com>
---
 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 <net/irda/qos.h>
 
 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ