[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1acace03-4273-a5ad-50b4-5ab8e3baa551@landley.net>
Date: Thu, 16 Sep 2021 20:32:20 -0500
From: Rob Landley <rob@...dley.net>
To: Geert Uytterhoeven <geert+renesas@...der.be>,
Yoshinori Sato <ysato@...rs.sourceforge.jp>,
Rich Felker <dalias@...c.org>,
"Aneesh Kumar K . V" <aneesh.kumar@...ux.ibm.com>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: Jacopo Mondi <jacopo+renesas@...ndi.org>,
Daniel Palmer <daniel@...f.com>, linux-sh@...r.kernel.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sh: pgtable-3level: Fix cast to pointer from integer of
different size
On 9/15/21 8:50 AM, Geert Uytterhoeven wrote:
> arch/sh/include/asm/pgtable-3level.h:37:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
...
> The truncation to "unsigned long" has been there since forever, so
> probably it still works fine ;-)
1) Linux is LP64 so sizeof(long) and sizeof(pointer) always match, so it's not
truncating.
2) The sh5 only ever shipped evaluation units, it never had a production run,
and we haven't implemented j64 yet, so all superh targets are currently 32 bit.
(I.E. it's complaining about _expanding_ the pointer, which shouldn't be a
problem as long as endianness is respected.)
Rob
Powered by blists - more mailing lists