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-prev] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 21 Mar 2019 15:19:45 -0700
From:   Bart Van Assche <bvanassche@....org>
To:     David Miller <davem@...emloft.net>
Cc:     netdev@...r.kernel.org, Bart Van Assche <bvanassche@....org>,
        Sagi Grimberg <sagi@...mberg.me>,
        Christoph Hellwig <hch@....de>
Subject: [PATCH 6/7] net/core: Declare a local function 'static'

This patch avoids that the compiler complains about a missing prototype
when building with W=1.

Cc: Sagi Grimberg <sagi@...mberg.me>
Cc: Christoph Hellwig <hch@....de>
Signed-off-by: Bart Van Assche <bvanassche@....org>
---
 net/core/datagram.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/core/datagram.c b/net/core/datagram.c
index c42f1f0e62b6..334e0a7ce940 100644
--- a/net/core/datagram.c
+++ b/net/core/datagram.c
@@ -410,6 +410,7 @@ int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags)
 }
 EXPORT_SYMBOL(skb_kill_datagram);
 
+static
 int __skb_datagram_iter(const struct sk_buff *skb, int offset,
 			struct iov_iter *to, int len, bool fault_short,
 			size_t (*cb)(const void *, size_t, void *, struct iov_iter *),
-- 
2.21.0.155.ge902e9bcae20

Powered by blists - more mailing lists