Эх сурвалжийг харах

video: driver: compilation fixes for host-linux x86_64

Include errno.h explicitly and fix the order of
includes

Test:
   compile on Android for arm64
   compile off-target on host-linux for x86_64

Change-Id: I77e2469f576369d4dcea672f40413ec21ff7f3f9
Signed-off-by: Praveen Chavan <[email protected]>
Praveen Chavan 4 жил өмнө
parent
commit
0144963551

+ 1 - 0
driver/vidc/inc/msm_vidc_debug.h

@@ -6,6 +6,7 @@
 #ifndef __MSM_VIDC_DEBUG__
 #define __MSM_VIDC_DEBUG__
 
+#include <linux/errno.h>
 #include <linux/debugfs.h>
 #include <linux/delay.h>
 #include <linux/types.h>

+ 1 - 1
driver/vidc/src/msm_vidc.c

@@ -5,7 +5,6 @@
 
 #include <linux/types.h>
 #include <linux/hash.h>
-#include "msm_vidc.h"
 #include "msm_vidc_core.h"
 #include "msm_vidc_inst.h"
 #include "msm_vdec.h"
@@ -19,6 +18,7 @@
 #include "msm_vidc_power.h"
 #include "msm_vidc_memory.h"
 #include "venus_hfi_response.h"
+#include "msm_vidc.h"
 
 #define MSM_VIDC_DRV_NAME "msm_vidc_driver"
 /* kernel/msm-4.19 */

+ 1 - 1
driver/vidc/src/msm_vidc_dt.c

@@ -8,10 +8,10 @@
 #include <linux/of.h>
 #include <linux/sort.h>
 
+#include "msm_vidc_debug.h"
 #include "msm_vidc_dt.h"
 #include "msm_vidc_internal.h"
 #include "msm_vidc_core.h"
-#include "msm_vidc_debug.h"
 #include "msm_vidc_driver.h"
 
 static size_t get_u32_array_num_elements(struct device_node *np,