Re: [PATCH 1/4] mm: Fix sparse, use plain integer as NULL pointer

From: Kirill A. Shutemov
Date: Thu Feb 02 2017 - 08:08:33 EST


On Thu, Feb 02, 2017 at 10:37:17AM +1100, Tobin C. Harding wrote:
> From: Tobin C Harding <me@xxxxxxxx>
>
> Patch fixes sparse warning: Using plain integer as NULL pointer. Replaces
> assignment of 0 to pointer with NULL assignment.
>
> Signed-off-by: Tobin C Harding <me@xxxxxxxx>

I wrote this part when ARC had pgtable_t defined as 'unsigned long', so
NULL wasn't an option, but 0 was as it's valid pointer according to spec.

Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>

--
Kirill A. Shutemov