From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751043AbdBBNI3 (ORCPT ); Thu, 2 Feb 2017 08:08:29 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35594 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbdBBNI2 (ORCPT ); Thu, 2 Feb 2017 08:08:28 -0500 Date: Thu, 2 Feb 2017 16:08:25 +0300 From: "Kirill A. Shutemov" To: "Tobin C. Harding" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , "Kirill A. Shutemov" , Jan Kara , Ross Zwisler , Michal Hocko Subject: Re: [PATCH 1/4] mm: Fix sparse, use plain integer as NULL pointer Message-ID: <20170202130825.GA32180@node> References: <1485992240-10986-1-git-send-email-me@tobin.cc> <1485992240-10986-2-git-send-email-me@tobin.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1485992240-10986-2-git-send-email-me@tobin.cc> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 02, 2017 at 10:37:17AM +1100, Tobin C. Harding wrote: > From: Tobin C Harding > > 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 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 A. Shutemov