[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180423213534.GA9043@avx2>
Date: Tue, 24 Apr 2018 00:35:34 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] proc: use #pragma once
Bring /proc into 21st century.
Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
---
fs/proc/fd.h | 6 +-----
fs/proc/internal.h | 1 +
include/linux/proc_fs.h | 6 +-----
3 files changed, 3 insertions(+), 10 deletions(-)
--- a/fs/proc/fd.h
+++ b/fs/proc/fd.h
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __PROCFS_FD_H__
-#define __PROCFS_FD_H__
-
+#pragma once
#include <linux/fs.h>
extern const struct file_operations proc_fd_operations;
@@ -16,5 +14,3 @@ static inline unsigned int proc_fd(struct inode *inode)
{
return PROC_I(inode)->fd;
}
-
-#endif /* __PROCFS_FD_H__ */
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
@@ -1,3 +1,4 @@
+#pragma once
/* Internal procfs definitions
*
* Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -1,10 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0 */
+#pragma once
/*
* The proc filesystem constants/structures
*/
-#ifndef _LINUX_PROC_FS_H
-#define _LINUX_PROC_FS_H
-
#include <linux/types.h>
#include <linux/fs.h>
@@ -82,5 +80,3 @@ static inline struct proc_dir_entry *proc_net_mkdir(
struct ns_common;
int open_related_ns(struct ns_common *ns,
struct ns_common *(*get_ns)(struct ns_common *ns));
-
-#endif /* _LINUX_PROC_FS_H */
Powered by blists - more mailing lists