Commit cb9c377f authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

janitor: add guards to headers

parent 7edd63f1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
#ifndef GEN_ICOUNT_H
#define GEN_ICOUNT_H 1

#include "qemu-timer.h"

/* Helpers for instruction counting code generation.  */
@@ -46,3 +49,5 @@ static inline void gen_io_end(void)
    tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUArchState, can_do_io));
    tcg_temp_free_i32(tmp);
}

#endif
+4 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
#ifndef HOST_UTILS_H
#define HOST_UTILS_H 1

#include "compiler.h"   /* QEMU_GNUC_PREREQ */

@@ -234,3 +236,5 @@ static inline int ctpop64(uint64_t val)
    return val;
#endif
}

#endif
+4 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@
 * the COPYING file in the top-level directory.
 *
 */
#ifndef HW_9PFS_VIRTIO9P_SYNTH_H
#define HW_9PFS_VIRTIO9P_SYNTH_H 1

#include <unistd.h>
#include <sys/types.h>
@@ -48,3 +50,5 @@ extern int qemu_v9fs_synth_mkdir(V9fsSynthNode *parent, int mode,
extern int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode,
                                    const char *name, v9fs_synth_read read,
                                    v9fs_synth_write write, void *arg);

#endif
+5 −0
Original line number Diff line number Diff line
#ifndef HW_AUDIODEV_H
#define HW_AUDIODEV_H 1

/* es1370.c */
int es1370_init(PCIBus *bus);

@@ -18,3 +21,5 @@ int cs4231a_init(ISABus *bus);

/* intel-hda.c + hda-audio.c */
int intel_hda_and_codec_init(PCIBus *bus);

#endif
+4 −0
Original line number Diff line number Diff line
@@ -21,6 +21,10 @@
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
#ifndef HW_BAUM_H
#define HW_BAUM_H 1

/* char device */
CharDriverState *chr_baum_init(QemuOpts *opts);

#endif
Loading