drm/meson: venc: include linux/bitfield.h
authorArnd Bergmann <arnd@arndb.de>
Fri, 2 Jun 2023 12:45:24 +0000 (14:45 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Fri, 2 Jun 2023 13:47:52 +0000 (15:47 +0200)
Without this header, the use of FIELD_PREP() can cause a build failure:

drivers/gpu/drm/meson/meson_venc.c: In function 'meson_encl_set_gamma_table':
drivers/gpu/drm/meson/meson_venc.c:1595:24: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]

Fixes: 51fc01a03442c ("drm/meson: venc: add ENCL encoder setup for MIPI-DSI output")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230602124539.894888-1-arnd@kernel.org
drivers/gpu/drm/meson/meson_venc.c

index 2bdc2855e249bf6687bedd0d23a88f421d6adff7..3bf0d6e4fc30ae1e06f6ba77157325af416c786f 100644 (file)
@@ -5,6 +5,7 @@
  * Copyright (C) 2015 Amlogic, Inc. All rights reserved.
  */
 
+#include <linux/bitfield.h>
 #include <linux/export.h>
 #include <linux/iopoll.h>