Skip to content

Commit cae5572

Browse files
balbirs-nvmszyprow
authored andcommitted
dma-mapping: Fix warning reported for missing prototype
lkp reported a warning about missing prototype for a recent patch. The kernel-doc style comments are out of sync, move them to the right function. Cc: Marek Szyprowski <[email protected]> Cc: Christoph Hellwig <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Balbir Singh <[email protected]> [mszyprow: reformatted subject] Signed-off-by: Marek Szyprowski <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c9b19ea commit cae5572

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

kernel/dma/mapping.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -910,14 +910,6 @@ int dma_set_coherent_mask(struct device *dev, u64 mask)
910910
}
911911
EXPORT_SYMBOL(dma_set_coherent_mask);
912912

913-
/**
914-
* dma_addressing_limited - return if the device is addressing limited
915-
* @dev: device to check
916-
*
917-
* Return %true if the devices DMA mask is too small to address all memory in
918-
* the system, else %false. Lack of addressing bits is the prime reason for
919-
* bounce buffering, but might not be the only one.
920-
*/
921913
static bool __dma_addressing_limited(struct device *dev)
922914
{
923915
const struct dma_map_ops *ops = get_dma_ops(dev);
@@ -931,6 +923,14 @@ static bool __dma_addressing_limited(struct device *dev)
931923
return !dma_direct_all_ram_mapped(dev);
932924
}
933925

926+
/**
927+
* dma_addressing_limited - return if the device is addressing limited
928+
* @dev: device to check
929+
*
930+
* Return %true if the devices DMA mask is too small to address all memory in
931+
* the system, else %false. Lack of addressing bits is the prime reason for
932+
* bounce buffering, but might not be the only one.
933+
*/
934934
bool dma_addressing_limited(struct device *dev)
935935
{
936936
if (!__dma_addressing_limited(dev))

0 commit comments

Comments
 (0)