Skip to content

Commit

Permalink
xen/balloon: add header guard
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roger Pau Monne authored and Juergen Gross committed Sep 4, 2020
1 parent 9d3004b commit aecb201
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/xen/balloon.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
/******************************************************************************
* Xen balloon functionality
*/
#ifndef _XEN_BALLOON_H
#define _XEN_BALLOON_H

#define RETRY_UNLIMITED 0

Expand Down Expand Up @@ -34,3 +36,5 @@ static inline void xen_balloon_init(void)
{
}
#endif

#endif /* _XEN_BALLOON_H */

0 comments on commit aecb201

Please sign in to comment.