mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-26 15:45:14 +08:00
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@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bb717d7649
commit
61c5e88aec
@ -155,8 +155,9 @@ static void skb_under_panic(struct sk_buff *skb, int sz, void *here)
|
|||||||
*/
|
*/
|
||||||
#define kmalloc_reserve(size, gfp, node, pfmemalloc) \
|
#define kmalloc_reserve(size, gfp, node, pfmemalloc) \
|
||||||
__kmalloc_reserve(size, gfp, node, _RET_IP_, 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;
|
void *obj;
|
||||||
bool ret_pfmemalloc = false;
|
bool ret_pfmemalloc = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user