Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp5047245pxb; Tue, 5 Oct 2021 16:28:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPkQsgu1MBjYOBDIREuprXoEnnFrzQqt6VvmlnIx2q3XhjoX5QiF6EnnFHmp0Ultwm2zbQ X-Received: by 2002:a50:cf48:: with SMTP id d8mr30329424edk.293.1633476493640; Tue, 05 Oct 2021 16:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633476493; cv=none; d=google.com; s=arc-20160816; b=PxA1MWJYER6TF3a11GC/LGXQMIWYH0ztg/TYbcvAXPhWeHR7v4waDp2zu66TCaiGoS 9bymtC/4pzHofRFAy6VwWGVf/5IC56lfPej+HiLmSoMO90rTZNT4+lgJXi9JsBCc40l+ k/DichKjpRB4CzUtuovxYF+HHU9zyT7SkYeAz5H57Zu+opelk7xT/AgQ/xe5FBdJczl0 +DSH93n0Gxw90hGKKbOqaSd2tbFc4RwQn119ZrIgYBNPaicqGGgjU4vY7KFnfDvX8NYZ ZwWdLkEo3GJBt/Wwa2qZ8CcF5ooIQ1D2RZg47najM2nfnB0DTrMpt9NgYEt/LvboO67H 5dEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=UPvvSPWIaO/sRiVaHpaQP4IzMcM4L/Eht8ZgLmrbvGE=; b=v0tE7HysamD1Lu2F/GwFYVZ+NZHQpaq9ICCT8Ij2iI08mYDJli8IXmUF1lVeDp5XCp /c6VpaX6xDZ4TRlSz067OKHXM9N6QpVTFQxLtapgqK5kk1H6KAhPTcGKoG22JOqsmsZt M0nmH8gkTIRU192huLKlS8xr0CmFOTfXGhiyIm77UWxNBDyoAsZxS6VbxKJJYNOoCz+i 0hFMonTyrFnNARZ86r/GVPl4GZ5m3VXYOCcM4voeGb878+GNjzlwDye9Z3tPG8hfPfpM 6kuqVzCMxtSYPiA2yG2zLRnP2+dmYumE6/e/jsy/nlpXqJc1wO5kGg9UZk5A7qj0Rh3I AExQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=1od9ni1M; dkim=neutral (no key) header.i=@suse.cz; 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 hs3si40649403ejc.368.2021.10.05.16.27.50; Tue, 05 Oct 2021 16:28:13 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=1od9ni1M; dkim=neutral (no key) header.i=@suse.cz; 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 S236942AbhJEXZf (ORCPT + 99 others); Tue, 5 Oct 2021 19:25:35 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:33422 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236820AbhJEXZe (ORCPT ); Tue, 5 Oct 2021 19:25:34 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 4323522476; Tue, 5 Oct 2021 23:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1633476222; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UPvvSPWIaO/sRiVaHpaQP4IzMcM4L/Eht8ZgLmrbvGE=; b=1od9ni1M9axvOXuB/iAIhYzihqUbBZnj8qNvUxcENwi342zVJbtLmbsqX5KyBz9SJuatAE dRiX09AVCJlT94mQlGUC7EV9vQCn3Lebeh1n9VZzrwL8pvC2yA5jY6zj3yVVRYOvYcxoLC h17TLM3Xdj1zAEjvvlDkCGN4WqLTtOo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1633476222; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UPvvSPWIaO/sRiVaHpaQP4IzMcM4L/Eht8ZgLmrbvGE=; b=6eqJjXvNFybkUNRMn3ysJFA9tzBRFk58hDBM/V7QzaTWToqLhRFIGyJiRD9SJaqFPqGXWe RTdH4O18iyQRqWBw== Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id 36D4BA3B94; Tue, 5 Oct 2021 23:23:41 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 52D4EDA7F3; Wed, 6 Oct 2021 01:23:21 +0200 (CEST) Date: Wed, 6 Oct 2021 01:23:21 +0200 From: David Sterba To: Geert Uytterhoeven Cc: Qu Wenruo , Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, noreply@ellerman.id.au Subject: Re: [PATCH -next] btrfs: lzo: Mask instead of divide to fix 32-bit build Message-ID: <20211005232321.GK9286@suse.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Geert Uytterhoeven , Qu Wenruo , Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, noreply@ellerman.id.au References: <20211005093406.1241222-1-geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211005093406.1241222-1-geert@linux-m68k.org> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 05, 2021 at 11:34:06AM +0200, Geert Uytterhoeven wrote: > On 32-bit builds (e.g. m68k): > > ERROR: modpost: "__umoddi3" [fs/btrfs/btrfs.ko] undefined! > > "cur_in - start" is 64-bit, while sectorsize is u32. > > As sectorsize is always a power of two, the 64-by-32 modulo operation > can be replaced by a much cheaper bitwise AND with "sectorsize - 1". > > Fixes: 0078783c7089fc83 ("btrfs: rework lzo_compress_pages() to make it subpage compatible") > Reported-by: noreply@ellerman.id.au > Signed-off-by: Geert Uytterhoeven Thanks. Folded to the patch as it's still in the devel queue.