Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1572343

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

From "Kirill A. Shutemov" <kirill@shutemov.name>
Newsgroups linux.kernel
Subject Re: [PATCH 1/4] mm: Fix sparse, use plain integer as NULL pointer
Date 2017-02-02 14:10 +0100
Message-ID <t6pjb-4nr-5@gated-at.bofh.it> (permalink)
References <t6cFj-4kV-3@gated-at.bofh.it> <t6cFk-4kV-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Feb 02, 2017 at 10:37:17AM +1100, Tobin C. Harding wrote:
> From: Tobin C Harding <me@tobin.cc>
> 
> 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@tobin.cc>

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@linux.intel.com>

-- 
 Kirill A. Shutemov

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 1/4] mm: Fix sparse, use plain integer as NULL pointer "Tobin C. Harding" <me@tobin.cc> - 2017-02-02 00:40 +0100
  Re: [PATCH 1/4] mm: Fix sparse, use plain integer as NULL pointer "Kirill A. Shutemov" <kirill@shutemov.name> - 2017-02-02 14:10 +0100

csiph-web