Clean up header guards that don't match their file name

Header guard symbols should match their file name to make guard
collisions less likely.  Offenders found with
scripts/clean-header-guards.pl -vn.

Cleaned up with scripts/clean-header-guards.pl, followed by some
renaming of new guard symbols picked by the script to better ones.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
Markus Armbruster 2016-06-29 10:12:57 +02:00
parent 85aad98a0e
commit 121d07125b
83 changed files with 223 additions and 215 deletions

View file

@ -20,8 +20,8 @@
* with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HW_TIMER_A9_GTIMER_H_H
#define HW_TIMER_A9_GTIMER_H_H
#ifndef A9GTIMER_H
#define A9GTIMER_H
#include "hw/sysbus.h"
@ -94,4 +94,4 @@ typedef struct A9GTimerUpdate {
uint64_t new;
} A9GTimerUpdate;
#endif /* #ifdef HW_TIMER_A9_GTIMER_H_H */
#endif /* A9GTIMER_H */

View file

@ -1,5 +1,5 @@
#ifndef AW_A10_PIT_H
#define AW_A10_PIT_H
#ifndef ALLWINNER_A10_PIT_H
#define ALLWINNER_A10_PIT_H
#include "hw/ptimer.h"

View file

@ -10,8 +10,9 @@
* the COPYING file in the top-level directory.
*
*/
#ifndef QEMU_HPET_EMUL_H
#define QEMU_HPET_EMUL_H
#ifndef HW_HPET_H
#define HW_HPET_H
#include "qom/object.h"

View file

@ -1,5 +1,5 @@
#ifndef NVRAM_H
#define NVRAM_H
#ifndef HW_M48T59_H
#define HW_M48T59_H
#include "qemu-common.h"
#include "qom/object.h"
@ -31,4 +31,4 @@ Nvram *m48t59_init(qemu_irq IRQ, hwaddr mem_base,
uint32_t io_base, uint16_t size, int base_year,
int type);
#endif /* !NVRAM_H */
#endif /* HW_M48T59_H */

View file

@ -21,8 +21,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef RTC_REGS_H
#define RTC_REGS_H
#ifndef MC146818RTC_REGS_H
#define MC146818RTC_REGS_H
#define RTC_ISA_IRQ 8