소스 검색

gpu: host1x: Fix more sparse warnings

Include the linux/host1x.h and dev.h headers so that function prototypes
are visible to keep sparse from suggesting that their implementations be
made static.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Thierry Reding 12 년 전
부모
커밋
aef03d3fa5
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      drivers/gpu/host1x/mipi.c

+ 3 - 0
drivers/gpu/host1x/mipi.c

@@ -22,11 +22,14 @@
 
 #include <linux/clk.h>
 #include <linux/delay.h>
+#include <linux/host1x.h>
 #include <linux/io.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 
+#include "dev.h"
+
 #define MIPI_CAL_CTRL			0x00
 #define MIPI_CAL_CTRL_START		(1 << 0)