[U-Boot] [PATCH 1/1] disk: part: avoid undefined reference to `__udivmoddi4'
Simon Glass
sjg at chromium.org
Sat Jun 22 19:10:54 UTC 2019
On Sun, 2 Jun 2019 at 09:36, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> When compiling with FTRACE=1 an error
>
> ld.bfd: disk/built-in.o: in function `lba512_muldiv':
> disk/part.c:114: undefined reference to `__udivmoddi4
>
> occurred.
>
> Use '>> 11' instead of '/ 2048' to avoid the division.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> disk/part.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
Looks OK but I think you should rename div_by to shift_right, or similar.
- SImon
More information about the U-Boot
mailing list