git: a1f4a2d6be36 - stable/12 - sys/ck.h: Add an include guard

Kevin Bowling kbowling at FreeBSD.org
Thu Apr 15 23:03:57 UTC 2021


The branch stable/12 has been updated by kbowling (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=a1f4a2d6be36392dbf477b8d287cc5145593cfb0

commit a1f4a2d6be36392dbf477b8d287cc5145593cfb0
Author:     Kevin Bowling <kbowling at FreeBSD.org>
AuthorDate: 2021-03-21 18:50:30 +0000
Commit:     Kevin Bowling <kbowling at FreeBSD.org>
CommitDate: 2021-04-15 23:03:36 +0000

    sys/ck.h: Add an include guard
    
    Approved by:    cognet
    MFC after:      1 week
    Sponsored by:   BBOX.io
    Differential Revision:  https://reviews.freebsd.org/D29357
    
    (cherry picked from commit 2595d78f3df2ca389aae259a291f93eb06ecad43)
---
 sys/sys/ck.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys/sys/ck.h b/sys/sys/ck.h
index 3bfce70c8d2c..b04fe67b476d 100644
--- a/sys/sys/ck.h
+++ b/sys/sys/ck.h
@@ -1,6 +1,9 @@
 /*
  * $FreeBSD$
  */
+#ifndef _SYS_CK_H_
+#define _SYS_CK_H_
+
 #ifdef _KERNEL
 #include <ck_queue.h>
 #include <ck_epoch.h>
@@ -11,3 +14,5 @@
 #define CK_LIST_HEAD LIST_HEAD
 #define CK_LIST_ENTRY LIST_ENTRY
 #endif
+
+#endif /* !_SYS_CK_H_ */


More information about the dev-commits-src-all mailing list