mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Masahiro Yamada <yamada.m@jp.panasonic.com>
To: barebox@lists.infradead.org
Subject: [PATCH] pbl: remove start_barebox() stub
Date: Thu, 12 Feb 2015 11:04:50 +0900	[thread overview]
Message-ID: <1423706690-2966-1-git-send-email-yamada.m@jp.panasonic.com> (raw)

PBL never calls start_barebox().  If it does, it is a bug.
Without this stub function, we can detect such a bug at link time.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

 pbl/misc.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/pbl/misc.c b/pbl/misc.c
index 9065bf0..7e76120 100644
--- a/pbl/misc.c
+++ b/pbl/misc.c
@@ -13,9 +13,3 @@ void __noreturn panic(const char *fmt, ...)
 {
 	while(1);
 }
-
-void __noreturn start_barebox(void)
-{
-	/* Should never be here in the pbl */
-	hang();
-}
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2015-02-12  2:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-12  2:04 Masahiro Yamada [this message]
2015-02-12  9:50 ` Sascha Hauer

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=1423706690-2966-1-git-send-email-yamada.m@jp.panasonic.com \
    --to=yamada.m@jp.panasonic.com \
    --cc=barebox@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