atomisp: HRT_KERNEL is always defined so clean up the ifdef use
authorAlan Cox <alan@linux.intel.com>
Wed, 8 Mar 2017 11:39:08 +0000 (11:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Mar 2017 12:39:55 +0000 (13:39 +0100)
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/Makefile
drivers/staging/media/atomisp/pci/atomisp2/hrt/hive_isp_css_mm_hrt.h

index 5e4a3c6b50a05b4ccd0e945873d58f53de7e0d35..2e00837dbd66ed85f9812d737bc5e0bec0e83b19 100644 (file)
@@ -365,7 +365,7 @@ ifeq ($(CONFIG_ION),y)
 INCLUDES += -I$(srctree)/drivers/staging/android/ion
 endif
 
-DEFINES := -DHRT_HW -DHRT_ISP_CSS_CUSTOM_HOST -DHRT_USE_VIR_ADDRS -DHRT_KERNEL -D__HOST__
+DEFINES := -DHRT_HW -DHRT_ISP_CSS_CUSTOM_HOST -DHRT_USE_VIR_ADDRS -D__HOST__
 #DEFINES += -DUSE_DYNAMIC_BIN
 #DEFINES += -DISP_POWER_GATING
 #DEFINES += -DUSE_INTERRUPTS
index 5363c5a9b1314e0a5166df7774d0cd7e9601ff4b..41c6d14ca61104940ead321fe66952d376227e17 100644 (file)
 #ifndef _hive_isp_css_mm_hrt_h_
 #define _hive_isp_css_mm_hrt_h_
 
-#ifndef HRT_KERNEL
-/* size_t is defined already in kernel mode */
-#include <stdlib.h>
-#endif
 #include <hmm/hmm.h>
 #include <hrt/hive_isp_css_custom_host_hrt.h>