From: Chih-Min Chao <cmchao@gmail.com>
To: qemu-devel@nongnu.org
Cc: cmchao <cmchao@gmail.com>
Subject: [Qemu-devel] Re: [PATCH 12/12] hw/omap : make local function static and remove declaration from header
Date: Sun, 30 May 2010 18:30:03 +0800 [thread overview]
Message-ID: <AANLkTimzDkH9fESYD_IYRmOvBIbWK8flRZdiQ2zQzyak@mail.gmail.com> (raw)
In-Reply-To: <1275068605-14475-13-git-send-email-cmchao@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 7006 bytes --]
On Sat, May 29, 2010 at 1:43 AM, cmchao <cmchao@gmail.com> wrote:
>
> Signed-off-by: cmchao <cmchao@gmail.com>
> ---
> hw/omap.h | 36 ------------------------------------
> hw/omap1.c | 10 +++++-----
> hw/omap2.c | 6 +++---
> 3 files changed, 8 insertions(+), 44 deletions(-)
>
> diff --git a/hw/omap.h b/hw/omap.h
> index 34443b4..18eb72b 100644
> --- a/hw/omap.h
> +++ b/hw/omap.h
> @@ -108,15 +108,6 @@ struct omap_intr_handler_s
> *omap2_inth_init(target_phys_addr_t base,
> void omap_inth_reset(struct omap_intr_handler_s *s);
> qemu_irq omap_inth_get_pin(struct omap_intr_handler_s *s, int n);
>
> -struct omap_prcm_s;
> -struct omap_prcm_s *omap_prcm_init(struct omap_target_agent_s *ta,
> - qemu_irq mpu_int, qemu_irq dsp_int, qemu_irq iva_int,
> - struct omap_mpu_state_s *mpu);
> -
> -struct omap_sysctl_s;
> -struct omap_sysctl_s *omap_sysctl_init(struct omap_target_agent_s *ta,
> - omap_clk iclk, struct omap_mpu_state_s *mpu);
> -
> /* OMAP2 SDRAM controller */
> struct omap_sdrc_s;
> struct omap_sdrc_s *omap_sdrc_init(target_phys_addr_t base);
> @@ -658,34 +649,18 @@ struct omap_dma_lcd_channel_s {
> # define OMAP24XX_DMA_EXT_DMAREQ5 64
>
> /* omap[123].c */
> -struct omap_mpu_timer_s;
> -struct omap_mpu_timer_s *omap_mpu_timer_init(target_phys_addr_t base,
> - qemu_irq irq, omap_clk clk);
> -
> /* OMAP2 gp timer */
> struct omap_gp_timer_s;
> struct omap_gp_timer_s *omap_gp_timer_init(struct omap_target_agent_s *ta,
> qemu_irq irq, omap_clk fclk, omap_clk iclk);
> void omap_gp_timer_reset(struct omap_gp_timer_s *s);
>
> -struct omap_watchdog_timer_s;
> -struct omap_watchdog_timer_s *omap_wd_timer_init(target_phys_addr_t base,
> - qemu_irq irq, omap_clk clk);
> -
> -struct omap_32khz_timer_s;
> -struct omap_32khz_timer_s *omap_os_timer_init(target_phys_addr_t base,
> - qemu_irq irq, omap_clk clk);
> -
> /* OMAP2 sysctimer */
> struct omap_synctimer_s;
> struct omap_synctimer_s *omap_synctimer_init(struct omap_target_agent_s
> *ta,
> struct omap_mpu_state_s *mpu, omap_clk fclk, omap_clk
> iclk);
> void omap_synctimer_reset(struct omap_synctimer_s *s);
>
> -struct omap_tipb_bridge_s;
> -struct omap_tipb_bridge_s *omap_tipb_bridge_init(target_phys_addr_t base,
> - qemu_irq abort_irq, omap_clk clk);
> -
> struct omap_uart_s;
> struct omap_uart_s *omap_uart_init(target_phys_addr_t base,
> qemu_irq irq, omap_clk fclk, omap_clk iclk,
> @@ -740,10 +715,6 @@ void omap_mcspi_attach(struct omap_mcspi_s *s,
> int chipselect);
> void omap_mcspi_reset(struct omap_mcspi_s *s);
>
> -struct omap_rtc_s;
> -struct omap_rtc_s *omap_rtc_init(target_phys_addr_t base,
> - qemu_irq *irq, omap_clk clk);
> -
> struct I2SCodec {
> void *opaque;
>
> @@ -773,16 +744,9 @@ struct omap_mcbsp_s
> *omap_mcbsp_init(target_phys_addr_t base,
> qemu_irq *irq, qemu_irq *dma, omap_clk clk);
> void omap_mcbsp_i2s_attach(struct omap_mcbsp_s *s, I2SCodec *slave);
>
> -struct omap_lpg_s;
> -struct omap_lpg_s *omap_lpg_init(target_phys_addr_t base, omap_clk clk);
> -
> void omap_tap_init(struct omap_target_agent_s *ta,
> struct omap_mpu_state_s *mpu);
>
> -struct omap_eac_s;
> -struct omap_eac_s *omap_eac_init(struct omap_target_agent_s *ta,
> - qemu_irq irq, qemu_irq *drq, omap_clk fclk, omap_clk
> iclk);
> -
> /* omap_lcdc.c */
> struct omap_lcd_panel_s;
> void omap_lcdc_reset(struct omap_lcd_panel_s *s);
> diff --git a/hw/omap1.c b/hw/omap1.c
> index 301eec5..e38fd83 100644
> --- a/hw/omap1.c
> +++ b/hw/omap1.c
> @@ -247,7 +247,7 @@ static void omap_mpu_timer_reset(struct
> omap_mpu_timer_s *s)
> s->it_ena = 1;
> }
>
> -struct omap_mpu_timer_s *omap_mpu_timer_init(target_phys_addr_t base,
> +static struct omap_mpu_timer_s *omap_mpu_timer_init(target_phys_addr_t
> base,
> qemu_irq irq, omap_clk clk)
> {
> int iomemtype;
> @@ -371,7 +371,7 @@ static void omap_wd_timer_reset(struct
> omap_watchdog_timer_s *s)
> omap_timer_update(&s->timer);
> }
>
> -struct omap_watchdog_timer_s *omap_wd_timer_init(target_phys_addr_t base,
> +static struct omap_watchdog_timer_s *omap_wd_timer_init(target_phys_addr_t
> base,
> qemu_irq irq, omap_clk clk)
> {
> int iomemtype;
> @@ -473,7 +473,7 @@ static void omap_os_timer_reset(struct
> omap_32khz_timer_s *s)
> s->timer.ar = 1;
> }
>
> -struct omap_32khz_timer_s *omap_os_timer_init(target_phys_addr_t base,
> +static struct omap_32khz_timer_s *omap_os_timer_init(target_phys_addr_t
> base,
> qemu_irq irq, omap_clk clk)
> {
> int iomemtype;
> @@ -1180,7 +1180,7 @@ static void omap_tipb_bridge_reset(struct
> omap_tipb_bridge_s *s)
> s->enh_control = 0x000f;
> }
>
> -struct omap_tipb_bridge_s *omap_tipb_bridge_init(target_phys_addr_t base,
> +static struct omap_tipb_bridge_s *omap_tipb_bridge_init(target_phys_addr_t
> base,
> qemu_irq abort_irq, omap_clk clk)
> {
> int iomemtype;
> @@ -3506,7 +3506,7 @@ static void omap_lpg_clk_update(void *opaque, int
> line, int on)
> omap_lpg_update(s);
> }
>
> -struct omap_lpg_s *omap_lpg_init(target_phys_addr_t base, omap_clk clk)
> +static struct omap_lpg_s *omap_lpg_init(target_phys_addr_t base, omap_clk
> clk)
> {
> int iomemtype;
> struct omap_lpg_s *s = (struct omap_lpg_s *)
> diff --git a/hw/omap2.c b/hw/omap2.c
> index 9bac954..26e6da4 100644
> --- a/hw/omap2.c
> +++ b/hw/omap2.c
> @@ -583,7 +583,7 @@ static CPUWriteMemoryFunc * const omap_eac_writefn[] =
> {
> omap_badwidth_write16,
> };
>
> -struct omap_eac_s *omap_eac_init(struct omap_target_agent_s *ta,
> +static struct omap_eac_s *omap_eac_init(struct omap_target_agent_s *ta,
> qemu_irq irq, qemu_irq *drq, omap_clk fclk, omap_clk iclk)
> {
> int iomemtype;
> @@ -1783,7 +1783,7 @@ static void omap_prcm_coldreset(struct omap_prcm_s
> *s)
> omap_prcm_reset(s);
> }
>
> -struct omap_prcm_s *omap_prcm_init(struct omap_target_agent_s *ta,
> +static struct omap_prcm_s *omap_prcm_init(struct omap_target_agent_s *ta,
> qemu_irq mpu_int, qemu_irq dsp_int, qemu_irq iva_int,
> struct omap_mpu_state_s *mpu)
> {
> @@ -2157,7 +2157,7 @@ static void omap_sysctl_reset(struct omap_sysctl_s
> *s)
> s->padconf[0x44] = 0x00000800;
> }
>
> -struct omap_sysctl_s *omap_sysctl_init(struct omap_target_agent_s *ta,
> +static struct omap_sysctl_s *omap_sysctl_init(struct omap_target_agent_s
> *ta,
> omap_clk iclk, struct omap_mpu_state_s *mpu)
> {
> int iomemtype;
> --
> 1.7.0.4
>
>
At first, sorry for sending duplicated patches
I found i missed one line modification in this patch that produce
compilation error
Should i
1 re-send complete series patched
2 re-send this patch only
3 just provide a fix for it. (if they are acceptable)
[-- Attachment #2: Type: text/html, Size: 8279 bytes --]
next prev parent reply other threads:[~2010-05-30 10:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-28 17:43 [Qemu-devel] [PATCH 00/12] refactor OMAP implementation cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 01/12] hw/omap1.c : separate gpio module cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 02/12] hw/omap2.c " cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 03/12] hw/omap2.c : separate gptimer module cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 04/12] hw/omap2.c : separate synctimer module cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 05/12] hw/omap2.c : separate gpmc(general purpose memory controller) cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 06/12] hw/omap2.c : separate sdrc (sdram controller) cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 07/12] hw/omap1.c : separate interrupt controller module cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 08/12] hw/omap2.c : separate spi module cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 09/12] hw/omap2.c : separate tap module(Test-Chip-level) cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 10/12] hw/omwp2.c : separate l4 interconnect module cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 11/12] hw/omap1.c : separate uart module cmchao
2010-05-28 17:43 ` [Qemu-devel] [PATCH 12/12] hw/omap : make local function static and remove declaration from header cmchao
2010-05-30 10:30 ` Chih-Min Chao [this message]
2010-05-30 11:00 ` [Qemu-devel] " Andreas Färber
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=AANLkTimzDkH9fESYD_IYRmOvBIbWK8flRZdiQ2zQzyak@mail.gmail.com \
--to=cmchao@gmail.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).