[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 6/9] hw/timer: Move extern declaration from .c to .h
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 6/9] hw/timer: Move extern declaration from .c to .h file |
Date: |
Sat, 9 Aug 2014 00:38:59 +0400 |
From: Stefan Weil <address@hidden>
This fixes a warning from smatch (static code analyser).
Fix also the comment with the renamed source file name.
Signed-off-by: Stefan Weil <address@hidden>
hw/timer/tusb6010.c | 3 ---
include/hw/usb.h | 7 ++++++-
2 files changed, 6 insertions(+), 4 deletions(-)
Signed-off-by: Michael Tokarev <address@hidden>
---
hw/timer/tusb6010.c | 3 ---
include/hw/usb.h | 7 ++++++-
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/hw/timer/tusb6010.c b/hw/timer/tusb6010.c
index bd2a89e..459c748 100644
--- a/hw/timer/tusb6010.c
+++ b/hw/timer/tusb6010.c
@@ -282,9 +282,6 @@ static void tusb_gpio_intr_update(TUSBState *s)
/* TODO: How is this signalled? */
}
-extern CPUReadMemoryFunc * const musb_read[];
-extern CPUWriteMemoryFunc * const musb_write[];
-
static uint32_t tusb_async_readb(void *opaque, hwaddr addr)
{
TUSBState *s = (TUSBState *) opaque;
diff --git a/include/hw/usb.h b/include/hw/usb.h
index 8bcab48..223a5ae 100644
--- a/include/hw/usb.h
+++ b/include/hw/usb.h
@@ -475,7 +475,8 @@ void usb_host_info(Monitor *mon, const QDict *qdict);
#define VM_USB_HUB_SIZE 8
-/* usb-musb.c */
+/* hw/usb/hdc-musb.c */
+
enum musb_irq_source_e {
musb_irq_suspend = 0,
musb_irq_resume,
@@ -494,6 +495,10 @@ enum musb_irq_source_e {
};
typedef struct MUSBState MUSBState;
+
+extern CPUReadMemoryFunc * const musb_read[];
+extern CPUWriteMemoryFunc * const musb_write[];
+
MUSBState *musb_init(DeviceState *parent_device, int gpio_base);
void musb_reset(MUSBState *s);
uint32_t musb_core_intr_get(MUSBState *s);
--
1.7.10.4
- [Qemu-devel] [PULL 0/9] Trivial patches for 2014-08-09, Michael Tokarev, 2014/08/08
- [Qemu-devel] [PULL 6/9] hw/timer: Move extern declaration from .c to .h file,
Michael Tokarev <=
- [Qemu-devel] [PULL 4/9] Show length mismatch error is hex, Michael Tokarev, 2014/08/08
- [Qemu-devel] [PULL 8/9] po: Add Chinese translation, Michael Tokarev, 2014/08/08
- [Qemu-devel] [PULL 1/9] hw/timer/imx_*: fix TIMER_MAX clash with system symbol, Michael Tokarev, 2014/08/08
- [Qemu-devel] [PULL 7/9] qemu-img: Check getchar() return value in read_password() for WIN32, Michael Tokarev, 2014/08/08
- [Qemu-devel] [PULL 5/9] virtio: Move extern declaration to header file, Michael Tokarev, 2014/08/08
- [Qemu-devel] [PULL 3/9] target-i386/cpu.c: Fix two error output indentation, Michael Tokarev, 2014/08/08
- [Qemu-devel] [PULL 9/9] build-sys: Move qapi-{types, visit, event}.o into util-obj-y, Michael Tokarev, 2014/08/08
- [Qemu-devel] [PULL 2/9] l2tpv3 (configure): it is linux-specific, Michael Tokarev, 2014/08/08
- Re: [Qemu-devel] [PULL 0/9] Trivial patches for 2014-08-09, Peter Maydell, 2014/08/15