[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+ZOyagG+wV0vCZ1S4+C+k+iw1dm=ntupsb=tz7eQ5j82qqihQ@mail.gmail.com>
Date: Thu, 21 Jun 2018 23:19:21 +0800
From: Zong Li <zongbox@...il.com>
To: hch@...radead.org
Cc: Zong Li <zong@...estech.com>, linux-riscv@...ts.infradead.org,
Palmer Dabbelt <palmer@...ive.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
aou@...s.berkeley.edu, greentime@...estech.com
Subject: Re: [PATCH 4/5] RISC-V: Change variable type for 32-bit compatible
> > > - s64 offset = (void *)v - (void *)location;
> > > + uintptr_t offset = (void *)v - (void *)location;
> >
> > s64 is signed, uintptr is not, so this might change behavior and needs
> > an explanation.
> >
>
> Yes, it should be intptr_t. Thanks!
Correct, it should be ptrdiff_t. In kernel, there is no intptr_t definition.
Powered by blists - more mailing lists