]> Gentwo Git Trees - linux/.git/commit
drm/plane: Remove const qualifier from plane->modifiers allocation type
authorKees Cook <kees@kernel.org>
Sat, 26 Apr 2025 06:13:26 +0000 (23:13 -0700)
committerKees Cook <kees@kernel.org>
Mon, 24 Nov 2025 20:43:52 +0000 (12:43 -0800)
commit961c989c5fbbd9146d5cb134d3f663c20708b2be
tree1bde6f27543c6d42e09784e415a35cadade8ce0c
parent5146f56deeab2d44c41007f20137345809dcf6d7
drm/plane: Remove const qualifier from plane->modifiers allocation type

In preparation for making the kmalloc family of allocators type aware,
we need to make sure that the returned type from the allocation matches
the type of the variable being assigned. (Before, the allocator would
always return "void *", which can be implicitly cast to any pointer type.)

The assigned type is "uint64_t *", but the returned type, while matching,
will be const qualified. As there is no general way to remove const
qualifiers, adjust the allocation type to match the assignment.

Link: https://patch.msgid.link/20250426061325.work.665-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
drivers/gpu/drm/drm_plane.c