aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2022-01-06 21:54:26 +0000
committerMartin K. Petersen <[email protected]>2022-01-10 15:33:51 +0000
commit7a960b3a5e37f05d7d319bf257a8cf6ee9d18e7c (patch)
tree2a727bec0a36c621d88fc6e7313ef844302570a8 /lib/string_helpers.c
parentscsi: message: fusion: mptbase: Use dma_alloc_coherent() (diff)
downloadkernel-7a960b3a5e37f05d7d319bf257a8cf6ee9d18e7c.tar.gz
kernel-7a960b3a5e37f05d7d319bf257a8cf6ee9d18e7c.zip
scsi: message: fusion: Use dma_alloc_coherent() in mptsas_exp_repmanufacture_info()
In [1], Christoph Hellwig has proposed to remove the wrappers in include/linux/pci-dma-compat.h. Some reasons why this API should be removed have been given by Julia Lawall in [2]. The only caller of mptsas_exp_repmanufacture_info() is mptsas_probe_one_phy(). This function already calls sas_end_device_alloc() or sas_expander_alloc(). They both already use GFP_KERNEL. As no spin_lock is held at this point, it is safe to also use GFP_KERNEL here. [1]: https://lore.kernel.org/kernel-janitors/[email protected]/ [2]: https://lore.kernel.org/kernel-janitors/alpine.DEB.2.22.394.2007120902170.2424@hadrien/ Link: https://lore.kernel.org/r/d78d4a5b096897932808ed7e3a4540db1687c25d.1641500561.git.christophe.jaillet@wanadoo.fr Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions