]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
xen/balloon: add header guard
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 1 Sep 2020 08:33:24 +0000 (10:33 +0200)
committerJuergen Gross <jgross@suse.com>
Fri, 4 Sep 2020 07:59:53 +0000 (09:59 +0200)
In order to protect against the header being included multiple times
on the same compilation unit.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20200901083326.21264-2-roger.pau@citrix.com
Signed-off-by: Juergen Gross <jgross@suse.com>
include/xen/balloon.h

index 6fb95aa194051fcea50416860971f9ed0d260ab1..6dbdb0b3fd03da472d017c413f5481fb977f88bc 100644 (file)
@@ -2,6 +2,8 @@
 /******************************************************************************
  * Xen balloon functionality
  */
+#ifndef _XEN_BALLOON_H
+#define _XEN_BALLOON_H
 
 #define RETRY_UNLIMITED        0
 
@@ -34,3 +36,5 @@ static inline void xen_balloon_init(void)
 {
 }
 #endif
+
+#endif /* _XEN_BALLOON_H */