lkml.org 
[lkml]   [2019]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] device_cgroup: add include guard to device_cgroup.h
Date
Add a header include guard just in case.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

include/linux/device_cgroup.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/include/linux/device_cgroup.h b/include/linux/device_cgroup.h
index 8557efe096dc..7c1d832d29a6 100644
--- a/include/linux/device_cgroup.h
+++ b/include/linux/device_cgroup.h
@@ -1,4 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef _LINUX_DEVICE_CGROUP_H
+#define _LINUX_DEVICE_CGROUP_H
+
#include <linux/fs.h>
#include <linux/bpf-cgroup.h>

@@ -77,3 +81,5 @@ static inline int devcgroup_inode_permission(struct inode *inode, int mask)
static inline int devcgroup_inode_mknod(int mode, dev_t dev)
{ return 0; }
#endif
+
+#endif /* _LINUX_DEVICE_CGROUP_H */
--
2.17.1
\
 
 \ /
  Last update: 2019-08-19 09:13    [W:0.037 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site