Remove leading underscores from QEMU defines
authorAhmed Abouzied <email@aabouzied.com>
Sat, 5 Jun 2021 17:49:38 +0000 (19:49 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 21 Jun 2021 03:49:01 +0000 (05:49 +0200)
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>
include/fpu/softfloat-helpers.h
include/hw/usb/dwc2-regs.h
include/hw/usb/xlnx-usb-subsystem.h
include/hw/usb/xlnx-versal-usb2-ctrl-regs.h
include/qemu/plugin-memory.h
include/qemu/selfmap.h
include/user/syscall-trace.h
plugins/plugin.h
tests/qtest/fuzz/qos_fuzz.h
tests/tcg/minilib/minilib.h

index 34f4cf92ae775a75b21dd77d02ad4e7ee7826242..a98d759cd3a5117668f2dfb023b8d94816fb5235 100644 (file)
@@ -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"
 
index 40af23a0bad8336c13656162de5f82d5b1e460f9..a7eb53148543379843c7031c38b7def40b543d72 100644 (file)
@@ -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)
 
index 739bef7f4513f220d64194a1c87ad7daf326328a..999e423951acfcc023c75b13cdff7e9f1a07ca77 100644 (file)
@@ -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"
index 975a717627aed16d044f117cff0de14be09904e2..b76dce04195761c98691b4b5a6fed1466fb6bbbc 100644 (file)
@@ -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"
 
index fbbe99474bd2b3717d04a56918390df1223ae9dc..b36def27d71b6c93d5239c718e0a4165c9995b1e 100644 (file)
@@ -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;
index 8382c4c779dc91851d029b40b4e180cc399969e1..80cf920fbadbe2ed5f19ad5cc08f50f60df38da9 100644 (file)
@@ -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;
index 42e3b48b032f4dfc0d9c3ae66885289ef0824e62..614cfacfa5806a303802c93f74c021688693f32d 100644 (file)
@@ -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"
 
index 55017e3581914e9cdb82f90b7e02802cc581b3aa..b13677d0dc24a3bde515ae07ffd93d1f83344251 100644 (file)
@@ -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"
index 477f11b02b27ab555f0ed8896c4e3c422810e401..63d8459b71e0a2d5c9a1ace018e338753b4aec64 100644 (file)
@@ -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"
index e23361380ae374cc88405fa9580ff8c0743f5e15..17d0f2f314070c65b2a92ac83f482b44f7aed195 100644 (file)
@@ -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