summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-08-31 16:13:25 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-09-24 09:07:48 +0200
commitc7097c80ca684f6476a55b2e202b975cf3e36b46 (patch)
tree7dc44952d0380d4c1a0094ed4bd1348a28196390 /include/media
parentmedia: Documentation: mc: add definitions for stream and pipeline (diff)
downloadlinux-c7097c80ca684f6476a55b2e202b975cf3e36b46.tar.xz
linux-c7097c80ca684f6476a55b2e202b975cf3e36b46.zip
media: media-entity.h: add include for min()
./include/media/media-entity.h:595:34: error: implicit declaration of function ‘min’ Include minmax.h to get the definition for min(). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/media-entity.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h
index f16ffe70f7a6..4a67b1dfdc69 100644
--- a/include/media/media-entity.h
+++ b/include/media/media-entity.h
@@ -17,6 +17,7 @@
#include <linux/fwnode.h>
#include <linux/list.h>
#include <linux/media.h>
+#include <linux/minmax.h>
#include <linux/types.h>
/* Enums used internally at the media controller to represent graphs */