From: Cornelia Huck <cohuck@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
Thomas Huth <thuth@redhat.com>, Andrew Jones <drjones@redhat.com>
Cc: kvm@vger.kernel.org, Laurent Vivier <lvivier@redhat.com>,
Cornelia Huck <cohuck@redhat.com>
Subject: [kvm-unit-tests PATCH 2/2] add header guards for non-trivial headers
Date: Thu, 10 Jun 2021 15:59:37 +0200 [thread overview]
Message-ID: <20210610135937.94375-3-cohuck@redhat.com> (raw)
In-Reply-To: <20210610135937.94375-1-cohuck@redhat.com>
Add header guards to headers that do not simply include another one.
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
---
lib/argv.h | 5 +++++
lib/arm/io.h | 5 +++++
lib/powerpc/io.h | 5 +++++
3 files changed, 15 insertions(+)
diff --git a/lib/argv.h b/lib/argv.h
index e5fcf8482ca8..1fd746dc2177 100644
--- a/lib/argv.h
+++ b/lib/argv.h
@@ -5,7 +5,12 @@
* under the terms of the GNU Library General Public License version 2.
*/
+#ifndef _ARGV_H_
+#define _ARGV_H_
+
extern void __setup_args(void);
extern void setup_args_progname(const char *args);
extern void setup_env(char *env, int size);
extern void add_setup_arg(const char *arg);
+
+#endif
diff --git a/lib/arm/io.h b/lib/arm/io.h
index 2746d72e8280..183479c899a9 100644
--- a/lib/arm/io.h
+++ b/lib/arm/io.h
@@ -4,4 +4,9 @@
* This work is licensed under the terms of the GNU GPL, version 2.
*/
+#ifndef _ARM_IO_H_
+#define _ARM_IO_H_
+
extern void io_init(void);
+
+#endif
diff --git a/lib/powerpc/io.h b/lib/powerpc/io.h
index 1f5a7bd6d745..d4f21ba15a54 100644
--- a/lib/powerpc/io.h
+++ b/lib/powerpc/io.h
@@ -4,5 +4,10 @@
* This work is licensed under the terms of the GNU GPL, version 2.
*/
+#ifndef _POWERPC_IO_H_
+#define _POWERPC_IO_H_
+
extern void io_init(void);
extern void putchar(int c);
+
+#endif
--
2.31.1
next prev parent reply other threads:[~2021-06-10 13:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-10 13:59 [kvm-unit-tests PATCH 0/2] header guards: further cleanup Cornelia Huck
2021-06-10 13:59 ` [kvm-unit-tests PATCH 1/2] header guards: clean up some stragglers Cornelia Huck
2021-06-10 14:29 ` Laurent Vivier
2021-06-10 13:59 ` Cornelia Huck [this message]
2021-06-10 14:30 ` [kvm-unit-tests PATCH 2/2] add header guards for non-trivial headers Laurent Vivier
2021-06-10 16:58 ` [kvm-unit-tests PATCH 0/2] header guards: further cleanup Paolo Bonzini
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=20210610135937.94375-3-cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=drjones@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=thuth@redhat.com \
/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