Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2408598rdf; Mon, 6 Nov 2023 13:20:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrwXtB0ncxPETfp9yU8CRyUL256lLWvqToomzMzKr7vKidWd0UhoBF+oagHNceSkqdVeHE X-Received: by 2002:a05:6a20:a12b:b0:17a:e03f:5665 with SMTP id q43-20020a056a20a12b00b0017ae03f5665mr27624131pzk.31.1699305644962; Mon, 06 Nov 2023 13:20:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699305644; cv=none; d=google.com; s=arc-20160816; b=sFV3GCJzRBQsTRucMjKLawL/qszEKJplimdPk+i0GfWcW+Zsa0z5966dEAQC4RL42r /KSqbHwpFjVcknq3ffdSB9CFG+O/FAzcR/CiGI8u4uiDcdcfnnKnp3CV8aLLvxd9bnqP ygERycjm/UCjJI3m78+kHB5hV2Jzv2s6ttksxdNMADG3HJQrTergXAV8CPOZt8UrZUdE XmYjPZhEoFyjSKgsGW4f2YpeVoSAYuZo5I5snxN8b0rWa8Z46kFxfOTITSQ/wMQuvp80 KaGZfaYA1Y6xJKmbKPJSlEa4I/a+KNsK5K6qTah5MGXTYGrvg0u2YSipKF2UbGTMAxH6 5Wiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=1fyk105fO9nPx1K8RQh7z3r5ykWh5/CrtqeSXyVa34c=; fh=t70Dv3XskgvFZqQSfhoiac7Y4Q+uivC41Xp0cBtVMg8=; b=bk74DGA5Jin3NnTFyhom6IKWu6c32VYepFCoBv+gzQE+eALBhJuQ1dB1+xy3Udiag3 t0z70GrqME79I3sZjPdJMg3zraHhhk53IEDJFdS76kKI9UDoBH7oORjvvbP0KwBNJzks RN9bIN5fGv04FW60w7hnzme5iH0thZD9RO7H69rIDDjBkZxNC2AaW/dg4yeFOv4Pn6ci N2/9slewAT3SyCIlEzuIybzvFU8YCMkzB3ZvxeAHhpCv1rpm+QeZJcD23qDGk9TgqlSF fZvvj6ISQphjrmxCDJSuCUyxOe8AudLb/imMP31F5Zw48vcSbN8A8wssT4thmLhKvz5S cNYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JvFrQIuc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d12-20020a056a00244c00b006c128a8123bsi8918361pfj.212.2023.11.06.13.20.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 13:20:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JvFrQIuc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EB01B80320DF; Mon, 6 Nov 2023 13:20:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233079AbjKFVUN (ORCPT + 99 others); Mon, 6 Nov 2023 16:20:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231739AbjKFVUM (ORCPT ); Mon, 6 Nov 2023 16:20:12 -0500 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22B3EB0 for ; Mon, 6 Nov 2023 13:20:08 -0800 (PST) Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-587af6285c0so259110eaf.1 for ; Mon, 06 Nov 2023 13:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699305607; x=1699910407; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1fyk105fO9nPx1K8RQh7z3r5ykWh5/CrtqeSXyVa34c=; b=JvFrQIucl4wwnjjUBHxPi136YHvcmK1vXo/iEFHP7XkJwvsLxU3O7bHNyxd0/pGMoe DTgYlVV30RcrPfxwogT52lgJjYq9L9g0Af/0RqtlflfTlBi4igUd10VwGrC4aJrlw53S mAqaDJvGDJ1z3SYthJgBJj6aUxgb+asmR30yHvvGL2nsLcG3d0yUKqp2kqvqYMY54pub pvuUv5alO3HcL+4KcgzJVzsUeU1nNq/RCZoFMCP0P0YnQ429T7n3n3b/NC/AVBqCHuP+ Y1i8daTZshS3O4yppLPPd9rwzFQfVK1lsuoNvLqSuIICCSbm5ObX1EIRmzULpS24TflS /HfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699305607; x=1699910407; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1fyk105fO9nPx1K8RQh7z3r5ykWh5/CrtqeSXyVa34c=; b=s8HPGo+FovdQJ4DgW5NugumK2H2alD7JZFjFvfcpSbMUGMQKCDBQi2mgwrZDlZbSE1 cv5EOpgNWKu6PTVD9XR2BELwBHIaIwXPg6vsXXgf/eoEgMothqY4uckJ8mo8qMoBpsSt UFIeobHjGRoY9kGxdGh9Hl4oV1TxeS0IBd0Zi+SOHKWp7fYx7zp5UZiESXveDPFrgwA2 7IrHWhScp6MDUsit7gAuUeHf8egrHctIdDjY3GlCgUOPvEQ6N3Mj7742liIYdy9IGprb JZLKZHZ9J0dqcUxsrwgHcYmSrVuS8M2h6K0Vl/cF97O/SJ6fYLkBhK9FtCYpvZcLoO9f s4FQ== X-Gm-Message-State: AOJu0Yy3JnnYbpHESyBcAkYB8Gvc3JBwaMr1y7Ho9PQqjXM2v76fUJwS 8K6wWrla2yhupiYqyfedgSs= X-Received: by 2002:a05:6358:f201:b0:169:4a72:2b84 with SMTP id jj1-20020a056358f20100b001694a722b84mr41339730rwb.1.1699305607292; Mon, 06 Nov 2023 13:20:07 -0800 (PST) Received: from [192.168.0.152] ([103.75.161.210]) by smtp.gmail.com with ESMTPSA id y188-20020a6364c5000000b005b92ba3938dsm190941pgb.77.2023.11.06.13.20.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Nov 2023 13:20:06 -0800 (PST) Message-ID: <3b92b89b-ca72-4012-b4f2-0b19e4ba9153@gmail.com> Date: Tue, 7 Nov 2023 02:49:56 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drivers: gpu: Fix warning using plain integer as NULL Content-Language: en-US To: Alex Deucher Cc: alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, linux-kernel-mentees@lists.linuxfoundation.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20231103155013.332367-1-singhabhinav9051571833@gmail.com> From: Abhinav Singh In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 06 Nov 2023 13:20:39 -0800 (PST) On 11/7/23 00:25, Alex Deucher wrote: > Applied. This matches what we already do in the other clear state headers. > > Alex > > On Fri, Nov 3, 2023 at 12:00 PM Abhinav Singh > wrote: >> >> sparse static analysis tools generate a warning with this message >> "Using plain integer as NULL pointer". In this case this warning is >> being shown because we are trying to intialize a pointer to NULL using >> integer value 0. >> >> Signed-off-by: Abhinav Singh >> --- >> drivers/gpu/drm/radeon/clearstate_evergreen.h | 8 ++++---- >> 1 file changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/drivers/gpu/drm/radeon/clearstate_evergreen.h b/drivers/gpu/drm/radeon/clearstate_evergreen.h >> index 63a1ffbb3ced..3b645558f133 100644 >> --- a/drivers/gpu/drm/radeon/clearstate_evergreen.h >> +++ b/drivers/gpu/drm/radeon/clearstate_evergreen.h >> @@ -1049,7 +1049,7 @@ static const struct cs_extent_def SECT_CONTEXT_defs[] = >> {SECT_CONTEXT_def_5, 0x0000a29e, 5 }, >> {SECT_CONTEXT_def_6, 0x0000a2a5, 56 }, >> {SECT_CONTEXT_def_7, 0x0000a2de, 290 }, >> - { 0, 0, 0 } >> + { NULL, 0, 0 } >> }; >> static const u32 SECT_CLEAR_def_1[] = >> { >> @@ -1060,7 +1060,7 @@ static const u32 SECT_CLEAR_def_1[] = >> static const struct cs_extent_def SECT_CLEAR_defs[] = >> { >> {SECT_CLEAR_def_1, 0x0000ffc0, 3 }, >> - { 0, 0, 0 } >> + { NULL, 0, 0 } >> }; >> static const u32 SECT_CTRLCONST_def_1[] = >> { >> @@ -1070,11 +1070,11 @@ static const u32 SECT_CTRLCONST_def_1[] = >> static const struct cs_extent_def SECT_CTRLCONST_defs[] = >> { >> {SECT_CTRLCONST_def_1, 0x0000f3fc, 2 }, >> - { 0, 0, 0 } >> + { NULL, 0, 0 } >> }; >> static const struct cs_section_def evergreen_cs_data[] = { >> { SECT_CONTEXT_defs, SECT_CONTEXT }, >> { SECT_CLEAR_defs, SECT_CLEAR }, >> { SECT_CTRLCONST_defs, SECT_CTRLCONST }, >> - { 0, SECT_NONE } >> + { NULL, SECT_NONE } >> }; >> -- >> 2.39.2 >> Hi Alex, thanks for looking into this. By applied you mean this patch is accepted and it has been merged?