mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: DU HUANPENG <opentkernel@163.com>
To: barebox@lists.infradead.org
Cc: Du Huanpeng <u74147@gmail.com>
Subject: [PATCH] arm: decalare div0 as weak function
Date: Sat,  7 Jan 2017 22:45:26 +0800	[thread overview]
Message-ID: <1483800326-14277-1-git-send-email-opentkernel@163.com> (raw)

From: Du Huanpeng <u74147@gmail.com>

Signed-off-by: Du Huanpeng <u74147@gmail.com>
---
 arch/arm/lib/div0.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/lib/div0.c b/arch/arm/lib/div0.c
index 852cb72..d4f3b6c 100644
--- a/arch/arm/lib/div0.c
+++ b/arch/arm/lib/div0.c
@@ -17,11 +17,11 @@
  *
  */
 #include <common.h>
+#include <linux/compiler.h>
 
 extern void __div0(void);
 
-/* Replacement (=dummy) for GNU/Linux division-by zero handler */
-void __div0 (void)
+__weak void __div0 (void)
 {
 	panic("division by zero\n");
 }
-- 
2.7.4



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

             reply	other threads:[~2017-01-07 14:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-07 14:45 DU HUANPENG [this message]
2017-01-09  8:20 ` Sascha Hauer
2017-01-09 13:08   ` Du Huanpeng

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=1483800326-14277-1-git-send-email-opentkernel@163.com \
    --to=opentkernel@163.com \
    --cc=barebox@lists.infradead.org \
    --cc=u74147@gmail.com \
    /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