Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/etnaviv: Drop unused data member from the etnaviv_gem_object structure

Referencing the 'struct etnaviv_gpu *' by every etnaviv GEM BO is weird.
Drop it and drop yet another unused data field, namely 'access'.

Memory footprint of etnaviv GEM BOs reduced.

Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>

authored by

Sui Jingfeng and committed by
Lucas Stach
c5d46bd9 40384c84

-2
-2
drivers/gpu/drm/etnaviv/etnaviv_gem.h
··· 44 44 u32 flags; 45 45 46 46 struct list_head gem_node; 47 - struct etnaviv_gpu *gpu; /* non-null if active */ 48 47 atomic_t gpu_active; 49 - u32 access; 50 48 51 49 struct page **pages; 52 50 struct sg_table *sgt;