Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp337130pxj; Thu, 10 Jun 2021 23:58:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/CuWn/GcBzpyT/UNEWXKN/bnjScbWwC6SECuogd/Qm6EYba0AyQSbRSr9Z25KBMWjBpHE X-Received: by 2002:a50:a413:: with SMTP id u19mr2076067edb.251.1623394680234; Thu, 10 Jun 2021 23:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623394680; cv=none; d=google.com; s=arc-20160816; b=OeE82L8/GQGnSbKwI0jjBvKnd1ny8GfX3EFx7N0EOQv1EMyP1QkUynhp9QDhz/NDqJ XJ4VNkkN0U0cPQcFSlrrChFh3worlHHAM7nxBPL2AFVSn4QYS90vJnwvKpbCMgNCwt4q tZjQnYaFM079LqdGG6qPKC4u6QHa4Wng+ZvLUN1hrLDZ9Nk2b2YJqUAEM7S5fcRbIZED 69bbBzfQZWwrKDA8e7d1RLlCxqU22fn0TGiS9RoAJCgj4W3MN0mCvU+SwDjY94uu1oAv Bir3PIdgxM/RdnXpVJ1W0BE3OGEfz6Xh0xUlbVsNPUpNH+B4eAPUfl3lCgxRasup6+TF BBhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=uDY2dim4aXXjh83+9TfmRnq4rAnvdm1kS4I6xxJDBSY=; b=AcsJrR4zTNJB4gAVGdv0qFBUqGTv7XhEWrZbaTxgcbJ30P3TNv86pFUT1JL3Cz+kwJ lMVnpXM/hYGJ6uFetELgpiiGKE0LgAZacKngMSYlcD6R/4TawFWZFEwbhocexVWM0JhW hImeI1O2SSDL0LsCMhDXumo2BHbGGlM4DzawUXdAbgIS65tuAkX+GpqCHOwC9VieL6rK ucOZa6aiyRqS7AaxyEP6V4RpGKXpcWRGN6myB+hbk5gNlNx8aF+N4n71bklXQIuyZOTr VX9ppa0pFZC28rwf0y3PgL7YlQiVwoZvlifxQsCJHkHapj5YLO91diDXlBOUTCJLUDEg FF6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b23si4405264edv.199.2021.06.10.23.57.37; Thu, 10 Jun 2021 23:58:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbhFKG5t (ORCPT + 99 others); Fri, 11 Jun 2021 02:57:49 -0400 Received: from mail-ua1-f48.google.com ([209.85.222.48]:45036 "EHLO mail-ua1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbhFKG5s (ORCPT ); Fri, 11 Jun 2021 02:57:48 -0400 Received: by mail-ua1-f48.google.com with SMTP id 68so2212408uao.11; Thu, 10 Jun 2021 23:55:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uDY2dim4aXXjh83+9TfmRnq4rAnvdm1kS4I6xxJDBSY=; b=V8wkSTGaotw6yDaMI8aW6zeuqP/9qpv6sNZL7MFNPEDxPfllq+EdlOM9Njgg2l7YN4 RlcYRVDGe3tq4GGFcM/PXS0vZjEOI6FcWPeEBBfGnTLGKvXKwpCv8+IvTnNrSJjnuya5 s4QBw+/4fOzC2ihXRJhoE5MbpAOB960hQ215vegLP+cdgFmfUNjNy9YIA/7XH4ZmNJKs 6V2GqdQcrhUEGZP8viIgExf8sr4WRHXrdO77IMJ4HIYYveFdEgr9tfcv0k6aFYA/8sBu IWdSg2MDoOnLVEnV2tQBVQFeM9t3kwkyH/FaPi/yvC5aG6/KxoHGZvXpvnkNFDE6Kc54 qsfg== X-Gm-Message-State: AOAM533Yb+mOuqMOevMSRMZYEEiQ/AJ+VOMXl8CcQ2re1+/gMq+cZq/+ uNFP5S5VNfNh9bGg6PK+kq/mwIdxAQ1s1Mpq1RLDbpjB2Byyeg== X-Received: by 2002:ab0:71d9:: with SMTP id n25mr1728908uao.2.1623394535969; Thu, 10 Jun 2021 23:55:35 -0700 (PDT) MIME-Version: 1.0 References: <20210610110001.2805317-1-geert@linux-m68k.org> <20210610220155.GQ664593@dread.disaster.area> In-Reply-To: <20210610220155.GQ664593@dread.disaster.area> From: Geert Uytterhoeven Date: Fri, 11 Jun 2021 08:55:24 +0200 Message-ID: Subject: Re: [PATCH] xfs: Fix 64-bit division on 32-bit in xlog_state_switch_iclogs() To: Dave Chinner Cc: Dave Chinner , Chandan Babu R , "Darrick J . Wong" , Allison Henderson , Christoph Hellwig , linux-xfs@vger.kernel.org, Linux-Next , Linux Kernel Mailing List , noreply@ellerman.id.au Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, On Fri, Jun 11, 2021 at 12:02 AM Dave Chinner wrote: > On Thu, Jun 10, 2021 at 01:00:01PM +0200, Geert Uytterhoeven wrote: > > On 32-bit (e.g. m68k): > > > > ERROR: modpost: "__udivdi3" [fs/xfs/xfs.ko] undefined! > > > > Fix this by using a uint32_t intermediate, like before. > > > > Reported-by: noreply@ellerman.id.au > > Fixes: 7660a5b48fbef958 ("xfs: log stripe roundoff is a property of the log") > > Signed-off-by: Geert Uytterhoeven > > --- > > Compile-tested only. > > --- > > fs/xfs/xfs_log.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > 64 bit division on 32 bit platforms is still a problem in this day > and age? They're not a problem. But you should use the right operations from , iff you really need these expensive operations. > Reviewed-by: Dave Chinner Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds