lkml.org 
[lkml]   [2021]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH mm] kfence: fix printk format for ptrdiff_t
On Thu, Mar 18, 2021 at 10:38:43AM +0100, Christophe Leroy wrote:
> Yes it seems to be wrong. It was changed by commit d27dfd3887 ("Import
> pre2.0.8"), so that's long time ago. Before that it was an 'int' for ppc32.
>
> gcc provides ptrdiff_t in stddef.h via __PTRDIFF_TYPE__
> gcc defined __PTRDIFF_TYPE__ as 'int' at build time.

(On 32-bit PowerPC Linux.)

> Should we fix it in arch/powerpc/include/uapi/asm/posix_types.h ?

I think so, yes.

> Anyway
> 'long' and 'int' makes no functionnal difference on 32 bits so there should
> be no impact for users if any.

Except that long and int are different types, which causes errors like
what you have here. There may be similar fallout from changing it back.


Segher

\
 
 \ /
  Last update: 2021-03-19 12:43    [W:0.039 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site