Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1125317pxb; Thu, 24 Mar 2022 13:15:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdSNBR+O4884up+ydaOrRHK69iVoOoK/KUMrPg5ylUFf20ZEFgMAdpu8ubx3Lc/+ejVPL7 X-Received: by 2002:a17:906:4fc9:b0:6e0:648e:5156 with SMTP id i9-20020a1709064fc900b006e0648e5156mr7573494ejw.412.1648152929898; Thu, 24 Mar 2022 13:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648152929; cv=none; d=google.com; s=arc-20160816; b=UIHxjvQxMkh2rZh8HD1ub65jFwZMVGkZ4SEPPpmfs46zLKHnq9odtinlQe4bnQJGVS M+fTuSQl7WX3nyYAH99UUte+KrddAopMbA7TivhVfC0oVHI81jOvS/GjJsbAKu4lsDAg 1y8RABq09lPxmqwC6agLag18Jm3WjpteTllKQgxYSuX4Sn58jHT0JEaTJOBDPGNmt3Tc SQP2fXfHH4+NXiFQiN/bzAFaLSJGCZmY800VaEUFakB4I1bg7mXsZmsylvZRZ/9BpWL0 Fh0CRJOh2i+4RK6Xb5WwIhEvsrjZRtVCiQ5ufzEw0nK65ps+nxC4zBMOmGKEZoFXrxHd 8Tqg== 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=gauJU+/Ukt87qElnbOCar/GeP644jnPenO1H+olAZxI=; b=JIDWXgncg8t6u+OLOaYbs9JXX+u3ANnUAgBCZCNYhorNTufPHr88XeZ0lVKXFVDh8R ARnyT8KpkoQprjDkGmxWtVSjRGagGteBB7AtRkQbt4vZVndhjB3uTdrHFasexs4Vske2 yubDpk1pLNwaGz6YwLtjm8sYWCXj1aaIIumdak2DIQA25PMD6qWBs0K7EEiEX0N05SWf iK60c5xqQTvS/21M3rhepzyY/fxvmeh+ARvtceUFB7RjZVmgxexReoW5TTG2LOE1aT+R P5weEDvN++lNA5PDMb3p/m1SeiTNphCj3E74NVzs9P9qXNSaO2Q9Y3G2QbfEF+5sXMFp 3oTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="cswYNs/W"; 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 b5-20020a170906194500b006df76385c12si397866eje.178.2022.03.24.13.14.55; Thu, 24 Mar 2022 13:15:29 -0700 (PDT) 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="cswYNs/W"; 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 S1344901AbiCWVn7 (ORCPT + 99 others); Wed, 23 Mar 2022 17:43:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234033AbiCWVn6 (ORCPT ); Wed, 23 Mar 2022 17:43:58 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1540E85952 for ; Wed, 23 Mar 2022 14:42:28 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id i23-20020a9d6117000000b005cb58c354e6so1996459otj.10 for ; Wed, 23 Mar 2022 14:42:28 -0700 (PDT) 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=gauJU+/Ukt87qElnbOCar/GeP644jnPenO1H+olAZxI=; b=cswYNs/WyXAL6DSvgYLR3dF6cUIcVKCxSQGRNXV786efwrusYDE0bclQvwL/1eYS9t vThDuK/9GhGm5Ws+5z71Qd6WANakCW1IxYdEHRVO7aP16V8R06I2LqJrdw4RATCO1HP0 UUGnJhwwcsp+xk/fmmMo/rX+1/XfoPXgN3W38qwm7MH+c8m3HzAOcpFmrbcAhGuFJHfX Vw5+f9RS596X3GChcf3jnVR4yHuJTrMPuhPEsnm8gzpHE3KwO/joTbHm5QXM0P67HP7h kV7tMbBorXJ887ivq0y7jr9VBFPDYpcw9XRIV3B7VBq9qM221sxbmH/8tVfi1WkmyQp0 i0dw== 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=gauJU+/Ukt87qElnbOCar/GeP644jnPenO1H+olAZxI=; b=50h7k0kKQ+JdkpR0dWkCgvHNv7G93l0ocIBsJ3UHD/vvRbtFxF8C+OMJuC6B1+wiPF RYgKbC3/eTlJ7cZASAUOBnYg8U4Ptp+qyqfJWm6sZYXMasTDm5gnhdbr/HivfRKQutaF ZELvcgTp9HviwGf5v5MQxob29vC8QbUKXKaex58mXXKs3BLC3OEZA/HSlKqhrsEORnar //yKNIcY11lXS+mXpSOqO8/rlRQwAYptvvfGcIXq5BZ4QeDTCBWTCDB/3zq9wdPjZa/6 1a2E4rXm2CJPqCLf+hRN99yZUe69PP45XO85zkTk7Ph39VPzkOPYy4z/e4+ZVLf+Z0hp tKKQ== X-Gm-Message-State: AOAM533TZvhRuKov+8YV+9It3xDR00H4YIBPh30KMwFvM5KYoLIO1vAn PT1bTtnlglFsdZgx1C6oyqZTmrkTYAWu2kR9Z8o= X-Received: by 2002:a05:6830:10c3:b0:5cd:481a:148a with SMTP id z3-20020a05683010c300b005cd481a148amr913080oto.200.1648071747457; Wed, 23 Mar 2022 14:42:27 -0700 (PDT) MIME-Version: 1.0 References: <1647943132-31250-1-git-send-email-baihaowen@meizu.com> In-Reply-To: <1647943132-31250-1-git-send-email-baihaowen@meizu.com> From: Alex Deucher Date: Wed, 23 Mar 2022 17:42:16 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: use NULL instead of using plain integer as pointer To: Haowen Bai Cc: "Wentland, Harry" , "Leo (Sunpeng) Li" , "Siqueira, Rodrigo" , "Deucher, Alexander" , Christian Koenig , xinhui pan , Maling list - DRI developers , amd-gfx list , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the patches. I've already applied fixes from others for these issues. Alex On Tue, Mar 22, 2022 at 9:05 AM Haowen Bai wrote: > > This fixes the following sparse warnings: > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/rc_calc_fpu.c:71:40: warning: Using > plain integer as NULL pointer > > Signed-off-by: Haowen Bai > --- > 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 ec636d0..ef75eb7 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.7.4 >