Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8749559rwl; Tue, 10 Jan 2023 18:53:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXv1xl+gr29C3gangXSL12Fm9Mgt1oVu8o6ht7wL8kjMJM9wJ9s6S5qZCM5cVjD2QRuCp2ut X-Received: by 2002:a05:6402:2409:b0:493:597e:2192 with SMTP id t9-20020a056402240900b00493597e2192mr19882325eda.38.1673405621568; Tue, 10 Jan 2023 18:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673405621; cv=none; d=google.com; s=arc-20160816; b=MqEXct169Zf3j2bm6AMkz61mint9V95QVkBe3DSiCVhxQCMks5sE5FnkWUt16ffKss jQASwEwiLIjmEGZaxLQ9Aj0ETDHSN8LtUWbhgbpk+apKKcAl60kqlE0uOgqA3ZYfnzUs dJ2V7mpWMtO3EtPPe2NR+LbU3lIUKH9TNfdb316TqhGKcNqgsmPsPisVp9uhZ4brUEw7 9rWywEM6jFiglnLd1IfrYl7du8gyY/W4N/JkmtXW65xStLIRge7HH8UvFO06oS5HW1X8 l0wSih7yqlX4zYQaQRXHEvmO5h0slNN4u2/GZaqQS4il/umxYBFZqw8kTZZX1rNt/Gng ztIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=JDatIFGfCYDp40epyQ6cVCFAB9XyGy7+db3Lps22ypY=; b=Xk8ijxzghyx/X6SzIbWFfYXSeutQ5nJGXsaVh0Qiu7fcYC7CFXJmyFP9piP760vEqM VTameErjlu68xbljFtK7J4tkF2LyuUPRZ2MutENB3iIAcNrhbXwOaFAtQ0xR6Az5iVz0 yOqZst4PS7VDghMfyVySSlzfEn96vXIOnZc/IbZf5Et4hSsLCgGp0WYTbl90Cw9venAU A73Iq63dmIaxgU/07VxO9hcLINXhNu4/xom2XRiDVzp2jSSSHAGkp3PDWTJCQpZ52P6f u9gOQGTzkTepqxWeAruvMembvPf8E1MmXwx8W5YqhuljN8rMOuPkqs7j42YAcSSfu+wQ pDaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=K+eRFK5b; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a056402400300b004520e27e5b9si13026229eda.626.2023.01.10.18.53.28; Tue, 10 Jan 2023 18:53:41 -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=@mediatek.com header.s=dk header.b=K+eRFK5b; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233237AbjAKCmx (ORCPT + 53 others); Tue, 10 Jan 2023 21:42:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229970AbjAKCmw (ORCPT ); Tue, 10 Jan 2023 21:42:52 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73D73B85D for ; Tue, 10 Jan 2023 18:42:50 -0800 (PST) X-UUID: a06154ca915911eda06fc9ecc4dadd91-20230111 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=JDatIFGfCYDp40epyQ6cVCFAB9XyGy7+db3Lps22ypY=; b=K+eRFK5b+Hb5DiyH9QVfdfzrxad3Q4ezcrin+70nVY80m2tkYnAgUEQjuCtH6BCav/ECUz2YjQaspnYgXU/HkZ1DgqZwSxZ+RjKq1jEENwJpLcbmS6/Nq4fvw9z4Of8TjHTrCWJKRaN7QEPYS7Wlj7HroA24mQSpz3UFfp6Qvz8=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.17,REQID:ddbc5802-95eb-489c-b894-52bc26157e72,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:543e81c,CLOUDID:3c8f4a54-dd49-462e-a4be-2143a3ddc739,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0 X-CID-BVR: 1,FCT X-UUID: a06154ca915911eda06fc9ecc4dadd91-20230111 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1847046328; Wed, 11 Jan 2023 10:42:44 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Wed, 11 Jan 2023 10:42:44 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Wed, 11 Jan 2023 10:42:44 +0800 From: Miles Chen To: CC: , , , , , , , , , Subject: Re: [PATCH] drm/mediatek: stop using 0 as NULL pointer Date: Wed, 11 Jan 2023 10:42:44 +0800 Message-ID: <20230111024244.24295-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <7cc4fe44-55b9-a80f-27a5-197070759760@collabora.com> References: <7cc4fe44-55b9-a80f-27a5-197070759760@collabora.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY 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 Hi Angelo, >Il 10/01/23 04:12, Miles Chen ha scritto: >> Use NULL for NULL pointer to fix the following sparse warning: >> drivers/gpu/drm/mediatek/mtk_drm_gem.c:265:27: sparse: warning: Using plain integer as NULL pointer >> >> Signed-off-by: Miles Chen > >Please add the appropriate tag... > >Fixes: 3df64d7b0a4f ("drm/mediatek: Implement gem prime vmap/vunmap function") No problem, I will add the Fixes tag and submit v2. thanks, Miles > >after which: > >Reviewed-by: AngeloGioacchino Del Regno