From nobody Mon May 11 02:57:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 229F8C433F5 for ; Sun, 17 Apr 2022 15:42:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234331AbiDQPoy (ORCPT ); Sun, 17 Apr 2022 11:44:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234317AbiDQPov (ORCPT ); Sun, 17 Apr 2022 11:44:51 -0400 Received: from ha.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95FFF13F6B for ; Sun, 17 Apr 2022 08:42:14 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by ha.nfschina.com (Postfix) with ESMTP id 58F271E80CDD; Sun, 17 Apr 2022 23:40:16 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from ha.nfschina.com ([127.0.0.1]) by localhost (ha.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rku_9j_bI3yW; Sun, 17 Apr 2022 23:40:13 +0800 (CST) Received: from localhost.localdomain (unknown [180.167.10.98]) (Authenticated sender: liqiong@nfschina.com) by ha.nfschina.com (Postfix) with ESMTPA id 47D2B1E80CDC; Sun, 17 Apr 2022 23:40:13 +0800 (CST) From: liqiong To: Thomas Gleixner , Dave Hansen , x86@kernel.org Cc: linux-kernel@vger.kernel.org, yuzhe@nfschina.com, renyu@nfschina.com, liqiong Subject: [PATCH] arch/x86: use 'NULL' insteadof '0' as null pointer Date: Sun, 17 Apr 2022 23:41:48 +0800 Message-Id: <20220417154148.541485-1-liqiong@nfschina.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Sparse warns: "Using plain integer as NULL pointer". Use 'NULL' as null pointer. Signed-off-by: liqiong --- arch/x86/events/rapl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c index 77e3a47af5ad..7d70690fded5 100644 --- a/arch/x86/events/rapl.c +++ b/arch/x86/events/rapl.c @@ -537,11 +537,11 @@ static struct perf_msr intel_rapl_spr_msrs[] =3D { * - want to use same event codes across both architectures */ static struct perf_msr amd_rapl_msrs[] =3D { - [PERF_RAPL_PP0] =3D { 0, &rapl_events_cores_group, 0, false, 0 }, + [PERF_RAPL_PP0] =3D { 0, &rapl_events_cores_group, NULL, false, 0 }, [PERF_RAPL_PKG] =3D { MSR_AMD_PKG_ENERGY_STATUS, &rapl_events_pkg_group= , test_msr, false, RAPL_MSR_MASK }, - [PERF_RAPL_RAM] =3D { 0, &rapl_events_ram_group, 0, false, 0 }, - [PERF_RAPL_PP1] =3D { 0, &rapl_events_gpu_group, 0, false, 0 }, - [PERF_RAPL_PSYS] =3D { 0, &rapl_events_psys_group, 0, false, 0 }, + [PERF_RAPL_RAM] =3D { 0, &rapl_events_ram_group, NULL, false, 0 }, + [PERF_RAPL_PP1] =3D { 0, &rapl_events_gpu_group, NULL, false, 0 }, + [PERF_RAPL_PSYS] =3D { 0, &rapl_events_psys_group, NULL, false, 0 }, }; =20 static int rapl_cpu_offline(unsigned int cpu) --=20 2.25.1