drm/msm: include linux/sched/task.h
authorArnd Bergmann <arnd@arndb.de>
Wed, 18 Sep 2019 19:57:07 +0000 (21:57 +0200)
committerRob Clark <robdclark@chromium.org>
Mon, 7 Oct 2019 16:29:10 +0000 (09:29 -0700)
Without this header file, compile-testing may run into a missing
declaration:

drivers/gpu/drm/msm/msm_gpu.c:444:4: error: implicit declaration of function 'put_task_struct' [-Werror,-Wimplicit-function-declaration]

Fixes: 482f96324a4e ("drm/msm: Fix task dump in gpu recovery")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_gpu.c

index 122199a..18f3a5c 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/pm_opp.h>
 #include <linux/devfreq.h>
 #include <linux/devcoredump.h>
+#include <linux/sched/task.h>
 
 /*
  * Power Management: