Skip to content

Commit

Permalink
drm/ttm: Include pagemap.h from ttm_tt.h
Browse files Browse the repository at this point in the history
It's needed for pgprot_t which is used in the header.

Signed-off-by: Jason Ekstrand <[email protected]>
Cc: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
  • Loading branch information
gfxstrand authored and ChristianKoenigAMD committed Aug 16, 2021
1 parent bd4dada commit 80cbd88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion drivers/gpu/drm/ttm/ttm_tt.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#define pr_fmt(fmt) "[TTM] " fmt

#include <linux/sched.h>
#include <linux/pagemap.h>
#include <linux/shmem_fs.h>
#include <linux/file.h>
#include <drm/drm_cache.h>
Expand Down
1 change: 1 addition & 0 deletions include/drm/ttm/ttm_tt.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#ifndef _TTM_TT_H_
#define _TTM_TT_H_

#include <linux/pagemap.h>
#include <linux/types.h>
#include <drm/ttm/ttm_caching.h>
#include <drm/ttm/ttm_kmap_iter.h>
Expand Down

0 comments on commit 80cbd88

Please sign in to comment.