Commit 6626734
mm_zone: Generalise has_managed_dma()
It would be useful to be able to check for potential DMA pages beyond
just ZONE_DMA - generalise the existing has_managed_dma() function to
allow checking other zones too.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: David Hildenbrand (Red Hat) <david@kernel.org>
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Tested-by: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>
Reviewed-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/bd002d2351074e57be1ca08f03f333debac658fb.1768230104.git.robin.murphy@arm.com1 parent b31ac41 commit 6626734
2 files changed
Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1648 | 1648 | | |
1649 | 1649 | | |
1650 | 1650 | | |
1651 | | - | |
1652 | | - | |
1653 | | - | |
| 1651 | + | |
1654 | 1652 | | |
1655 | 1653 | | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
1656 | 1657 | | |
1657 | | - | |
1658 | 1658 | | |
| 1659 | + | |
1659 | 1660 | | |
1660 | 1661 | | |
1661 | 1662 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7418 | 7418 | | |
7419 | 7419 | | |
7420 | 7420 | | |
7421 | | - | |
7422 | | - | |
| 7421 | + | |
7423 | 7422 | | |
7424 | 7423 | | |
7425 | 7424 | | |
7426 | 7425 | | |
7427 | | - | |
7428 | | - | |
7429 | | - | |
| 7426 | + | |
7430 | 7427 | | |
7431 | 7428 | | |
7432 | 7429 | | |
7433 | 7430 | | |
7434 | | - | |
7435 | 7431 | | |
7436 | 7432 | | |
7437 | 7433 | | |
| |||
0 commit comments