linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: ext-mika.1.westerberg@nokia.com (Mika Westerberg)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 0/6] crash utility - add ARM support
Date: Fri, 27 Aug 2010 08:59:11 +0300	[thread overview]
Message-ID: <20100827055911.GA4306@esdhcp04058.research.nokia.com> (raw)
In-Reply-To: <1390998169.686181282855771133.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>

On Thu, Aug 26, 2010 at 10:49:31PM +0200, ext Dave Anderson wrote:
> 
> I fixed these warnings generated by "make warn":
> 
>   arm.c: In function ?arm_dump_backtrace_entry?:
>   arm.c:1160: warning: format ?%d? expects type ?int?, but argument 6 has type ?ulong?
>   arm.c:1166: warning: format ?%d? expects type ?int?, but argument 7 has type ?ulong?
>   arm.c: In function ?arm_dump_irq?:
>   arm.c:1424: warning: suggest parentheses around comparison in operand of ?&?
>   arm.c:1490: warning: too many arguments for format
>   arm.c:1357: warning: unused variable ?tmp2?
>   arm.c: In function ?arm_parse_cmdline_args?:
>   arm.c:409: warning: ?value? may be used uninitialized in this function

Argh!

Looks like I forgot to compile the latest patch set with warnings enabled :(
Thanks for fixing them and sorry for any inconvenience.

> I modified arm_init() to capture any attempt to run an x86 binary built
> for ARM on a live x86 or x86_64 system to display a fatal error message
> indicating: "crash: compiled for the ARM architecture".  As it was, it
> would fail with a nebulous "cannot resolve _stext" error.

Yeah, it is better to have some useful error message instead.

> The only other suggestion I can make is to put something in either the
> top-level Makefile or in configure.c to catch/prevent a subsequent "make" command
> being entered after having first done the initial build with "make target=ARM".
> I found myself doing that constantly.  Or vice-versa, for that matter.
> And if you really want to make the "other type" of binary, then there
> should be a message that kills the build attempt, and indicates that you'd
> have to do a "make clean" as well as removing the gdb subdirectory tree
> entirely.  But that all can wait until after this first patch-set is released.

OK.

> So -- with the minor changes above -- consider it queued for the next release.

Thanks!

Regards,
MW

  reply	other threads:[~2010-08-27  5:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2024587576.686081282855712906.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2010-08-26 20:49 ` [PATCH v2 0/6] crash utility - add ARM support Dave Anderson
2010-08-27  5:59   ` Mika Westerberg [this message]
2010-08-26 12:02 Mika Westerberg

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=20100827055911.GA4306@esdhcp04058.research.nokia.com \
    --to=ext-mika.1.westerberg@nokia.com \
    --cc=linux-arm-kernel@lists.infradead.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).