All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: avi@redhat.com, mtosatti@redhat.com
Cc: kvm@vger.kernel.org
Subject: [PATCH] tests: Move typedefs to one place.
Date: Thu, 29 Oct 2009 11:11:10 +0200	[thread overview]
Message-ID: <20091029091110.GY29477@redhat.com> (raw)

Signed-off-by: Gleb Natapov <gleb@redhat.com>
diff --git a/kvm/user/test/lib/libcflat.h b/kvm/user/test/lib/libcflat.h
index 1f96cb8..1da4013 100644
--- a/kvm/user/test/lib/libcflat.h
+++ b/kvm/user/test/lib/libcflat.h
@@ -22,6 +22,12 @@
 
 #include <stdarg.h>
 
+typedef unsigned char u8;
+typedef unsigned short u16;
+typedef unsigned u32;
+typedef unsigned long ulong;
+typedef unsigned long long u64;
+
 extern void exit(int code);
 extern void panic(char *fmt, ...);
 
diff --git a/kvm/user/test/lib/x86/apic.c b/kvm/user/test/lib/x86/apic.c
index 1fc3888..7bb98ed 100644
--- a/kvm/user/test/lib/x86/apic.c
+++ b/kvm/user/test/lib/x86/apic.c
@@ -4,12 +4,6 @@
 static void *g_apic = (void *)0xfee00000;
 static void *g_ioapic = (void *)0xfec00000;
 
-typedef unsigned char u8;
-typedef unsigned short u16;
-typedef unsigned u32;
-typedef unsigned long ulong;
-typedef unsigned long long u64;
-
 struct apic_ops {
     u32 (*reg_read)(unsigned reg);
     void (*reg_write)(unsigned reg, u32 val);
diff --git a/kvm/user/test/x86/apic.c b/kvm/user/test/x86/apic.c
index 1edfba5..4e89c77 100644
--- a/kvm/user/test/x86/apic.c
+++ b/kvm/user/test/x86/apic.c
@@ -2,12 +2,6 @@
 #include "apic.h"
 #include "vm.h"
 
-typedef unsigned char u8;
-typedef unsigned short u16;
-typedef unsigned u32;
-typedef unsigned long ulong;
-typedef unsigned long long u64;
-
 typedef struct {
     unsigned short offset0;
     unsigned short selector;
diff --git a/kvm/user/test/x86/tsc.c b/kvm/user/test/x86/tsc.c
index 204b1fd..394a9c6 100644
--- a/kvm/user/test/x86/tsc.c
+++ b/kvm/user/test/x86/tsc.c
@@ -1,7 +1,5 @@
 #include "libcflat.h"
 
-typedef unsigned long long u64;
-
 u64 rdtsc(void)
 {
 	unsigned a, d;
--
			Gleb.

                 reply	other threads:[~2009-10-29  9:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091029091110.GY29477@redhat.com \
    --to=gleb@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.