Skip to content

Commit

Permalink
Normalize header guard symbol definition.
Browse files Browse the repository at this point in the history
We commonly define the header guard symbol without an explicit value.
Normalize the exceptions.

Done with scripts/clean-header-guards.pl.

Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
  • Loading branch information
Markus Armbruster committed May 13, 2019
1 parent a8b991b commit 177d9e0
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 12 deletions.
3 changes: 2 additions & 1 deletion hw/timer/m48t59-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#ifndef HW_M48T59_INTERNAL_H
#define HW_M48T59_INTERNAL_H 1
#define HW_M48T59_INTERNAL_H

#define M48T59_DEBUG 0

Expand Down
2 changes: 1 addition & 1 deletion include/disas/capstone.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef QEMU_CAPSTONE_H
#define QEMU_CAPSTONE_H 1
#define QEMU_CAPSTONE_H

#ifdef CONFIG_CAPSTONE

Expand Down
2 changes: 1 addition & 1 deletion include/hw/scsi/emulation.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HW_SCSI_EMULATION_H
#define HW_SCSI_EMULATION_H 1
#define HW_SCSI_EMULATION_H

typedef struct SCSIBlockLimits {
bool wsnz;
Expand Down
2 changes: 1 addition & 1 deletion include/qemu/stats64.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

#ifndef QEMU_STATS64_H
#define QEMU_STATS64_H 1
#define QEMU_STATS64_H

#include "qemu/atomic.h"

Expand Down
2 changes: 1 addition & 1 deletion include/qemu/sys_membarrier.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

#ifndef QEMU_SYS_MEMBARRIER_H
#define QEMU_SYS_MEMBARRIER_H 1
#define QEMU_SYS_MEMBARRIER_H

#ifdef CONFIG_MEMBARRIER
/* Only block reordering at the compiler level in the performance-critical
Expand Down
2 changes: 1 addition & 1 deletion include/qemu/systemd.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

#ifndef QEMU_SYSTEMD_H
#define QEMU_SYSTEMD_H 1
#define QEMU_SYSTEMD_H

#define FIRST_SOCKET_ACTIVATION_FD 3 /* defined by systemd ABI */

Expand Down
2 changes: 1 addition & 1 deletion include/scsi/utils.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef SCSI_UTILS_H
#define SCSI_UTILS_H 1
#define SCSI_UTILS_H

#ifdef CONFIG_LINUX
#include <scsi/sg.h>
Expand Down
3 changes: 2 additions & 1 deletion include/ui/kbd-state.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* (at your option) any later version. See the COPYING file in the
* top-level directory.
*/

#ifndef QEMU_UI_KBD_STATE_H
#define QEMU_UI_KBD_STATE_H 1
#define QEMU_UI_KBD_STATE_H

#include "qapi/qapi-types-ui.h"

Expand Down
3 changes: 2 additions & 1 deletion scsi/pr-helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/

#ifndef QEMU_PR_HELPER_H
#define QEMU_PR_HELPER_H 1
#define QEMU_PR_HELPER_H

#define PR_HELPER_CDB_SIZE 16
#define PR_HELPER_SENSE_SIZE 96
Expand Down
2 changes: 1 addition & 1 deletion target/i386/hvf/x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

#ifndef HVF_X86_H
#define HVF_X86_H 1
#define HVF_X86_H

typedef struct x86_register {
union {
Expand Down
2 changes: 1 addition & 1 deletion target/i386/hvf/x86_decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

#ifndef HVF_X86_DECODE_H
#define HVF_X86_DECODE_H 1
#define HVF_X86_DECODE_H

#include "cpu.h"
#include "x86.h"
Expand Down
2 changes: 1 addition & 1 deletion target/i386/hvf/x86_descr.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

#ifndef HVF_X86_DESCR_H
#define HVF_X86_DESCR_H 1
#define HVF_X86_DESCR_H

#include "x86.h"

Expand Down

0 comments on commit 177d9e0

Please sign in to comment.