From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sun, 14 Feb 2016 18:36:49 -0700 Subject: [U-Boot] [PATCH 05/16] lib: Don't instrument the div64 function In-Reply-To: <1455500220-1324-1-git-send-email-sjg@chromium.org> References: <1455500220-1324-1-git-send-email-sjg@chromium.org> Message-ID: <1455500220-1324-6-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This function can be called from the timer code on instrumented functions. Mark it as 'notrace' so that it doesn't cause infinite recursion. Signed-off-by: Simon Glass --- lib/div64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/div64.c b/lib/div64.c index 795ef0e..319fca5 100644 --- a/lib/div64.c +++ b/lib/div64.c @@ -18,8 +18,9 @@ #include #include +#include -uint32_t __div64_32(uint64_t *n, uint32_t base) +uint32_t notrace __div64_32(uint64_t *n, uint32_t base) { uint64_t rem = *n; uint64_t b = base; -- 2.7.0.rc3.207.g0ac5344