From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754103AbbJPJs1 (ORCPT ); Fri, 16 Oct 2015 05:48:27 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:63191 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751512AbbJPJsZ (ORCPT ); Fri, 16 Oct 2015 05:48:25 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Bjorn Helgaas , Kevin Hilman , Linux PCI , Ray Jui , Tyler Baker , lkml , Bjorn Helgaas , Mark Brown , bcm-kernel-feedback-list@broadcom.com, Hauke Mehrtens , Olof Johansson Subject: Re: [PATCH v2] PCI: iproc: fix 32-bit build error Date: Fri, 16 Oct 2015 11:47:42 +0200 Message-ID: <5482493.6eNiKO1I30@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20151015210113.GA13636@localhost> References: <1442363962-29805-1-git-send-email-rjui@broadcom.com> <5754881.OPA6La0Zg0@wuerfel> <20151015210113.GA13636@localhost> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:taB65cLSh5BOfQAhneXwTrVki3v5wAcf4Lm3goQuOFELvqmPpbx MhT7+6EySqTG1ebltaFK334nq834d6dezfAWCSUNNereRt7zz73tuUZ7aBKK2ykdegA4LsG 8O9jk8/G7o5WFRb90le9dnEcCSPyV5u110Qhdc7GGlvW3buTbKShEZtaBfpdG3YzMYPY7V6 2RR4k0rMjOdPZ+oAqju8A== X-UI-Out-Filterresults: notjunk:1;V01:K0:vFlWAGoJ7BI=:tEdZYYIR5IVBZE3hVc5AGS 7Zts4qE9i3nBPu21MlKyBxf0B65KCHzdk60B86WdykU4lM0K29x8L9F7XQcqN98Tn7Q/GyxWj faw5c/x0Jy6GzuNjfB0iYhd2VKlgxqe6n0ekmA+YaaruZ291vZ6mYzbDDV36ACqaYSL+OI9lW Ysmxa+D17FCzLXgafCkZO81PFTT3ttzdgH1hb37/Cs0EdyvLGL3Je7CjlAebQd7ARAwSY8nnb tO1uBzIzvFBFOL4dncZLYFZomLi4cNgqWA15fEBga+31HCt/uzTs8S4YGeYcGPo/z3+ug/zgU ay+5QlUvITuKQLBFpD505roUA+nnSGrB+pBsVfTGRyJlPZKrAZWeGQwinayDuuxzkwWKSHhsC xM8ilFuKmc7gvw9By8JjhFhQ9s9iiBXdJd0z3vytxZPTU2AlGCYnPQGFMAHkA8UZL7QmzfZ3G MmcR9D+dvbOCjuKyST8Em4HDl32LGTzJQIUZ2gLaNpiBUVXe/RMwe0UQj6ogFeyeBUkcvuGdd 9IF8p6UIylLfikA/9pTvUkL3vhfIzduwVVQGq22+VyXfQk7UFSSjrtnm46/mRXx8q6PW5ZRKk JEsjIV29NK9Lwvae5fQ+ra+ewU/mOu/tvBwI+ocez51BhCBSnDhB372UlC7Gk4B41a/GSl0Ju ap49QtdwqJt/+gvPzLqPClyjV4xqdnzjInB/i2Wvt3sZ3S7U1PNDC2AR3sBvD81nP8Lxrx3B+ sRe9L3drieWPq5Qb Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 15 October 2015 16:01:13 Bjorn Helgaas wrote: > On Thu, Oct 15, 2015 at 09:40:45PM +0200, Arnd Bergmann wrote: > > The iproc PCI driver tries to figure out whether the MMIO window has > > a valid size, but does this using a 64-bit modulo operation, which > > is not allowed on 32-bit kernels and leads to a link error: > > > > drivers/built-in.o: In function `iproc_pcie_setup': > > :(.text+0x4b798): undefined reference to `__aeabi_uldivmod' > > > > This works around that error by using the div64_u64() function > > provided by the kernel. While this is an expensive operation, > > it is harmless because we only call it during the probing > > of the driver. > > > > Signed-off-by: Arnd Bergmann > > Acked-by: Ray Jui > > Fixes: 0ab99ca8eb6c ("PCI: iproc: Fix compile warnings") > > This *looks* like it should be fixing 90e4032eeaf2 ("PCI: iproc: Add > outbound mapping support"), not 0ab99ca8eb6c. > > 90e4032eeaf2 added the "if (size % ob->window_size)". > > Is this more subtle than that? > > You are absolutely right, I must have copy-pasted the wrong entry. Do you want me to resend this? I guess you can just remove the line as this commit has not appeared in any release anyway. Arnd