{"id":2224878,"url":"http://patchwork.ozlabs.org/api/patches/2224878/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260419100123.2427364-1-daniel@thingy.jp/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260419100123.2427364-1-daniel@thingy.jp>","list_archive_url":null,"date":"2026-04-19T10:01:23","name":"fs/erofs: Fix build for m68k","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"740b1a8d567c9cf7cb282748bdad45dcf7109667","submitter":{"id":85408,"url":"http://patchwork.ozlabs.org/api/people/85408/?format=json","name":"Daniel Palmer","email":"daniel@thingy.jp"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260419100123.2427364-1-daniel@thingy.jp/mbox/","series":[{"id":500491,"url":"http://patchwork.ozlabs.org/api/series/500491/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=500491","date":"2026-04-19T10:01:23","name":"fs/erofs: Fix build for m68k","version":1,"mbox":"http://patchwork.ozlabs.org/series/500491/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2224878/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2224878/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=thingy.jp header.i=@thingy.jp header.a=rsa-sha256\n header.s=google header.b=b91+pqps;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=thingy.jp","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=thingy.jp header.i=@thingy.jp header.b=\"b91+pqps\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=thingy.jp","phobos.denx.de; spf=pass smtp.mailfrom=daniel@0x0f.com"],"Received":["from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fz4091GHvz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 20:01:45 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id B339D83B99;\n\tSun, 19 Apr 2026 12:01:36 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id AEC6D83E81; Sun, 19 Apr 2026 12:01:35 +0200 (CEST)","from mail-pf1-x432.google.com (mail-pf1-x432.google.com\n [IPv6:2607:f8b0:4864:20::432])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 6377D839D9\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 12:01:32 +0200 (CEST)","by mail-pf1-x432.google.com with SMTP id\n d2e1a72fcca58-82f33d28c1dso1078266b3a.3\n for <u-boot@lists.denx.de>; Sun, 19 Apr 2026 03:01:32 -0700 (PDT)","from kinako.work.home.arpa\n (p1329195-ipxg00a01sizuokaden.shizuoka.ocn.ne.jp. [114.145.5.195])\n by smtp.googlemail.com with ESMTPSA id\n d2e1a72fcca58-82f8e981829sm8627313b3a.12.2026.04.19.03.01.29\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 19 Apr 2026 03:01:30 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=thingy.jp; s=google; t=1776592890; x=1777197690; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=7ikCeYkdipiUt5MA+i6o4kjBZWru91wHL/UErGFPYmQ=;\n b=b91+pqpssGxY5I7xzp/3/hbGQzJNFipT0YjZfYJNuHGoJ2atGOfUbt8qUlTw/TQZWr\n tpbgoVKX8qtg08wvZYWjIYGHQjIdOx20rf8yKRLLYgSSAv2EW+qFk5BLKqEMEKxoLKmi\n WNl031Y/TBjeboi0ar7U1zdRAvPoKC+PylgQw=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776592890; x=1777197690;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=7ikCeYkdipiUt5MA+i6o4kjBZWru91wHL/UErGFPYmQ=;\n b=bVNb9OcP/8hPGsY6wtdvo2R/hCszk3LEAnirkYUtEYhB339xEFfZ9pC4bg9FdQq/7o\n wLNUKqyyb994mnyDsZo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DpfncyMw\n /mY8T0TQ69ac3V6JHnm4e++","X-Received":"by 2002:a05:6a00:4b4f:b0:82c:6bcc:f3fa with SMTP id\n d2e1a72fcca58-82f8c94401fmr9232486b3a.35.1776592890489;\n Sun, 19 Apr 2026 03:01:30 -0700 (PDT)","From":"Daniel Palmer <daniel@thingy.jp>","To":"jnhuang95@gmail.com","Cc":"visitorckw@gmail.com, angelo@kernel-space.org, u-boot@lists.denx.de,\n Daniel Palmer <daniel@thingy.jp>","Subject":"[PATCH] fs/erofs: Fix build for m68k","Date":"Sun, 19 Apr 2026 19:01:23 +0900","Message-ID":"<20260419100123.2427364-1-daniel@thingy.jp>","X-Mailer":"git-send-email 2.53.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"Currently the use of roundup() causes GCC to emit a reference\nto __udivdi3() on m68k and we don't have that:\n\n/usr/bin/m68k-linux-gnu-ld.bfd: fs/erofs/data.o: in function `erofs_map_blocks':\nu-boot/fs/erofs/data.c:81:(.text.erofs_map_blocks+0x126): undefined reference to `__udivdi3'\n/usr/bin/m68k-linux-gnu-ld.bfd: u-boot/fs/erofs/data.c:81:(.text.erofs_map_blocks+0x458): undefined reference to `__udivdi3'\n\nWe could add it but since unit is 4 or 8 we can actually just\nswitch the code to use round_up() instead and not output\n__udivdi3() in the first place.\n\nSigned-off-by: Daniel Palmer <daniel@thingy.jp>\n---\n fs/erofs/data.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/fs/erofs/data.c b/fs/erofs/data.c\nindex b58ec6fcc666..95873846f62d 100644\n--- a/fs/erofs/data.c\n+++ b/fs/erofs/data.c\n@@ -78,7 +78,7 @@ int erofs_map_blocks(struct erofs_inode *inode,\n \t\tunit = EROFS_BLOCK_MAP_ENTRY_SIZE;\t/* block map */\n \n \tchunknr = map->m_la >> vi->u.chunkbits;\n-\tpos = roundup(iloc(vi->nid) + vi->inode_isize +\n+\tpos = round_up(iloc(vi->nid) + vi->inode_isize +\n \t\t      vi->xattr_isize, unit) + unit * chunknr;\n \n \terr = erofs_blk_read(buf, erofs_blknr(pos), 1);\n","prefixes":[]}