fbbb2f5de4a677e940efb98cad3e2d307ac4fd7e
[openwrt/staging/chunkeey.git] /
1 From 74a68a4cabb8dc516c6d1a9860043b9285d4f661 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Mon, 24 Sep 2018 16:21:06 +0100
4 Subject: [PATCH 258/703] staging: bcm2835-camera: Add multiple inclusion
5 protection to headers
6
7 mmal-common.h and mmal-msg.h didn't have the normal
8 ifndef FOO / define FOO / endif protection to stop it being
9 included multiple times. Add it.
10
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
12 ---
13 drivers/staging/vc04_services/bcm2835-camera/mmal-common.h | 3 +++
14 drivers/staging/vc04_services/bcm2835-camera/mmal-msg.h | 3 +++
15 2 files changed, 6 insertions(+)
16
17 --- a/drivers/staging/vc04_services/bcm2835-camera/mmal-common.h
18 +++ b/drivers/staging/vc04_services/bcm2835-camera/mmal-common.h
19 @@ -13,6 +13,8 @@
20 * MMAL structures
21 *
22 */
23 +#ifndef MMAL_COMMON_H
24 +#define MMAL_COMMON_H
25
26 #define MMAL_FOURCC(a, b, c, d) ((a) | (b << 8) | (c << 16) | (d << 24))
27 #define MMAL_MAGIC MMAL_FOURCC('m', 'm', 'a', 'l')
28 @@ -56,3 +58,4 @@ struct mmal_colourfx {
29 u32 u;
30 u32 v;
31 };
32 +#endif
33 --- a/drivers/staging/vc04_services/bcm2835-camera/mmal-msg.h
34 +++ b/drivers/staging/vc04_services/bcm2835-camera/mmal-msg.h
35 @@ -23,6 +23,8 @@
36 * implementation uses fixed size types and not the enums (though the
37 * comments have the actual enum type
38 */
39 +#ifndef MMAL_MSG_H
40 +#define MMAL_MSG_H
41
42 #define VC_MMAL_VER 15
43 #define VC_MMAL_MIN_VER 10
44 @@ -401,3 +403,4 @@ struct mmal_msg {
45 u8 payload[MMAL_MSG_MAX_PAYLOAD];
46 } u;
47 };
48 +#endif