Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1102872yba; Sat, 6 Apr 2019 03:49:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJcPfBEot4NkTK5YS7eXoByX+ZsR++C6H+nppsozOUfCniMmgRfatA2a8NNonR4YZwXX1P X-Received: by 2002:a63:5ec2:: with SMTP id s185mr17469422pgb.27.1554547768103; Sat, 06 Apr 2019 03:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554547768; cv=none; d=google.com; s=arc-20160816; b=n+ecnggiHWcOJ17bEs64wRGPYMU8x6bFJW9fSUTMrrcUKdC9EkWKOGMY1PZWt+eSch 89Oc7Pogmor0KrILm1AMu5xtmvq3yfH358JYe0UPzbDE2oJXxYEO+JmcSC5nfvaENd8J iwsJ+OK3Q43RYdwN7FbVPUrHtlG7Vt7DJ+2WCssXpwKzYvuHiOsxrAh5/Gk3sFW+Xhrg xrr0KmCPWEpzTLeDpMRKeyK1qMQRVIkZpnOHHNew3sscCsvhQtnlQugX+84CG9MOUUsn Ew5OR1dVZ3mKoZ6C7dvRdAxhWi11zhe17fnv3QbkK5HH+WFK6AjGaTsaMkuhlHwSsORZ OijA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=L/kr42+eOjkysqUmccLNXJpDS4JFh9FfZXCnnHxwr6Y=; b=0enKy9N7dnt4HEwES2zX+P2fyC5IbUV05VyHEGrCjWRtRToXG7ssGL0E80qPsghrvs MMfiHv8SSuCNf2qYtcJIEMCpUYT8pFdXy12X3pn4IxSBXhBtyYT97Z4m5RP6O/MQ5/jk ry+ce9lAB8WWxdQaioxQDi9salQ6Bif8PPTNOcukyfQrC31Zy3qp6/cA5ihNWLX3qB7q mCPWwufHB+WKqK3+PUHzJ8eZG8sK2GZ2cRRFt8fDdr9HqNvfB/horo3lWEJCtn3x0Wn2 nsRTYzVD2OoWf06s5CUTXMFWH+y1H5WJqKITVCh7jwbyTmxzj/y089KT9tImla0QVcpl 3H6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CG7k8lNB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4si21358708plo.166.2019.04.06.03.49.10; Sat, 06 Apr 2019 03:49:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CG7k8lNB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726436AbfDFKse (ORCPT + 99 others); Sat, 6 Apr 2019 06:48:34 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:46805 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726360AbfDFKse (ORCPT ); Sat, 6 Apr 2019 06:48:34 -0400 Received: by mail-pg1-f194.google.com with SMTP id q1so4436356pgv.13 for ; Sat, 06 Apr 2019 03:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=L/kr42+eOjkysqUmccLNXJpDS4JFh9FfZXCnnHxwr6Y=; b=CG7k8lNBGRNOa0yKycoo2KaAeQXZ+KSaS5vgpk6mtaufpbW1CM4aNibH0E/0g/nLjx IBndOL6lNrlzB+k/8+sp4Tjvx0wjpWNu6JtbzGBKFNW34Z5J+NbWXFqISMHXYuRFBJf6 oyw8ZFWJTDXJtZhQ7bWG32vyeeIzb5jRr7ng7T4v9f4I1w5r00am4IKnOambMCTpcrQu 8ihQ5grsSDCnTmM42vghTNpXNZe0As9X2YDUBLxYnQ4HiTFPF9rX8ZlqRCLJzBUJUCqr KNm4y9w4eXkvnGHqyocSRTNGEpbtfYLUlqutlrBP9UhKJ1zCRAbF/rYu/4e3jXlKyyNR e3qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=L/kr42+eOjkysqUmccLNXJpDS4JFh9FfZXCnnHxwr6Y=; b=CsSmxZB/48mpOobVQzTjv1BoB4axi/w8sRUB4Vg51ZBJI8wmJnQq3YyZOp3mipNBgZ 84Lse4MgeW9R9IeBfnXBqQzVr4jHZWcLyMPyspAjB1l8p6MLzAPK8JVsFHUCI8MtRK5P HH+p+QmQTW7HOwUYxqoUh/B24O5WjG8PZ04TxJCIgCtQ6nnEzZSgWCbbIwvxCEeTIPyf i3UXZ/sTiUneruxpITbLtOxJXz1dSal40fb/X7ZUss30d6XNHnySzmzzGIE9Dl1pT2Oy oTChVnRs9f0j1gRNxZ6tsTIgthMSEWW2wPtGiSKOoOjSijTDynl8act8ZQnYGXtQkunR 8moQ== X-Gm-Message-State: APjAAAXhCKxugD2HAUsFZ7PRhJVrX1hAQFZxYoutWSVqbO4J4fHIiVYj ZXSCz6k/GYv3v3NdvOHET+s= X-Received: by 2002:a62:e315:: with SMTP id g21mr18037484pfh.2.1554547713454; Sat, 06 Apr 2019 03:48:33 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.91.90]) by smtp.gmail.com with ESMTPSA id x128sm12205090pfx.103.2019.04.06.03.48.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Apr 2019 03:48:32 -0700 (PDT) Date: Sat, 6 Apr 2019 16:18:28 +0530 From: Hariprasad Kelam To: "Eric W. Biederman" , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: [PATCH] kernel: pid_namespace : fix warning Using plain integer as NULL pointer Message-ID: <20190406104828.GA26135@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org changed passing function argument "0 to NULL" to fix below sparse warning kernel/pid_namespace.c:55:76: warning: Using plain integer as NULL pointer did changes to avoid checkpatch error "prefer a maximum 75 chars per line" Signed-off-by: Hariprasad Kelam --- kernel/pid_namespace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c index aa6e72f..6e4afdc 100644 --- a/kernel/pid_namespace.c +++ b/kernel/pid_namespace.c @@ -52,7 +52,8 @@ static struct kmem_cache *create_pid_cachep(unsigned int level) mutex_lock(&pid_caches_mutex); /* Name collision forces to do allocation under mutex. */ if (!*pkc) - *pkc = kmem_cache_create(name, len, 0, SLAB_HWCACHE_ALIGN, 0); + *pkc = + kmem_cache_create(name, len, 0, SLAB_HWCACHE_ALIGN, NULL); mutex_unlock(&pid_caches_mutex); /* current can fail, but someone else can succeed. */ return READ_ONCE(*pkc); -- 2.7.4