From: Aurelien Jarno <aurelien@aurel32.net>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 4/7] clean build: Fix arm build warnings
Date: Sat, 7 Mar 2009 22:48:37 +0100 [thread overview]
Message-ID: <20090307214837.GC13444@volta.aurel32.net> (raw)
In-Reply-To: <20090221190055.12485.56829.stgit@mchn012c.ww002.siemens.net>
On Sat, Feb 21, 2009 at 08:00:55PM +0100, Jan Kiszka wrote:
> Fix remaining arm warnings - except for the mess in the NetWinder FP
> emulator.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Thanks, applied.
> ---
>
> arm-dis.c | 45 ---------------------------------------------
> hw/arm_boot.c | 2 +-
> hw/omap_clk.c | 17 -----------------
> target-arm/helper.c | 2 +-
> 4 files changed, 2 insertions(+), 64 deletions(-)
>
> diff --git a/arm-dis.c b/arm-dis.c
> index ee44292..cc42576 100644
> --- a/arm-dis.c
> +++ b/arm-dis.c
> @@ -1554,32 +1554,6 @@ enum map_type last_type;
> int last_mapping_sym = -1;
> bfd_vma last_mapping_addr = 0;
>
> -\f
> -/* Functions. */
> -int
> -get_arm_regname_num_options (void)
> -{
> - return NUM_ARM_REGNAMES;
> -}
> -
> -int
> -set_arm_regname_option (int option)
> -{
> - int old = regname_selected;
> - regname_selected = option;
> - return old;
> -}
> -
> -int
> -get_arm_regnames (int option, const char **setname, const char **setdescription,
> - const char *const **register_names)
> -{
> - *setname = regnames[option].name;
> - *setdescription = regnames[option].description;
> - *register_names = regnames[option].reg_names;
> - return 16;
> -}
> -
> /* Decode a bitfield of the form matching regexp (N(-N)?,)*N(-N)?.
> Returns pointer to following character of the format string and
> fills in *VALUEP and *WIDTHP with the extracted value and number of
> @@ -4144,22 +4118,3 @@ print_insn_arm (bfd_vma pc, struct disassemble_info *info)
> }
> return size;
> }
> -
> -void
> -print_arm_disassembler_options (FILE *stream)
> -{
> - int i;
> -
> - fprintf (stream, _("\n\
> -The following ARM specific disassembler options are supported for use with\n\
> -the -M switch:\n"));
> -
> - for (i = NUM_ARM_REGNAMES; i--;)
> - fprintf (stream, " reg-names-%s %*c%s\n",
> - regnames[i].name,
> - (int)(14 - strlen (regnames[i].name)), ' ',
> - regnames[i].description);
> -
> - fprintf (stream, " force-thumb Assume all insns are Thumb insns\n");
> - fprintf (stream, " no-force-thumb Examine preceeding label to determine an insn's type\n\n");
> -}
> diff --git a/hw/arm_boot.c b/hw/arm_boot.c
> index cf9616a..fe17ffc 100644
> --- a/hw/arm_boot.c
> +++ b/hw/arm_boot.c
> @@ -107,7 +107,7 @@ static void set_kernel_args_old(struct arm_boot_info *info,
> int initrd_size, void *base)
> {
> uint32_t *p;
> - unsigned char *s;
> + char *s;
>
> /* see linux/include/asm-arm/setup.h */
> p = (uint32_t *)(base + KERNEL_ARGS_ADDR);
> diff --git a/hw/omap_clk.c b/hw/omap_clk.c
> index 38b098e..d7a5a57 100644
> --- a/hw/omap_clk.c
> +++ b/hw/omap_clk.c
> @@ -1098,23 +1098,6 @@ void omap_clk_adduser(struct clk *clk, qemu_irq user)
> *i = user;
> }
>
> -/* If a clock is allowed to idle, it is disabled automatically when
> - * all of clock domains using it are disabled. */
> -static int omap_clk_is_idle(struct clk *clk)
> -{
> - struct clk *chld;
> -
> - if (!clk->enabled && (!clk->usecount || !(clk->flags && ALWAYS_ENABLED)))
> - return 1;
> - if (clk->usecount)
> - return 0;
> -
> - for (chld = clk->child1; chld; chld = chld->sibling)
> - if (!omap_clk_is_idle(chld))
> - return 0;
> - return 1;
> -}
> -
> struct clk *omap_findclk(struct omap_mpu_state_s *mpu, const char *name)
> {
> struct clk *i;
> diff --git a/target-arm/helper.c b/target-arm/helper.c
> index 3250fb8..d6362ca 100644
> --- a/target-arm/helper.c
> +++ b/target-arm/helper.c
> @@ -690,7 +690,7 @@ static void do_v7m_exception_exit(CPUARMState *env)
> pointer. */
> }
>
> -void do_interrupt_v7m(CPUARMState *env)
> +static void do_interrupt_v7m(CPUARMState *env)
> {
> uint32_t xpsr = xpsr_read(env);
> uint32_t lr;
>
>
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
next prev parent reply other threads:[~2009-03-07 21:48 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-21 19:00 [Qemu-devel] [PATCH 0/7] clean build - eliminate warnings Jan Kiszka
2009-02-21 19:00 ` [Qemu-devel] [PATCH 3/7] arm: Fix gic_irq_state.level bitfield type Jan Kiszka
2009-03-07 21:48 ` Aurelien Jarno
2009-02-21 19:00 ` [Qemu-devel] [PATCH 2/7] clean build: Fix irq_info and pic_info related warnings Jan Kiszka
2009-02-21 19:00 ` [Qemu-devel] [PATCH 1/7] clean build: Add bt_host_hci prototype Jan Kiszka
2009-03-08 14:56 ` [Qemu-devel] " Jan Kiszka
2009-03-08 18:44 ` Aurelien Jarno
2009-03-08 19:56 ` [Qemu-devel] [PATCH] clean build: Add bt-host.h Jan Kiszka
2009-03-10 21:43 ` Aurelien Jarno
2009-03-10 23:03 ` andrzej zaborowski
2009-03-11 9:02 ` [Qemu-devel] " Jan Kiszka
2009-03-20 14:51 ` andrzej zaborowski
2009-02-21 19:00 ` [Qemu-devel] [PATCH 5/7] clean build: Fix remaining cris warnings Jan Kiszka
2009-02-21 23:03 ` Stuart Brady
2009-02-21 23:12 ` Stuart Brady
2009-02-21 23:13 ` Laurent Desnogues
2009-02-22 10:36 ` [Qemu-devel] [PATCH v2 " Jan Kiszka
2009-02-22 14:14 ` Edgar E. Iglesias
2009-02-21 23:14 ` [Qemu-devel] [PATCH " Paul Brook
2009-02-21 19:00 ` [Qemu-devel] [PATCH 4/7] clean build: Fix arm build warnings Jan Kiszka
2009-03-07 21:48 ` Aurelien Jarno [this message]
2009-02-21 19:00 ` [Qemu-devel] [PATCH 6/7] clean build: Fix remaining m68k warnings Jan Kiszka
2009-03-07 21:48 ` Aurelien Jarno
2009-02-21 19:00 ` [Qemu-devel] [PATCH 7/7] clean build: Fix remaining sh4 warnings Jan Kiszka
2009-02-21 19:43 ` [Qemu-devel] [PATCH 0/7] clean build - eliminate warnings Laurent Desnogues
2009-02-21 20:09 ` [Qemu-devel] " Jan Kiszka
2009-02-21 23:08 ` Laurent Desnogues
2009-02-22 10:39 ` Jan Kiszka
2009-02-22 11:09 ` Jan Kiszka
2009-02-22 0:59 ` Edgar E. Iglesias
2009-02-22 10:20 ` Jan Kiszka
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=20090307214837.GC13444@volta.aurel32.net \
--to=aurelien@aurel32.net \
--cc=jan.kiszka@siemens.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).