Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp69585pxj; Thu, 10 Jun 2021 15:07:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJrLyQZGJvJTZ15bDs4XeFpVoFVuu08ELLShPYLju7mOZx/3DGnBxqznJTyo9UOrkAU6wJ X-Received: by 2002:a17:906:b6c5:: with SMTP id ec5mr588146ejb.290.1623362839450; Thu, 10 Jun 2021 15:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623362839; cv=none; d=google.com; s=arc-20160816; b=VuobeMFIWyZFwpKoUeefmLZQUrpePZJlyYnGqTwrjugGoM3szGtH5eQH6RaQ7x3SjR rfRQlQJnfn6vG/E9qRl2SXNmjAS2VcVgwjpHkFkAhysfUjdjppW2ZKUUXyrvy0JsSJ/f gRefV5b7Qfq86m7CfpIM/XiO9UeA4S6RKZBL9qSHVBS3FqnldKKSjdkKgqpF69ReO8Ll AZJ5pAm3p2aMEZIhy7sah4HBmJxcCp9Y4SmLhVBU7atiR5gS+QofV2rKJjWU71VvcDYU sVPNJGCEdWwGlvK+Ke1KSX7xrdk37/AUcoQhXDuCq8Ydbaf5rlTy7VdjB7CGrStm2Q3t T6pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pfzWxvW5dIIp8TW+IKNmE3EtQwfuKim3mi23pwR9Cw8=; b=lTTYfCynlA8OFkZRDIDuS5/TmihDfBgV85UnE2sPHYPWVPxqCvKuvOJzs9o4zQKJSV PVYxUbdu3etJ/7L4RDr3SdyoAjq3jHb7JxgkDerq3J+Wru8Lu874pcck640UiBpDusxe CY27u64kYR9F4UxNESo0XfXbKmd+O6cVmLr9ls6GPFP9DgQXphscJZL72J+CW21HB3V3 UoGy7KbtFfCayXIvhRwgXv/xMV1Z95AeXH9H2i+HS8Na1srFVbm2pqizN0IeTfPjLk0S /7YoRLWA4JcYZPseASG3v60TsSZVwzsx1DhfAMj1k/MXFuQbSmEbVsOCdeEs8iApxm12 UsmA== 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 m7si3267057edq.86.2021.06.10.15.06.55; Thu, 10 Jun 2021 15:07:19 -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 S230502AbhFJWEN (ORCPT + 99 others); Thu, 10 Jun 2021 18:04:13 -0400 Received: from mail107.syd.optusnet.com.au ([211.29.132.53]:44611 "EHLO mail107.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbhFJWEM (ORCPT ); Thu, 10 Jun 2021 18:04:12 -0400 Received: from dread.disaster.area (pa49-179-138-183.pa.nsw.optusnet.com.au [49.179.138.183]) by mail107.syd.optusnet.com.au (Postfix) with ESMTPS id C64A6102D835; Fri, 11 Jun 2021 08:01:56 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1lrSkN-00BIbv-6t; Fri, 11 Jun 2021 08:01:55 +1000 Date: Fri, 11 Jun 2021 08:01:55 +1000 From: Dave Chinner To: Geert Uytterhoeven Cc: Dave Chinner , Chandan Babu R , "Darrick J . Wong" , Allison Henderson , Christoph Hellwig , linux-xfs@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, noreply@ellerman.id.au Subject: Re: [PATCH] xfs: Fix 64-bit division on 32-bit in xlog_state_switch_iclogs() Message-ID: <20210610220155.GQ664593@dread.disaster.area> References: <20210610110001.2805317-1-geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210610110001.2805317-1-geert@linux-m68k.org> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=Tu+Yewfh c=1 sm=1 tr=0 a=MnllW2CieawZLw/OcHE/Ng==:117 a=MnllW2CieawZLw/OcHE/Ng==:17 a=kj9zAlcOel0A:10 a=r6YtysWOX24A:10 a=tBb2bbeoAAAA:8 a=20KFwNOVAAAA:8 a=7-415B0cAAAA:8 a=-m77PIS_ppZt2-LBGwIA:9 a=CjuIK1q_8ugA:10 a=Oj-tNtZlA1e06AYgeCfH:22 a=biEYGPWJfzWAr4FL6Ov7:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Reviewed-by: Dave Chinner Maybe we should just put "requires 64 bit kernel" on XFS these days... -Dave. -- Dave Chinner david@fromorbit.com