summaryrefslogtreecommitdiffstats
path: root/drivers/staging/emxx_udc
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-05-03 15:21:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-08 09:23:58 +0200
commitbae97e81102d281c92b00c44d43304be3ae3c0a6 (patch)
treee237d3b68917284e72b6a88b403f767f1e732b73 /drivers/staging/emxx_udc
parentb18d11003d8d161b251ad70375d23297beb51c4e (diff)
downloadop-kernel-dev-bae97e81102d281c92b00c44d43304be3ae3c0a6.zip
op-kernel-dev-bae97e81102d281c92b00c44d43304be3ae3c0a6.tar.gz
staging/lustre/ptlrpc: Replace OBD_CPT_ALLOC etc by kzalloc_node
Replace OBD_CPT_ALLOC, OBD_CPT_ALLOC_PTR, and OBD_CPT_ALLOC_GFP by corresponding calls to kzalloc_node. The semantic patch for the OBD_CPT_ALLOC case is as follows: (http://coccinelle.lip6.fr/). // <smpl> @@ expression ptr,cptab,cpt,size; @@ - OBD_CPT_ALLOC(ptr, cptab, cpt, size) + ptr = kzalloc_node(size, GFP_NOFS, cfs_cpt_spread_node(cptab, cpt)) // </smpl> Note that the original OBD macros would check if the cptab argument was NULL and fall back on kzalloc in that case. Oleg Drokin argues that this test is not needed because the code containing these calls is only invoked after initialization has been completed, in which case the possible cptab arguments are not NULL. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/emxx_udc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud