lkml.org 
[lkml]   [2019]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Pointer magic in mm_init_cpumask()
From
Date
On Wed, 2019-08-21 at 09:13 -0400, Siarhei Liakh wrote:

> If mm_cpumask() is not safe, then at the very least the following has
> to be fixed:
> $ grep -rIn 'cpumask_clear(mm_cpumask(' *
> arch/powerpc/include/asm/tlb.h:69: cpumask_clear(mm_cpumask(mm));
> arch/sparc/mm/init_64.c:857: cpumask_clear(mm_cpumask(mm));
> arch/ia64/include/asm/mmu_context.h:92: cpumask_clear(mm_cpuma
> sk(mm));
> arch/csky/mm/asid.c:126: cpumask_clear(mm_cpumask(mm));
> arch/arm/mm/context.c:233: cpumask_clear(mm_cpumask(mm));
>
> Otherwise, mm_init_cpumask() can be simplified down to
> cpumask_clear(mm_cpumask(mm)).
> What do you think?

That looks like a nice cleanup.

I do not see why it would not work, but I suppose
that should be tested :)

--
All Rights Reversed.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2019-08-21 16:26    [W:0.039 / U:3.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site