Skip to content
Snippets Groups Projects
Commit 38674442 authored by Thierry Reding's avatar Thierry Reding Committed by Konrad Rzeszutek Wilk
Browse files

swiotlb: Make linux/swiotlb.h standalone includible


This header file uses the enum dma_data_direction and struct page types
without explicitly including the corresponding header files. This makes
it rely on the includer to have included the proper headers before.

To fix this, include linux/dma-direction.h and forward-declare struct
page. The swiotlb_free() function is also annotated __init, therefore
requires linux/init.h to be included as well.

Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent 973abd30
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment