[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7d3d50666ced8fb27d0964fa51e78fcbd0aec82e.camel@surriel.com>
Date: Wed, 21 Aug 2019 10:26:08 -0400
From: Rik van Riel <riel@...riel.com>
To: Siarhei Liakh <sliakh.lkml@...il.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: Pointer magic in mm_init_cpumask()
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.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists