Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2233817pxj; Sun, 9 May 2021 20:13:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfuWRo7RaoIZITXWBnOnzsYjezdCD2YqwX0f2sokqaeNB9HrXArEuhmxkZrlTOn8OMxXgo X-Received: by 2002:a02:c912:: with SMTP id t18mr19282454jao.100.1620616425260; Sun, 09 May 2021 20:13:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620616425; cv=none; d=google.com; s=arc-20160816; b=ZKk1vXdnSWASs1HD21wDSp1TEz7dWWefnmSOqQKa4l3KRI3toz19LOY/RZfjM96dcT iRq5Orzhd94ssVbSSG4dV6fU1aiP6P4eOhc9e8WcD2Xw4QuP4CzsT3UBGhboNqzF26V1 A4t9G9O3xjbFwwS7t8nkMC7RomRF33yAKRgcVcHTJ89ygsjyvmiO5cUcUNCEyAR9fppi 1/4n1e77YNl3+l1GMomYtxgIZd4guOz1/ZOzvjyiHHkx/DKj20HnfWkT3W69jotcFSlv wIJl3wQngc6ojAH9NTNRX6uJLjA0a5xRQLzBAzROwZA3tWy1/E/ljd94XiG0v00evfDe ba0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=MQShpWBv7fj5gFj1WDPM3ENM0VHluycqVzX9Dgw8/Ys=; b=IaYUlGA2Y3aj7sP+rzapA/qmKpI135ZX3YQ4lUpxCycA+iGdN+AWTfMwo7erSgpZrU zMBvkp0QGJr3SV6TtU4V/x8ZsrqEr0jtegw5pcH0H7CRC7/FqLpR1mTD8Yby9vhcZuuS rCcgbgt8no+D8PAzphj4P/arwMUYRrGACddir/RwJ7Fz4HcZc/2u6lK274LXiZtGzYWw 8TBSFCir5VBqg7URBVSxoOZPSvD9faBCzaBCSpo7pw1CRtyL1SbyXtk6vd7dKz0gS6JL d9K8e923srpa0e/7MjgJZQlpPG0zwXP1U/tNXy7jKMP8D7wITMADdvZhBAbQfbh+To9b O4IQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y23si14343815iot.95.2021.05.09.20.13.32; Sun, 09 May 2021 20:13:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230151AbhEJDOC (ORCPT + 99 others); Sun, 9 May 2021 23:14:02 -0400 Received: from mail-m118208.qiye.163.com ([115.236.118.208]:39324 "EHLO mail-m118208.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230129AbhEJDOB (ORCPT ); Sun, 9 May 2021 23:14:01 -0400 Received: from ubuntu.localdomain (unknown [36.152.145.181]) by mail-m118208.qiye.163.com (Hmail) with ESMTPA id 475DEE01DC; Mon, 10 May 2021 11:12:55 +0800 (CST) From: Bernard Zhao To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Maxime Ripard , Thomas Zimmermann , Laurent Pinchart , Kalyan Thota , Lee Jones , Bernard Zhao , Abhinav Kumar , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/msm: fix warning "using plain integer as NULL pointer" Date: Sun, 9 May 2021 20:12:27 -0700 Message-Id: <20210510031250.5303-1-bernard@vivo.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQx0eHlZMS0pCGUwZGB1CSklVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NCI6OBw*Lz8TDT8rDxkvTBUX SzEKFB1VSlVKTUlLTUpNSExNS05LVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlITVVK TklVSk9OVUpDSllXWQgBWUFJTExPNwY+ X-HM-Tid: 0a7954436d742c17kusn475dee01dc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c:1195:41: warning: Using plain integer as NULL pointer drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c:1348:32: warning: Using plain integer as NULL pointer Signed-off-by: Bernard Zhao --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c index df7f3d3afd8b..cc5cceae80f4 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c @@ -1196,7 +1196,7 @@ static void dpu_plane_sspp_atomic_update(struct drm_plane *plane) if (DPU_FORMAT_IS_YUV(fmt)) _dpu_plane_setup_csc(pdpu); else - pdpu->csc_ptr = 0; + pdpu->csc_ptr = NULL; } _dpu_plane_set_qos_lut(plane, fb); @@ -1349,7 +1349,7 @@ static void dpu_plane_reset(struct drm_plane *plane) /* remove previous state, if present */ if (plane->state) { dpu_plane_destroy_state(plane, plane->state); - plane->state = 0; + plane->state = NULL; } pstate = kzalloc(sizeof(*pstate), GFP_KERNEL); -- 2.31.0