qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH for-2.12 1/2] cadence_ttc: extract CadenceTTCSta


From: KONRAD Frederic
Subject: Re: [Qemu-devel] [PATCH for-2.12 1/2] cadence_ttc: extract CadenceTTCState to a new header file
Date: Wed, 22 Nov 2017 10:34:05 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1



On 11/21/2017 07:41 PM, Peter Maydell wrote:
On 8 November 2017 at 11:32, KONRAD Frederic
<address@hidden> wrote:
We want to add this model to the xlnx-zynqmp board so let's make
CadenceTTCState available in an header file.

Signed-off-by: KONRAD Frederic <address@hidden>
---
  hw/timer/cadence_ttc.c         | 35 +-----------------------
  include/hw/timer/cadence_ttc.h | 61 ++++++++++++++++++++++++++++++++++++++++++
  2 files changed, 62 insertions(+), 34 deletions(-)
  create mode 100644 include/hw/timer/cadence_ttc.h

diff --git a/hw/timer/cadence_ttc.c b/hw/timer/cadence_ttc.c
index 03f5b9c..bb4a5ef 100644
--- a/hw/timer/cadence_ttc.c
+++ b/hw/timer/cadence_ttc.c
@@ -16,9 +16,7 @@
   * with this program; if not, see <http://www.gnu.org/licenses/>.
   */

-#include "qemu/osdep.h"
-#include "hw/sysbus.h"
-#include "qemu/timer.h"
+#include "hw/timer/cadence_ttc.h"

Something's gone wrong here. osdep.h should always be the first
header in any .c file, and it should never be included by any
other .h file.

thanks
-- PMM


Hi Peter,

Thanks for your input. I'll fix that.

Fred




reply via email to

[Prev in Thread] Current Thread [Next in Thread]