./include/media/media-entity.h:595:34: error: implicit declaration of function ‘min’ Include kernel.h to get the definition for min(). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@xxxxxxxxxxxxxxxx> --- include/media/media-entity.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/media/media-entity.h b/include/media/media-entity.h index a9a1c0ec5d1c..3e3d06c1ec36 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h @@ -15,6 +15,7 @@ #include <linux/bug.h> #include <linux/container_of.h> #include <linux/fwnode.h> +#include <linux/kernel.h> #include <linux/list.h> #include <linux/media.h> #include <linux/types.h> -- 2.34.1