Skip to content

Commit

Permalink
Remove leading underscores from QEMU defines
Browse files Browse the repository at this point in the history
Leading underscores followed by a capital letter or underscore are
reserved by the C standard.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/369

Signed-off-by: Ahmed Abouzied <email@aabouzied.com>
Message-Id: <20210605174938.13782-1-email@aabouzied.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
  • Loading branch information
ahmedaabouzied authored and huth committed Jun 21, 2021
1 parent e2abbea commit e52ee00
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions include/fpu/softfloat-helpers.h
Expand Up @@ -48,8 +48,8 @@ this code that are retained.
===============================================================================
*/

#ifndef _SOFTFLOAT_HELPERS_H_
#define _SOFTFLOAT_HELPERS_H_
#ifndef SOFTFLOAT_HELPERS_H
#define SOFTFLOAT_HELPERS_H

#include "fpu/softfloat-types.h"

Expand Down
4 changes: 2 additions & 2 deletions include/hw/usb/dwc2-regs.h
Expand Up @@ -39,8 +39,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __DWC2_HW_H__
#define __DWC2_HW_H__
#ifndef DWC2_HW_H
#define DWC2_HW_H

#define HSOTG_REG(x) (x)

Expand Down
4 changes: 2 additions & 2 deletions include/hw/usb/xlnx-usb-subsystem.h
Expand Up @@ -22,8 +22,8 @@
* THE SOFTWARE.
*/

#ifndef _XLNX_VERSAL_USB_SUBSYSTEM_H_
#define _XLNX_VERSAL_USB_SUBSYSTEM_H_
#ifndef XLNX_VERSAL_USB_SUBSYSTEM_H
#define XLNX_VERSAL_USB_SUBSYSTEM_H

#include "hw/usb/xlnx-versal-usb2-ctrl-regs.h"
#include "hw/usb/hcd-dwc3.h"
Expand Down
4 changes: 2 additions & 2 deletions include/hw/usb/xlnx-versal-usb2-ctrl-regs.h
Expand Up @@ -23,8 +23,8 @@
* THE SOFTWARE.
*/

#ifndef _XLNX_USB2_REGS_H_
#define _XLNX_USB2_REGS_H_
#ifndef XLNX_USB2_REGS_H
#define XLNX_USB2_REGS_H

#define TYPE_XILINX_VERSAL_USB2_CTRL_REGS "xlnx.versal-usb2-ctrl-regs"

Expand Down
4 changes: 2 additions & 2 deletions include/qemu/plugin-memory.h
Expand Up @@ -6,8 +6,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef _PLUGIN_MEMORY_H_
#define _PLUGIN_MEMORY_H_
#ifndef PLUGIN_MEMORY_H
#define PLUGIN_MEMORY_H

struct qemu_plugin_hwaddr {
bool is_io;
Expand Down
4 changes: 2 additions & 2 deletions include/qemu/selfmap.h
Expand Up @@ -6,8 +6,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef _SELFMAP_H_
#define _SELFMAP_H_
#ifndef SELFMAP_H
#define SELFMAP_H

typedef struct {
unsigned long start;
Expand Down
4 changes: 2 additions & 2 deletions include/user/syscall-trace.h
Expand Up @@ -7,8 +7,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef _SYSCALL_TRACE_H_
#define _SYSCALL_TRACE_H_
#ifndef SYSCALL_TRACE_H
#define SYSCALL_TRACE_H

#include "trace/trace-root.h"

Expand Down
4 changes: 2 additions & 2 deletions plugins/plugin.h
Expand Up @@ -9,8 +9,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef _PLUGIN_INTERNAL_H_
#define _PLUGIN_INTERNAL_H_
#ifndef PLUGIN_INTERNAL_H
#define PLUGIN_INTERNAL_H

#include <gmodule.h>
#include "qemu/qht.h"
Expand Down
4 changes: 2 additions & 2 deletions tests/qtest/fuzz/qos_fuzz.h
Expand Up @@ -10,8 +10,8 @@
* See the COPYING file in the top-level directory.
*/

#ifndef _QOS_FUZZ_H_
#define _QOS_FUZZ_H_
#ifndef QOS_FUZZ_H
#define QOS_FUZZ_H

#include "tests/qtest/fuzz/fuzz.h"
#include "tests/qtest/libqos/qgraph.h"
Expand Down
4 changes: 2 additions & 2 deletions tests/tcg/minilib/minilib.h
Expand Up @@ -9,8 +9,8 @@
* SPDX-License-Identifier: GPL-2.0-only
*/

#ifndef _MINILIB_H_
#define _MINILIB_H_
#ifndef MINILIB_H
#define MINILIB_H

/*
* Provided by the individual arch
Expand Down

0 comments on commit e52ee00

Please sign in to comment.