From: Vitaly Osipov Date: Sat, 24 May 2014 08:19:27 +0000 (+1000) Subject: staging: rtl8712: remove _malloc() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~263 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91d435fe368ab30702d7bcd50f680e7185899295;p=pandora-kernel.git staging: rtl8712: remove _malloc() This patch removes all usage of _malloc() and the function itself. Most uses are straightforward replacements by kmalloc(..., GFP_ATOMIC), because this was the definition of _malloc(). In a few places it was possible to use kzalloc() or memdup_user. A further improvement would be to replace GFP_ATOMIC with GFP_KERNEL where possible. Verified by compilation only. Initial replacement done by running a Coccinelle script along the lines of: @@ type T; expression E; identifier V; @@ - V = (T) _malloc(E); + V = kmalloc(E, GFP_ATOMIC); @@ expression E, E1; @@ - E1 = _malloc(E); + E1 = kmalloc(E, GFP_ATOMIC); Signed-off-by: Vitaly Osipov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed