Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1482931pxf; Fri, 19 Mar 2021 08:06:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaJIpyYx7n//ZD+0hAG+RfB187TkXCbZwfbssKJ61VvJ+kASvyQ8Mt4EmWTzMimjs9Beg1 X-Received: by 2002:a17:907:e8f:: with SMTP id ho15mr4944412ejc.541.1616166388177; Fri, 19 Mar 2021 08:06:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616166388; cv=none; d=google.com; s=arc-20160816; b=JrZrrOWa9D73BOw33CgmKVHO2ommlg2/i3NvMnNp+KPS716dGlf8Dw9JtkqbhRJBKB BtodF4CP79s/spO05SEgEFuETFkafYa3kvvlPDcRqeK1cWc2i4w3cQP+Tn1JfpV/Mzeq Ie7lvvfKKr4whUpnivSIrl6OUudhz4vU+WlO78uOpVqABJ8Wg/3Ja2BqLplCV1hGr+ss kwGF8rjKkKTdZtmhwJh8K+ykgY2d+Uq1cMLm7CmJVxZIKZo0Tltk/2p4G/xuyq71b1tR lSKJvT0AyELyG7Sv6yqb4geNULF5ErbYwcywYKECCAIQGdhckyEIR05grEaFMsXgwhf+ W83Q== 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=H7UBFkI1CX111uLLNeagBjcZUDj7ZLwK/yKKbbrE7F4=; b=JjBJHK3gGThxT8t8CeGSGd7ZJ/DKrP6jdF3/lQLq9eXSOMbRmt8xjjugFGETz3IddT gjS5faAewfIBZ5u8bT8MbXqvUmDlTewzX8FYFAJl5xOsdfTBgCBUN/bpp6cDspjqw09I RYmP98pUY0izivTcDlxuWl1TipHOHJIx01nzF6PsLv0T1M60+03mKusSTsdue0T1GHi4 NxrmENuZi73i+oRJ4j+0ZJhTLTkrQ2ozHB/Mo+243zmSiA9/SzypXDHJI2GkoSyQMU43 DRQYRpn14oaJL6rlXC/WtubSIbVnG9Kno7pjeCHlkGKueUYnAYm0EnkAVHX9xQvKNdVG McOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C0YjKyPT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si4697466ejz.282.2021.03.19.08.06.00; Fri, 19 Mar 2021 08:06:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C0YjKyPT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230378AbhCSPE5 (ORCPT + 99 others); Fri, 19 Mar 2021 11:04:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbhCSPE2 (ORCPT ); Fri, 19 Mar 2021 11:04:28 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B2BBC06174A for ; Fri, 19 Mar 2021 08:04:27 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 184so12356814ljf.9 for ; Fri, 19 Mar 2021 08:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H7UBFkI1CX111uLLNeagBjcZUDj7ZLwK/yKKbbrE7F4=; b=C0YjKyPTMBZyq22wQR2Ycbof9lyp6kIEFLRu6UYQ26FWP6VkAJ6/JQBmjBKV7EWBLz BjhEpOYdLpOCiKvWbuMlY5LnupwEyWz7qN62FzhoAFcnZvZlPW2H6oei1qkdrS261jTe cTHosaAiMVD2DTGxgfntMAwuKVRCxXruO/HV1d3UJlwRw1dhtmODI/VZVebt44eoVHKr EHdA9BGmXBh+Yh7DNRBNpPT+mBcVTSDrrHSbnYeawGFpfI+hVGmjURrSUyP+AJJB3FNJ ma1mfG8gPcVpjYL8ar0A97sJPbL0hYyASgAySErAa+xcVCGPXg8f0HQpRuThvNgC3aWm RSbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H7UBFkI1CX111uLLNeagBjcZUDj7ZLwK/yKKbbrE7F4=; b=jAC2dszrgbPL5CpGkanycgSecP7dQpeTjcNew6+MZXFashGcRtpWXSUCcLe8pR+2GY mKT4H4CTPugT3E0qhCbhLPplfqejz4zWmFMJE+wImdNBNPnar/5zv9crhwcuBaQlBPzH eX2SZJt52bru2I0WCax/y3jC9lNF9IUNzhVMNC0swk/IMqBMQA+kbCp83S217agsbkUm eZFj2jX3rjXxllYcmlmErQDRAYtOIVQDRFFP1x+aWVCaFk8YVSu9H8bNVMKJKYHoNR1K Hsro/GZEthN+K8mjcFuSIUrKtq8xOpBRhocaNDCoEs/xXLXMzUe3l2oDQa7xJHq2SuiA Uh/g== X-Gm-Message-State: AOAM530oV6hrzKztslBzGUlxEjpDOhTIi57SnaNSUVsGlId9CLZTA8Fe w+4fZgUsY8mamII2CyvpFCRYvXGUUw9W1qQRho66mst+ X-Received: by 2002:a2e:b5cd:: with SMTP id g13mr1222346ljn.372.1616166265911; Fri, 19 Mar 2021 08:04:25 -0700 (PDT) MIME-Version: 1.0 References: <1615969652-80225-1-git-send-email-yang.lee@linux.alibaba.com> In-Reply-To: <1615969652-80225-1-git-send-email-yang.lee@linux.alibaba.com> From: Patrik Jakobsson Date: Fri, 19 Mar 2021 16:04:14 +0100 Message-ID: Subject: Re: [PATCH] drm/gma500: use NULL instead of using plain integer as pointer To: Yang Li Cc: David Airlie , Daniel Vetter , dri-devel , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 9:27 AM Yang Li wrote: > > This fixes the following sparse warnings: > drivers/gpu/drm/gma500/psb_drv.c:303:56: warning: Using plain integer as > NULL pointer > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Applied to drm-misc-next Thanks Patrik > --- > drivers/gpu/drm/gma500/psb_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c > index 0bcab06..c2aab62 100644 > --- a/drivers/gpu/drm/gma500/psb_drv.c > +++ b/drivers/gpu/drm/gma500/psb_drv.c > @@ -303,7 +303,7 @@ static int psb_driver_load(struct drm_device *dev, unsigned long flags) > > ret = -ENOMEM; > > - dev_priv->mmu = psb_mmu_driver_init(dev, 1, 0, 0); > + dev_priv->mmu = psb_mmu_driver_init(dev, 1, 0, NULL); > if (!dev_priv->mmu) > goto out_err; > > -- > 1.8.3.1 >