Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp253009pxf; Wed, 17 Mar 2021 04:37:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxmFVOZ7VJbF2xmBZR5STV5FbKnAwyJvHFzygjUT86RejI1QDwThGapHx8lBRvU5Y05bb9 X-Received: by 2002:a17:906:229b:: with SMTP id p27mr36105986eja.287.1615981040670; Wed, 17 Mar 2021 04:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615981040; cv=none; d=google.com; s=arc-20160816; b=SQmh3v3c2bwjLQDv37EPF6A94zPm2rYGCWAw0474Bi7CRA/b5dH+y7a7exG8fPtGmM l7ohPDOnDxjFyCtOU3AZSTFigY8+qO4n0uwVO4wVe/JgJsJxwFCKCDUJ7fpl8W7lIXu6 cUrt+FlRdCXNFUvqqedCbxWJQXJsljxYM+Wq2+WJT9Xt38Us0DN1XuRVblTN8pc5VZ/C Ey+RCBvO0x7YjP0mQiHTXSiRumvl2WfWqt89M2l1x6H9pzYHXYBZBxkJ/EgY4TPaRfMR BzV6cpCjYucgaRMaC15XaURq97yanVlp/CAEnXuSRpAWP2Jaiq7sLU843PCFLFnBtlMy KG/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SSsIh3B2cYa7hanuOBdoPO7qzqUOsSDVhxk2m9nUtdQ=; b=RSd5wQPT9Yl5K/rnSJgQCpTLWSIUuSw9BpVSn1vmlJRcIpGKByGEQ+fqv8HFQuH43J aYmyiKX71ZP8oqflPUc8FAUZhvXZxItNJp3V+nQIrr71SmXezyLHO2zP180AAbxUOzzY kGxFco8dzfX2u1Mfd5ymUlCYILpEovnfzRdJPMgb1BfEaZRWjThkhWhdnf3H8V9QGPBZ GFOObF5U88j0acT4vV7fch8NSDSKhHcwWuozD+UVf5Qkrnj/vjCIy/ToirOufibvF+/K aZ1PvgdraoBbwFvwDQqswv8N0RlCY/7Q3I+Sm3DpjN/jP5g/nNbh71qS68+oPMxmEhzE DW+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=e2SkXGEs; 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=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si15774535eje.173.2021.03.17.04.36.57; Wed, 17 Mar 2021 04:37:20 -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=@alien8.de header.s=dkim header.b=e2SkXGEs; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231393AbhCQLdm (ORCPT + 99 others); Wed, 17 Mar 2021 07:33:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231367AbhCQLdl (ORCPT ); Wed, 17 Mar 2021 07:33:41 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 620C7C06174A; Wed, 17 Mar 2021 04:33:41 -0700 (PDT) Received: from zn.tnic (p200300ec2f094a001c9658046b27d853.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:4a00:1c96:5804:6b27:d853]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 7B9A91EC032C; Wed, 17 Mar 2021 12:33:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1615980819; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=SSsIh3B2cYa7hanuOBdoPO7qzqUOsSDVhxk2m9nUtdQ=; b=e2SkXGEsgADJZKro3WDeMerU4HBghf+AImuifQZfDsyyzoAnLw8TMCPY7XI4FLqAiFBAtO 89sDk0kIi5g95/jPNjNru6+vYUvCPmYO1c6iE37MQTwkpa3/W/1le3HZ0iXGYHkh5lxY39 EEe0cNEp49IAh+q5hOFiXOnUqsbSauY= Date: Wed, 17 Mar 2021 12:33:37 +0100 From: Borislav Petkov To: Yang Li Cc: tony.luck@intel.com, qiuxu.zhuo@intel.com, mchehab@kernel.org, james.morse@arm.com, rric@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] EDAC: use NULL instead of using plain integer as pointer Message-ID: <20210317113337.GA25069@zn.tnic> References: <1615967245-35819-1-git-send-email-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1615967245-35819-1-git-send-email-yang.lee@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 03:47:25PM +0800, Yang Li wrote: > This fixes the following sparse warnings: > drivers/edac/sb_edac.c:433:10: warning: Using plain integer as NULL > pointer > drivers/edac/sb_edac.c:499:10: warning: Using plain integer as NULL > pointer > drivers/edac/sb_edac.c:570:10: warning: Using plain integer as NULL > pointer > drivers/edac/sb_edac.c:614:10: warning: Using plain integer as NULL > pointer > drivers/edac/sb_edac.c:680:10: warning: Using plain integer as NULL > pointer > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > drivers/edac/sb_edac.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c > index 93daa42..a99df55 100644 > --- a/drivers/edac/sb_edac.c > +++ b/drivers/edac/sb_edac.c > @@ -433,7 +433,7 @@ struct sbridge_pvt { > > static const struct pci_id_table pci_dev_descr_sbridge_table[] = { > PCI_ID_TABLE_ENTRY(pci_dev_descr_sbridge, ARRAY_SIZE(pci_dev_descr_sbridge), 1, SANDY_BRIDGE), > - {0,} /* 0 terminated list. */ > + {NULL,} /* 0 terminated list. */ Why does this matter for list terminators? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette