[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <53B3B8B9.30400@Freescale.com>
Date: Wed, 2 Jul 2014 02:46:01 -0500
From: Emil Medve <Emilian.Medve@...escale.com>
To: Varun Sethi <Varun.Sethi@...escale.com>,
<iommu@...ts.linux-foundation.org>, <joro@...tes.org>,
<linux-kernel@...r.kernel.org>, <linuxppc-dev@...ts.ozlabs.org>,
<alex.williamson@...hat.com>
Subject: Re: [PATCH 1/3] iommu/fsl: Fix PAMU window size check.
On 06/24/2014 08:57 AM, Varun Sethi wrote:
> is_power_of_2 requires an unsigned long parameter which would
> lead to truncation of 64 bit values on 32 bit architectures.
>
> __ffs also expects an unsigned long parameter thus won't work
> for 64 bit values on 32 bit architectures.
>
> Signed-off-by: Varun Sethi <Varun.Sethi@...escale.com>
> ---
> drivers/iommu/fsl_pamu.c | 8 ++++----
> drivers/iommu/fsl_pamu_domain.c | 2 +-
> 2 files changed, 5 insertions(+), 5 deletions(-)
Tested-by: Emil Medve <Emilian.Medve@...escale.com>
On a P4080 DS (i.e. 32-bit SoC)
Cheers,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists