···99 * This work is licensed under the terms of the GNU GPL, version 2. See
1010 * the COPYING file in the top-level directory.
1111 */
1212-#ifndef _QEMU_9P_PROXY_H
1313-#define _QEMU_9P_PROXY_H
1212+1313+#ifndef QEMU_9P_PROXY_H
1414+#define QEMU_9P_PROXY_H
14151516#define PROXY_MAX_IO_SZ (64 * 1024)
1617#define V9FS_FD_VALID INT_MAX
+3-2
hw/9pfs/9p-xattr.h
···1010 * the COPYING file in the top-level directory.
1111 *
1212 */
1313-#ifndef _QEMU_9P_XATTR_H
1414-#define _QEMU_9P_XATTR_H
1313+1414+#ifndef QEMU_9P_XATTR_H
1515+#define QEMU_9P_XATTR_H
15161617#include "qemu/xattr.h"
1718
···1414 *
1515 */
16161717-#ifndef __linux_video_vga_h__
1818-#define __linux_video_vga_h__
1717+#ifndef LINUX_VIDEO_VGA_H
1818+#define LINUX_VIDEO_VGA_H
19192020/* Some of the code below is taken from SVGAlib. The original,
2121 unmodified copyright notice for that code is below. */
···156156/* VGA graphics controller bit masks */
157157#define VGA_GR06_GRAPHICS_MODE 0x01
158158159159-#endif /* __linux_video_vga_h__ */
159159+#endif /* LINUX_VIDEO_VGA_H */
···2121 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222 * THE SOFTWARE.
2323 */
2424-#ifndef _ETSEC_H_
2525-#define _ETSEC_H_
2424+2525+#ifndef ETSEC_H
2626+#define ETSEC_H
26272728#include "hw/qdev.h"
2829#include "hw/sysbus.h"
···173174174175void etsec_miim_link_status(eTSEC *etsec, NetClientState *nc);
175176176176-#endif /* ! _ETSEC_H_ */
177177+#endif /* ETSEC_H */
+3-3
hw/net/fsl_etsec/registers.h
···2121 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222 * THE SOFTWARE.
2323 */
2424-#ifndef _ETSEC_REGISTERS_H_
2525-#define _ETSEC_REGISTERS_H_
26242525+#ifndef ETSEC_REGISTERS_H
2626+#define ETSEC_REGISTERS_H
27272828enum eTSEC_Register_Access_Type {
2929 ACC_RW = 1, /* Read/Write */
···316316#define TMR_ETTS2_H (0xEA8 / 4)
317317#define TMR_ETTS2_L (0xEAC / 4)
318318319319-#endif /* ! _ETSEC_REGISTERS_H_ */
319319+#endif /* ETSEC_REGISTERS_H */
+3-3
hw/net/rocker/rocker.h
···1616 * GNU General Public License for more details.
1717 */
18181919-#ifndef _ROCKER_H_
2020-#define _ROCKER_H_
1919+#ifndef ROCKER_H
2020+#define ROCKER_H
21212222#include "qemu/sockets.h"
2323···8181int rocker_port_eg(Rocker *r, uint32_t pport,
8282 const struct iovec *iov, int iovcnt);
83838484-#endif /* _ROCKER_H_ */
8484+#endif /* ROCKER_H */
+2-3
hw/net/rocker/rocker_desc.h
···1414 * GNU General Public License for more details.
1515 */
16161717-1818-#ifndef _ROCKER_DESC_H_
1919-#define _ROCKER_DESC_H_
1717+#ifndef ROCKER_DESC_H
1818+#define ROCKER_DESC_H
20192120#include "rocker_hw.h"
2221
+3-3
hw/net/rocker/rocker_fp.h
···1414 * GNU General Public License for more details.
1515 */
16161717-#ifndef _ROCKER_FP_H_
1818-#define _ROCKER_FP_H_
1717+#ifndef ROCKER_FP_H
1818+#define ROCKER_FP_H
19192020#include "net/net.h"
2121#include "qemu/iov.h"
···5151void fp_port_free(FpPort *port);
5252void fp_port_reset(FpPort *port);
53535454-#endif /* _ROCKER_FP_H_ */
5454+#endif /* ROCKER_FP_H */
···1414 * GNU General Public License for more details.
1515 */
16161717-#ifndef _ROCKER_OF_DPA_H_
1818-#define _ROCKER_OF_DPA_H_
1717+#ifndef ROCKER_OF_DPA_H
1818+#define ROCKER_OF_DPA_H
19192020World *of_dpa_world_alloc(Rocker *r);
21212222-#endif /* _ROCKER_OF_DPA_H_ */
2222+#endif /* ROCKER_OF_DPA_H */
+2-2
hw/net/rocker/rocker_tlv.h
···1414 * GNU General Public License for more details.
1515 */
16161717-#ifndef _ROCKER_TLV_H_
1818-#define _ROCKER_TLV_H_
1717+#ifndef ROCKER_TLV_H
1818+#define ROCKER_TLV_H
19192020#define ROCKER_TLV_ALIGNTO 8U
2121#define ROCKER_TLV_ALIGN(len) \
+3-3
hw/net/rocker/rocker_world.h
···1414 * GNU General Public License for more details.
1515 */
16161717-#ifndef _ROCKER_WORLD_H_
1818-#define _ROCKER_WORLD_H_
1717+#ifndef ROCKER_WORLD_H
1818+#define ROCKER_WORLD_H
19192020#include "rocker_hw.h"
2121···58585959World *rocker_get_world(Rocker *r, enum rocker_world_type type);
60606161-#endif /* _ROCKER_WORLD_H_ */
6161+#endif /* ROCKER_WORLD_H */
+2-2
hw/net/vmxnet3.h
···1515 *
1616 */
17171818-#ifndef _QEMU_VMXNET3_H
1919-#define _QEMU_VMXNET3_H
1818+#ifndef QEMU_VMXNET3_H
1919+#define QEMU_VMXNET3_H
20202121#define VMXNET3_DEVICE_MAX_TX_QUEUES 8
2222#define VMXNET3_DEVICE_MAX_RX_QUEUES 8 /* Keep this value as a power of 2 */
···2222 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2323 * THE SOFTWARE.
2424 */
2525-#if !defined(__PPC_MAC_H__)
2626-#define __PPC_MAC_H__
2525+2626+#ifndef PPC_MAC_H
2727+#define PPC_MAC_H
27282829#include "exec/memory.h"
2930#include "hw/sysbus.h"
···184185} MacIONVRAMState;
185186186187void pmac_format_nvram_partition (MacIONVRAMState *nvr, int len);
187187-#endif /* !defined(__PPC_MAC_H__) */
188188+#endif /* PPC_MAC_H */
···1717 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
1818 */
19192020-#ifndef _EXEC_ALL_H_
2121-#define _EXEC_ALL_H_
2020+#ifndef EXEC_ALL_H
2121+#define EXEC_ALL_H
22222323#include "qemu-common.h"
2424#include "exec/tb-context.h"
+2-2
include/exec/tb-context.h
···1717 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
1818 */
19192020-#ifndef QEMU_TB_CONTEXT_H_
2121-#define QEMU_TB_CONTEXT_H_
2020+#ifndef QEMU_TB_CONTEXT_H
2121+#define QEMU_TB_CONTEXT_H
22222323#include "qemu/thread.h"
2424#include "qemu/qht.h"
···1717 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
1818 */
19192020-#ifndef EXEC_TB_HASH
2121-#define EXEC_TB_HASH
2020+#ifndef EXEC_TB_HASH_H
2121+#define EXEC_TB_HASH_H
22222323#include "exec/tb-hash-xx.h"
2424
···1717 * with this program; if not, see <http://www.gnu.org/licenses/>.
1818 */
19192020-#ifndef __IMX_GPIO_H_
2121-#define __IMX_GPIO_H_
2020+#ifndef IMX_GPIO_H
2121+#define IMX_GPIO_H
22222323#include "hw/sysbus.h"
2424···6060 qemu_irq output[IMX_GPIO_PIN_COUNT];
6161} IMXGPIOState;
62626363-#endif /* __IMX_GPIO_H_ */
6363+#endif /* IMX_GPIO_H */
+3-3
include/hw/i2c/i2c-ddc.h
···1616 * with this program; if not, see <http://www.gnu.org/licenses/>.
1717 */
18181919-#ifndef I2C_DDC
2020-#define I2C_DDC
1919+#ifndef I2C_DDC_H
2020+#define I2C_DDC_H
21212222/* A simple I2C slave which just returns the contents of its EDID blob. */
2323···3535#define TYPE_I2CDDC "i2c-ddc"
3636#define I2CDDC(obj) OBJECT_CHECK(I2CDDCState, (obj), TYPE_I2CDDC)
37373838-#endif /* !I2C_DDC */
3838+#endif /* I2C_DDC_H */
···99 * This work is licensed under the terms of the GNU GPL, version 2 or later.
1010 * See the COPYING file in the top-level directory.
1111 */
1212-#if !defined(__HW_SPAPR_DRC_H__)
1313-#define __HW_SPAPR_DRC_H__
1212+1313+#ifndef HW_SPAPR_DRC_H
1414+#define HW_SPAPR_DRC_H
14151516#include <libfdt.h>
1617#include "qom/object.h"
···202203int spapr_drc_populate_dt(void *fdt, int fdt_offset, Object *owner,
203204 uint32_t drc_type_mask);
204205205205-#endif /* __HW_SPAPR_DRC_H__ */
206206+#endif /* HW_SPAPR_DRC_H */
···2626 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828 */
2929-#ifndef __hw_sd_h
3030-#define __hw_sd_h 1
2929+3030+#ifndef HW_SD_H
3131+#define HW_SD_H
31323233#include "hw/qdev.h"
3334···144145void sdbus_set_inserted(SDBus *sd, bool inserted);
145146void sdbus_set_readonly(SDBus *sd, bool inserted);
146147147147-#endif /* __hw_sd_h */
148148+#endif /* HW_SD_H */
+3-3
include/hw/sh4/sh_intc.h
···11-#ifndef __SH_INTC_H__
22-#define __SH_INTC_H__
11+#ifndef SH_INTC_H
22+#define SH_INTC_H
3344#include "qemu-common.h"
55#include "hw/irq.h"
···80808181void sh_intc_set_irl(void *opaque, int n, int level);
82828383-#endif /* __SH_INTC_H__ */
8383+#endif /* SH_INTC_H */
···1818 along with this program; if not, see <http://www.gnu.org/licenses/>.
1919*/
20202121-#ifndef __FPA11_H__
2222-#define __FPA11_H__
2121+#ifndef FPA11_H
2222+#define FPA11_H
23232424#include "cpu.h"
2525
+2-2
linux-user/arm/nwfpe/fpopcode.h
···1818 along with this program; if not, see <http://www.gnu.org/licenses/>.
1919*/
20202121-#ifndef __FPOPCODE_H__
2222-#define __FPOPCODE_H__
2121+#ifndef FPOPCODE_H
2222+#define FPOPCODE_H
23232424/*
2525ARM Floating Point Instruction Classes
+2-2
linux-user/arm/nwfpe/fpsr.h
···1818 along with this program; if not, see <http://www.gnu.org/licenses/>.
1919*/
20202121-#ifndef __FPSR_H__
2222-#define __FPSR_H__
2121+#ifndef FPSR_H
2222+#define FPSR_H
23232424/*
2525The FPSR is a 32 bit register consisting of 4 parts, each exactly
+3-2
linux-user/linux_loop.h
···11/* Copied from 2.6.25 kernel headers to avoid problems on older hosts. */
22-#ifndef _LINUX_LOOP_H
33-#define _LINUX_LOOP_H
22+33+#ifndef LINUX_LOOP_H
44+#define LINUX_LOOP_H
4556/*
67 * include/linux/loop.h
+2-2
linux-user/tilegx/syscall_nr.h
···11-#ifndef TILEGX_SYSCALL_NR
22-#define TILEGX_SYSCALL_NR
11+#ifndef TILEGX_SYSCALL_NR_H
22+#define TILEGX_SYSCALL_NR_H
3344/*
55 * Copy from linux kernel asm-generic/unistd.h, which tilegx uses.
···55 * terms and conditions of the copyright.
66 */
7788-#ifndef _IF_H_
99-#define _IF_H_
88+#ifndef IF_H
99+#define IF_H
10101111#define IF_COMPRESS 0x01 /* We want compression */
1212#define IF_NOCOMPRESS 0x02 /* Do not do compression */
···3030 * mbuf.h,v 1.9 1994/11/14 13:54:20 bde Exp
3131 */
32323333-#ifndef _MBUF_H_
3434-#define _MBUF_H_
3333+#ifndef MBUF_H
3434+#define MBUF_H
35353636#define MINCSIZE 4096 /* Amount to increase mbuf if too small */
3737
+2-2
slirp/misc.h
···55 * terms and conditions of the copyright.
66 */
7788-#ifndef _MISC_H_
99-#define _MISC_H_
88+#ifndef MISC_H
99+#define MISC_H
10101111struct ex_list {
1212 int ex_pty; /* Do we want a pty? */
+2-2
slirp/sbuf.h
···55 * terms and conditions of the copyright.
66 */
7788-#ifndef _SBUF_H_
99-#define _SBUF_H_
88+#ifndef SBUF_H
99+#define SBUF_H
10101111#define sbflush(sb) sbdrop((sb),(sb)->sb_cc)
1212#define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc)
···11-#if !defined (__QEMU_MIPS_DEFS_H__)
22-#define __QEMU_MIPS_DEFS_H__
11+#ifndef QEMU_MIPS_DEFS_H
22+#define QEMU_MIPS_DEFS_H
3344/* If we want to use host float regs... */
55//#define USE_HOST_FLOAT_REGS
···8888 Note that we still maintain Count/Compare to match the host clock. */
8989//#define MIPS_STRICT_STANDARD 1
90909191-#endif /* !defined (__QEMU_MIPS_DEFS_H__) */
9191+#endif /* QEMU_MIPS_DEFS_H */
+3-3
target-ppc/helper_regs.h
···1717 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
1818 */
19192020-#if !defined(__HELPER_REGS_H__)
2121-#define __HELPER_REGS_H__
2020+#ifndef HELPER_REGS_H
2121+#define HELPER_REGS_H
22222323/* Swap temporary saved registers with GPRs */
2424static inline void hreg_swap_gpr_tgpr(CPUPPCState *env)
···168168static inline void check_tlb_flush(CPUPPCState *env) { }
169169#endif
170170171171-#endif /* !defined(__HELPER_REGS_H__) */
171171+#endif /* HELPER_REGS_H */