Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2292453pxb; Thu, 3 Feb 2022 03:40:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrvwIc6yRhmh/aqTrhlKZxegLRGY755xFWvLIlu4Gvah12GGhLq6yv4mADG5+LSA9iOnFm X-Received: by 2002:a17:907:7da7:: with SMTP id oz39mr22554004ejc.324.1643888420686; Thu, 03 Feb 2022 03:40:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643888420; cv=none; d=google.com; s=arc-20160816; b=ypnhqN8nYylrooYZhTicHroPWUo7QvJk43nD5hkYpcs8QtPyJfE32/N0URLtCZXWIP AC1n29x5aXwV2gEo7Jy7B61uIayBr9huGiLtpJe0/uw4cP9iraYt6xLpwjVMXTBRvSLP Y5y83waXOMkMfb6E3TWZCklvBgNOV+y8IsEraFeY1TEcKi1K4mbx1ksv7wNZOo0mQ3Sc dLMZRYy5p7XBFsBbEGHtz95gJTLdKNqzcRfHqQ4zN0oioAQ9eJIxSP6mKQihSxs/6adw kogeC3veTJatV44ith2Aw7n/E8slKxCqSkwT5RPMw9NFgSC19l71koqmuEQ07dlDmXwt MUdQ== 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:cc:to:from:dkim-signature; bh=W3C86wM4RRIil8SxMQCDDt7pq/c7kC+1ToUwcaauhcY=; b=kbTVazOeEA3wfPkT7n9M77MZfupckwEeW+/MsobiqDitlgH3l6cqfSY6MX736T9xV+ wrqihdfkrLVGV7Gc0PFHiqa/WDEt9MnGoXbr0CaPzmpup44SWb8ffdaEZSNytIoAAAj6 EVR9EgwHNIIVV4sfC+J7rb3ZrGC05kGR9lOpO+3PGsvgGHWQeCmWxFX4OUzH5Q4DyUgh i3JpUB62rF7Iq/+sgnbknPDQ5xNAtOtXh22UdWwRccK9x2xJaVb1SpM//nD6By8q2o0L GseqIn3vvSI8DXFzhozwHKFbdwafegZz5KabbZI5QIrtXKJsMdbMZnXdCaCQZT+A3Tiy G6bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bcf0lTZn; 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 mp26si12626895ejc.326.2022.02.03.03.39.52; Thu, 03 Feb 2022 03:40:20 -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=bcf0lTZn; 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 S1347695AbiBBVnF (ORCPT + 99 others); Wed, 2 Feb 2022 16:43:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233512AbiBBVnE (ORCPT ); Wed, 2 Feb 2022 16:43:04 -0500 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A625CC061714 for ; Wed, 2 Feb 2022 13:43:04 -0800 (PST) Received: by mail-oi1-x22a.google.com with SMTP id e81so917658oia.6 for ; Wed, 02 Feb 2022 13:43:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=W3C86wM4RRIil8SxMQCDDt7pq/c7kC+1ToUwcaauhcY=; b=bcf0lTZn99V9oVeN3ea94gI1jVOL8i6cIyNZAtSXBbrZbPkj8NiwExPSavIGezwB08 Yt2kEnAKIfK+aMT4IMo13Lf2CI613trgWsAu4Xz7yme4kxZTHYcGto0WkIrYeqeJ2paT 28Laff0Gxkao9X+felx3/7XAyw5d+vPztBfK2aBiCnNS2KLhhgYku9YK3wc5FwDD98aI GuRSCHSGpXjmhiq+79D/+vguYkybVKv6rM+Qmswkz29/ARg/whzqyxkQIqtY90nsJCB9 ewRk0pOkfGjjbCxd9KVqKUXTYPjmxbargNak9k85YpPdHIQKt+5zr5g+F5J4deC7ebCm wG/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=W3C86wM4RRIil8SxMQCDDt7pq/c7kC+1ToUwcaauhcY=; b=dAPtpZ/QgE9eP8vSpegOX/hFMXnNFz36x0pTb1GjyXcaGCeGnf7wBLGoJnV33gahzN PoaqVeupmmSn3CDlYB49gDY07v59yRtNlb1Wjw55dZoi+cD5kP+nhq6D+XIEW5P0FAq8 G4ooxLyD3QH1P5XDWSAcxhr1QbXK4Ux0kljEhezi8yoTzwynZMJLedeJURgwnSm0lXdQ spHk1jP6MZnzklvjV8CmVrkbL6yjFbHOXVJd4aTwjuIaYL9mZd63XLmiuk3bIByd9ydA N3KiTgVKsGCjSJQ1nugVCAJskYL+VOCNnXu1HyF4SaIcsMTKk8PC6lIGCr5+sxpdpImD Yfkg== X-Gm-Message-State: AOAM532HUKCOsOIhFj15WJzzFbh68lQVJ0R1PrfFXcyBUxn1bJENKNql ht3NrcUdgmKuYmoYO+Ywlbo= X-Received: by 2002:a05:6808:10ce:: with SMTP id s14mr1474773ois.164.1643838183932; Wed, 02 Feb 2022 13:43:03 -0800 (PST) Received: from magali.lan ([191.181.56.252]) by smtp.gmail.com with ESMTPSA id y15sm11701268oof.37.2022.02.02.13.43.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Feb 2022 13:43:03 -0800 (PST) From: Magali Lemes To: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch Cc: Magali Lemes , kernel test robot , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/display: Use NULL pointer instead of plain integer Date: Wed, 2 Feb 2022 18:38:56 -0300 Message-Id: <20220202213856.409403-1-magalilemes00@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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