qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6766] clean build: Fix arm build warnings
Date: Sat, 07 Mar 2009 21:48:01 +0000	[thread overview]
Message-ID: <E1Lg4NF-00073q-8B@cvs.savannah.gnu.org> (raw)

Revision: 6766
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6766
Author:   aurel32
Date:     2009-03-07 21:48:00 +0000 (Sat, 07 Mar 2009)
Log Message:
-----------
clean build: Fix arm build warnings

Fix remaining arm warnings - except for the mess in the NetWinder FP
emulator.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

Modified Paths:
--------------
    trunk/arm-dis.c
    trunk/hw/arm_boot.c
    trunk/hw/omap_clk.c
    trunk/target-arm/helper.c

Modified: trunk/arm-dis.c
===================================================================
--- trunk/arm-dis.c	2009-03-07 21:47:53 UTC (rev 6765)
+++ trunk/arm-dis.c	2009-03-07 21:48:00 UTC (rev 6766)
@@ -1554,32 +1554,6 @@
 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 @@
     }
   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");
-}

Modified: trunk/hw/arm_boot.c
===================================================================
--- trunk/hw/arm_boot.c	2009-03-07 21:47:53 UTC (rev 6765)
+++ trunk/hw/arm_boot.c	2009-03-07 21:48:00 UTC (rev 6766)
@@ -107,7 +107,7 @@
                 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);

Modified: trunk/hw/omap_clk.c
===================================================================
--- trunk/hw/omap_clk.c	2009-03-07 21:47:53 UTC (rev 6765)
+++ trunk/hw/omap_clk.c	2009-03-07 21:48:00 UTC (rev 6766)
@@ -1098,23 +1098,6 @@
     *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;

Modified: trunk/target-arm/helper.c
===================================================================
--- trunk/target-arm/helper.c	2009-03-07 21:47:53 UTC (rev 6765)
+++ trunk/target-arm/helper.c	2009-03-07 21:48:00 UTC (rev 6766)
@@ -690,7 +690,7 @@
        pointer.  */
 }
 
-void do_interrupt_v7m(CPUARMState *env)
+static void do_interrupt_v7m(CPUARMState *env)
 {
     uint32_t xpsr = xpsr_read(env);
     uint32_t lr;

                 reply	other threads:[~2009-03-07 21:48 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=E1Lg4NF-00073q-8B@cvs.savannah.gnu.org \
    --to=aurelien@aurel32.net \
    --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).