From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sat, 22 Jun 2019 20:10:54 +0100 Subject: [U-Boot] [PATCH 1/1] disk: part: avoid undefined reference to `__udivmoddi4' In-Reply-To: <20190602083551.3207-1-xypron.glpk@gmx.de> References: <20190602083551.3207-1-xypron.glpk@gmx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 2 Jun 2019 at 09:36, Heinrich Schuchardt 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 > --- > 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