[PATCH 01/01] kdbus: Eliminate warning caused by lack of uapi/linux/kdbus.h inclusion

From: Paul Osmialowski
Date: Tue Sep 08 2015 - 08:48:58 EST


metadata.h references struct kdbus_pids which is defined in
uapi/linux/kdbus.h

Normally, kdbus/metadata.h is included after many other headers
that eventually include uapi/linux/kdbus.h at some point (e.g. kdbus/bus.h
includes uapi/linux/kdbus.h), this prevents the warning.

When included alone, it causes warning. Also when kdbus/connection.h
is included alone, the same warning is shown since kdbus/connection.h
includes kdbus/metadata.h.

This patch adds missing inclusion.

Signed-off-by: Paul Osmialowski <p.osmialowsk@xxxxxxxxxxx>
---
ipc/kdbus/metadata.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/ipc/kdbus/metadata.h b/ipc/kdbus/metadata.h
index dba7cc7..3f9ba38 100644
--- a/ipc/kdbus/metadata.h
+++ b/ipc/kdbus/metadata.h
@@ -16,6 +16,7 @@
#define __KDBUS_METADATA_H

#include <linux/kernel.h>
+#include <uapi/linux/kdbus.h>

struct kdbus_conn;
struct kdbus_pool_slice;
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/