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
| ||
|
Message-ID: <20121228202428.5aa18a7b@nehalam.linuxnetplumber.net> Date: Fri, 28 Dec 2012 20:24:28 -0800 From: Stephen Hemminger <shemminger@...tta.com> To: David Miller <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com> Cc: netdev@...r.kernel.org Subject: [PATCH] skbuff: make __kmalloc_reserve static Sparse detected case where this local function should be static. It may even allow some compiler optimizations. Signed-off-by: Stephen Hemminger <shemminger@...tta.com> --- a/net/core/skbuff.c 2012-12-28 19:46:31.967615872 -0800 +++ b/net/core/skbuff.c 2012-12-28 20:00:33.343165940 -0800 @@ -155,8 +155,9 @@ static void skb_under_panic(struct sk_bu */ #define kmalloc_reserve(size, gfp, node, pfmemalloc) \ __kmalloc_reserve(size, gfp, node, _RET_IP_, pfmemalloc) -void *__kmalloc_reserve(size_t size, gfp_t flags, int node, unsigned long ip, - bool *pfmemalloc) + +static void *__kmalloc_reserve(size_t size, gfp_t flags, int node, + unsigned long ip, bool *pfmemalloc) { void *obj; bool ret_pfmemalloc = false; -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists