diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2022-03-08 22:52:11 +0300 |
---|---|---|
committer | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2022-03-16 19:42:17 +0300 |
commit | de2d1822f9489268e0707b2d188dd789d5effd08 (patch) | |
tree | c21b9cf5b18324db757b7e119208eb4a327a723d /drivers/gpu/drm/gma500/gem.h | |
parent | 47042e0ddd218f100292cebc5208cb1eff7473b6 (diff) | |
download | linux-de2d1822f9489268e0707b2d188dd789d5effd08.tar.xz |
drm/gma500: Remove struct psb_gem_object.npage
Calculate the number of pages in the BO's backing storage from
the size. Remove the npage field.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220308195222.13471-2-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/gma500/gem.h')
-rw-r--r-- | drivers/gpu/drm/gma500/gem.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/gem.h b/drivers/gpu/drm/gma500/gem.h index 79cced40c87f..96ef864b4bf1 100644 --- a/drivers/gpu/drm/gma500/gem.h +++ b/drivers/gpu/drm/gma500/gem.h @@ -23,7 +23,6 @@ struct psb_gem_object { bool stolen; /* Backed from stolen RAM */ bool mmapping; /* Is mmappable */ struct page **pages; /* Backing pages if present */ - int npage; /* Number of backing pages */ }; static inline struct psb_gem_object *to_psb_gem_object(struct drm_gem_object *obj) |