[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87ega9gtm5.fsf@nemi.mork.no>
Date: Wed, 13 Apr 2016 22:07:46 +0200
From: Bjørn Mork <bjorn@...k.no>
To: Timur Tabi <timur@...eaurora.org>
Cc: Shanker Donthineni <shankerd@...eaurora.org>,
kbuild test robot <lkp@...el.com>, kbuild-all@...org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-msm@...r.kernel.org,
sdharia@...eaurora.org, Greg Kroah-Hartman <greg@...ah.com>,
vikrams@...eaurora.org, cov@...eaurora.org, gavidov@...eaurora.org,
Rob Herring <robh+dt@...nel.org>, andrew@...n.ch,
bjorn.andersson@...aro.org, Mark Langsdorf <mlangsdo@...hat.com>,
Jon Masters <jcm@...hat.com>,
Andy Gross <agross@...eaurora.org>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH 1/2] [v4] net: emac: emac gigabit ethernet controller driver
Timur Tabi <timur@...eaurora.org> writes:
> Shanker Donthineni wrote:
>>>> >> drivers/net/ethernet/qualcomm/emac/emac-mac.c: In function 'emac_mac_up':
>>>>>>>> >>>> >>drivers/net/ethernet/qualcomm/emac/emac-mac.c:1076:9: warning: large integer implicitly truncated to unsigned type [-Woverflow]
>>>> >> writel(~DIS_INT, adpt->base + EMAC_INT_STATUS);
>>> >
>>> >This doesn't happen on arm64, and I don't know how to fix it. DIS_INT is defined as:
>>> >
>>> > #define DIS_INT BIT(31)
>>> >
>> Try with (1U<<31).
>>
>
> Except that Gilad was previously asked to use the BIT() macros:
>
> https://lkml.org/lkml/2015/12/15/797
So typecast it.
writel((u32)~DIS_INT, adpt->base + EMAC_INT_STATUS);
I believe the reason you don't see this on arm64 is that the writel
macro includes the typecast there. But it doesn't on x86_64
Bjørn
Powered by blists - more mailing lists