BNX2X: Spatch memory allocations
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 6 Feb 2015 17:06:17 +0000 (12:06 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 Mar 2015 16:59:08 +0000 (11:59 -0500)
commit58e08a1ce2035bd9add9f07e9b280cb6cab231a0
tree154291c88fa071b2956918a42c798b503c558701
parentd5868337c2b047e1c685d218bb5249d2af980cbb
BNX2X: Spatch memory allocations

GFP_ATOMIC is the default flag in Akaros (0).  GFP_KERNEL needed to be done
manually in the macro in main.c.

Also, this splits out the memory.cocci.  funcs.cocci is getting too large.
kern/drivers/net/bnx2x/bnx2x.h
kern/drivers/net/bnx2x/bnx2x_cmn.c
kern/drivers/net/bnx2x/bnx2x_cmn.h
kern/drivers/net/bnx2x/bnx2x_ethtool.c
kern/drivers/net/bnx2x/bnx2x_main.c
kern/drivers/net/bnx2x/bnx2x_sp.c
kern/drivers/net/bnx2x/bnx2x_sriov.c
kern/drivers/net/bnx2x/bnx2x_vfpf.c
scripts/spatch/linux/memory.cocci [new file with mode: 0644]