staging: vc04_services: interface: Drop include Makefile directive
authorUmang Jain <umang.jain@ideasonboard.com>
Fri, 20 Jan 2023 20:11:03 +0000 (01:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Jan 2023 18:05:42 +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 interface/ files 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-6-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/Makefile
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_ioctl.h

index 1fd191e2e2a5832a2815e4529fd370194209e8ec..44794bdf61736be963e5bbd4cea648ad09f23a8b 100644 (file)
@@ -15,5 +15,3 @@ obj-$(CONFIG_SND_BCM2835)             += bcm2835-audio/
 obj-$(CONFIG_VIDEO_BCM2835)            += bcm2835-camera/
 obj-$(CONFIG_BCM2835_VCHIQ_MMAL)       += vchiq-mmal/
 
-ccflags-y += -I $(srctree)/$(src)/include
-
index 3c198eb1c77a0961e27847588f2e5b9d15c30b31..ec1a3caefaea1ecc1001c3b38d5808beba526573 100644 (file)
@@ -10,8 +10,8 @@
 #include <linux/kref.h>
 #include <linux/rcupdate.h>
 #include <linux/wait.h>
-#include <linux/raspberrypi/vchiq.h>
 
+#include "../../include/linux/raspberrypi/vchiq.h"
 #include "vchiq_cfg.h"
 
 /* Do this so that we can test-build the code on non-rpi systems */
index 96f50beace4483265f7b64bd7753311c2727038e..17550831f86cb9b1fdd7231875593aa2bcd47833 100644 (file)
@@ -5,7 +5,8 @@
 #define VCHIQ_IOCTLS_H
 
 #include <linux/ioctl.h>
-#include <linux/raspberrypi/vchiq.h>
+
+#include "../../include/linux/raspberrypi/vchiq.h"
 
 #define VCHIQ_IOC_MAGIC 0xc4
 #define VCHIQ_INVALID_HANDLE (~0)