Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1925060pxb; Wed, 2 Feb 2022 16:06:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGoHVfHO1J5WxpxsD0Epopv/ovuJXImwV9RjIUdfX3pD3P/qzuTs2wtd5L2PXPtBUYD9ub X-Received: by 2002:aa7:9530:: with SMTP id c16mr31618897pfp.54.1643846813724; Wed, 02 Feb 2022 16:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643846813; cv=none; d=google.com; s=arc-20160816; b=AVuIVLhQ1FR2voo1Hp2w+ZOlv2pSzOrGuRHayVRCfMDV64mXLy1IiVOHtDoZ/OeOpg qdXTmoKQrs5Cdj9pWXsQKWBl6ioQtCiLYQljR7yV2QEOZ6keGZtTUgh2tywjsS8QBOeu QNjU2onKV0xf6ApKniQl0a8PUxWmtyNO7o2ZguVR7/tP+xpBkWCpvEI0wLaNVTu9H4r/ GWBtDZrcwuAEFMrIJOzrtMEHOg+Y+aUrP/HPVhCS2T0wzzbmsu/Z7194/vWhtxro1841 vlIQgFYuDHnkck3xtCaEHT3ZlVP1f3iURMzU9Elc7NBvO9FuL6i5q55mD6GXmlwwPa1J kD1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QFPvU3m3nNCphV2xKrhWgV0aqhe4pVrtWvbA9ob9jJA=; b=zSTP8sqbtHJfOsU+8k8PUBsQKWP+/lYWFBXhZrRYFHRptmgcum3mbAwu2+4n0jSd2a vJDraIwwlvd3P76NeKWDWPoAztQROX6+O/MoXQCiUFGxvhoiBc5O6/LJqbUT8woZEtKu 9fripoLfyfSEAQDuir5wvoB845cq+up/nk5yvu2j0jXU4CnWpe4sZhdWQc45o4D6Uorr A4PdLzSJ4Dh1ruT5Kc+t14av2G81fCRnLHmpqUtaUsGiH/kPS1bvp0H+T/xBYVbScEf0 lbld84oUj2eQp4wzCIevbirRLU+o9ovzX0IX4P+kLpquBSbPtOlnPgsDdXGzbheLzy3+ EM5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XPwWJPEC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13si21194555pgq.238.2022.02.02.16.06.41; Wed, 02 Feb 2022 16:06:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XPwWJPEC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1348013AbiBBXKy (ORCPT + 99 others); Wed, 2 Feb 2022 18:10:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234221AbiBBXKx (ORCPT ); Wed, 2 Feb 2022 18:10:53 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1ECBC061714 for ; Wed, 2 Feb 2022 15:10:53 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id m9so1207664oia.12 for ; Wed, 02 Feb 2022 15:10:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QFPvU3m3nNCphV2xKrhWgV0aqhe4pVrtWvbA9ob9jJA=; b=XPwWJPECu0OQvpbmvXKFvImCF/9S/T5giVTWJ73LDI2jTIACSbfixnl/qm9fsPvIV/ muY2r7sLlegn9A+mZfYx0wdffcufqt5U2SE8zV43u+CsCUJ9frDKlsrybXpubFhbj0Mz Bhxgo6+I6nRhmjD/IgmX0J19CEPHf+YG1/AqD2UJtPFlHSZM3LdIsZwOPcMvBnFBtPrz FVPqbsB/utqoh2hVHsqM+D7YY1ASQ53wMgfEAQSOgAfWytidX5yL2V/GK/3U98VHeZ7x QbD0pYR4EPfOZmei9c6Ixw3ow4IUT1NBOiFjouwIwp/iWhBDbIQeZbwA6TiRNN1xxKJs hPyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QFPvU3m3nNCphV2xKrhWgV0aqhe4pVrtWvbA9ob9jJA=; b=S+IV0MK2yh3KJkJjZnoqVGtV0znrNCUYpm/Jq90LAz1Va1KfuEzvKfc+0MkmeGN+bp rUM9uO3iPYmj7QId90pGh/vPd2SNvekfe5IO9IoABfniTpETm0a2wMWzzlFmlxczfbQy ptnATrH7ady0ual1O5n75HIApLeEGBgtk7hknppcJbDryir24e72rpNlGGZIVGDGBHf9 tt1H+ARu4IW+VqrmRUurbqJk+utoDAkAtqUploJRRCGRcFvTHqsCFBFN1o+oTV+xZe9I t3pijUjYLJuZhQaJCo4VZx15EohzvdFKujWymjH/OgYeJc6KNdesQI5sin8vM5GB6SLd ZRbQ== X-Gm-Message-State: AOAM533k9np1gUkGuTyRxbR7KNlBti6AKiVlVrKDDieUxNdN+0lxz8Xp gtKnMAT5jxoTDWN4u8eHHBohZoDZA8t2Z7PSQ1w= X-Received: by 2002:a05:6808:159e:: with SMTP id t30mr3720621oiw.132.1643843453063; Wed, 02 Feb 2022 15:10:53 -0800 (PST) MIME-Version: 1.0 References: <20220202213856.409403-1-magalilemes00@gmail.com> In-Reply-To: <20220202213856.409403-1-magalilemes00@gmail.com> From: Alex Deucher Date: Wed, 2 Feb 2022 18:10:41 -0500 Message-ID: Subject: Re: [PATCH] drm/amd/display: Use NULL pointer instead of plain integer To: Magali Lemes Cc: "Wentland, Harry" , "Leo (Sunpeng) Li" , "Siqueira, Rodrigo" , "Deucher, Alexander" , Christian Koenig , xinhui pan , Dave Airlie , Daniel Vetter , LKML , Maling list - DRI developers , kernel test robot , amd-gfx list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Wed, Feb 2, 2022 at 5:20 PM Magali Lemes wrote: > > Assigning 0L to a pointer variable caused the following warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c:71:40: > warning: Using plain integer as NULL pointer > > In order to remove this warning, this commit assigns a NULL pointer to > the pointer variable that caused this issue. > > Reported-by: kernel test robot > Signed-off-by: Magali Lemes > --- > drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c > index ec636d06e18c..ef75eb7d5adc 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c > +++ b/drivers/gpu/drm/amd/display/dc/dml/dsc/rc_calc_fpu.c > @@ -68,7 +68,7 @@ static void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_per_comp bpc, > int sel = table_hash(mode, bpc, max_min); > int table_size = 0; > int index; > - const struct qp_entry *table = 0L; > + const struct qp_entry *table = NULL; > > // alias enum > enum { min = DAL_MM_MIN, max = DAL_MM_MAX }; > -- > 2.25.1 >