aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorMiquel Raynal <[email protected]>2018-01-19 17:39:01 +0000
committerBoris Brezillon <[email protected]>2018-01-20 09:37:50 +0000
commitc495a9275eeca0bbc9358de7200e58184e864aeb (patch)
tree84d3d1f83b509ddaa6c0a006f9a09a6162150b18 /scripts/gcc-plugins/randomize_layout_plugin.c
parentmtd: nand: marvell: remove redundant variable 'oob_len' (diff)
downloadkernel-c495a9275eeca0bbc9358de7200e58184e864aeb.tar.gz
kernel-c495a9275eeca0bbc9358de7200e58184e864aeb.zip
mtd: nand: marvell: Fix missing memory allocation modifier
The function marvell_nfc_init_dma() allocates a DMA buffer without the GFP_KERNEL modifier, that triggers this warning: "marvell_nfc_init_dma() error: no modifiers for allocation." Fix this by using (GFP_KERNEL | GFP_DMA) instead of only GFP_DMA as the probe happens in non-interrupt context. Fixes: 02f26ecf8c77 ("mtd: nand: add reworked Marvell NAND controller driver") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions