Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit c80c449

Browse files
author
Ingo Molnar
committed
cleanup: Standardize the header guard define's name
At some point during early development, the <linux/cleanup.h> header must have been named <linux/guard.h>, as evidenced by the header guard name: #ifndef __LINUX_GUARDS_H #define __LINUX_GUARDS_H It ended up being <linux/cleanup.h>, but the old guard name for a file name that was never upstream never changed. Do that now - and while at it, also use the canonical _LINUX prefix, instead of the less common __LINUX prefix. Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/171664113181.10875.8784434350512348496.tip-bot2@tip-bot2
1 parent 1613e60 commit c80c449

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/linux/cleanup.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
#ifndef __LINUX_GUARDS_H
3-
#define __LINUX_GUARDS_H
2+
#ifndef _LINUX_CLEANUP_H
3+
#define _LINUX_CLEANUP_H
44

55
#include <linux/compiler.h>
66

@@ -247,4 +247,4 @@ __DEFINE_LOCK_GUARD_0(_name, _lock)
247247
{ return class_##_name##_lock_ptr(_T); }
248248

249249

250-
#endif /* __LINUX_GUARDS_H */
250+
#endif /* _LINUX_CLEANUP_H */

0 commit comments

Comments
 (0)