staging: vc04_services: vchiq-mmal: Drop include Makefile directive
authorUmang Jain <umang.jain@ideasonboard.com>
Fri, 20 Jan 2023 20:11:02 +0000 (01:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Jan 2023 18:05:39 +0000 (19:05 +0100)
Drop the include directive. They can break the build, when one only
wants to build a subdirectory. Replace with "../" for the includes,
in the mmal-vchiq.c instead.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20230120201104.606876-5-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/vchiq-mmal/Makefile
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c

index c7d3b06e17ce8f6da34b5c6a34e47c250e5e5ca8..6937f6534c2691ae543d9dd1e2b1cad2eab01b6a 100644 (file)
@@ -2,7 +2,3 @@
 bcm2835-mmal-vchiq-objs := mmal-vchiq.o
 
 obj-$(CONFIG_BCM2835_VCHIQ_MMAL) += bcm2835-mmal-vchiq.o
-
-ccflags-y += \
-       -I$(srctree)/$(src)/.. \
-       -I$(srctree)/$(src)/../include
index 6b5879a337800e040a65b8579ed9fcaf42c547ca..234e3764db646998e65e45266f319ebe6a00a859 100644 (file)
@@ -23,9 +23,9 @@
 #include <linux/slab.h>
 #include <linux/completion.h>
 #include <linux/vmalloc.h>
-#include <linux/raspberrypi/vchiq.h>
 #include <media/videobuf2-vmalloc.h>
 
+#include "../include/linux/raspberrypi/vchiq.h"
 #include "mmal-common.h"
 #include "mmal-vchiq.h"
 #include "mmal-msg.h"