From: Benjamin Lowry <ben@ben.gmbh>
To: linux-kernel@vger.kernel.org
Cc: Benjamin Lowry <ben@ben.gmbh>
Subject: [PATCH] tools/testing/selftests/proc: replace "pragma once" with include guard
Date: Wed, 29 Jan 2020 21:14:06 -0600 [thread overview]
Message-ID: <20200130031404.30136-1-ben@ben.gmbh> (raw)
Signed-off-by: Benjamin Lowry <ben@ben.gmbh>
---
tools/testing/selftests/proc/proc.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/proc/proc.h b/tools/testing/selftests/proc/proc.h
index b7d57ea40237..627f99c3740d 100644
--- a/tools/testing/selftests/proc/proc.h
+++ b/tools/testing/selftests/proc/proc.h
@@ -1,4 +1,5 @@
-#pragma once
+#ifndef _PROC_H
+#define _PROC_H
#undef NDEBUG
#include <assert.h>
#include <dirent.h>
@@ -49,3 +50,5 @@ static struct dirent *xreaddir(DIR *d)
assert(de || errno == 0);
return de;
}
+
+#endif
--
2.24.1
reply other threads:[~2020-01-30 3:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200130031404.30136-1-ben@ben.gmbh \
--to=ben@ben.gmbh \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®