From nobody Tue May 7 14:27:37 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=canonical.com ARC-Seal: i=1; a=rsa-sha256; t=1595325774; cv=none; d=zohomail.com; s=zohoarc; b=molO5GcyGMrlL0uOG08imZ7vRyPRu3TJzsFrt4hYfucKD7kOL2u2cc53WGQte9Vy4pEeogh+vBRk8wpTv9nIFqdYhv08tp4W5VTEJy7ke5qR5mBZIbyzDlrHlxEIu/JuQu2R7Si0zkF+zCRqD4cByGllLvlIbWkP1bZ335hl47s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1595325774; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Jka4ooIKkowMWc17CKwhf/YGAQEIrEQ4vxZlffxcdgE=; b=n6uRCD5ni2OPPuznJarWq+91bLTASFfXCmx3Qykz4fnxgRfFsw1LWC+ayXeSR+46HOEjAagef2823hGa28BKW5E4bq7qbT49bM/cqVLrxiQoT08qSHr+pKI0QOiWyVwOIYxD3ir0apDSIr+wNx6TN8jS5Mpk8oibQ0cnHr2cHRQ= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1595325774534616.4795125420522; Tue, 21 Jul 2020 03:02:54 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jxp6V-0002CZ-HS; Tue, 21 Jul 2020 10:02:31 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jxp6U-0002CU-4L for xen-devel@lists.xenproject.org; Tue, 21 Jul 2020 10:02:30 +0000 Received: from youngberry.canonical.com (unknown [91.189.89.112]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 491d8a46-cb39-11ea-a09c-12813bfff9fa; Tue, 21 Jul 2020 10:02:29 +0000 (UTC) Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jxp6H-0000Kf-Mg; Tue, 21 Jul 2020 10:02:17 +0000 X-Inumbo-ID: 491d8a46-cb39-11ea-a09c-12813bfff9fa From: Colin King To: Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H . Peter Anvin" , xen-devel@lists.xenproject.org Subject: [PATCH][next] x86/ioperm: initialize pointer bitmap with NULL rather than 0 Date: Tue, 21 Jul 2020 11:02:17 +0100 Message-Id: <20200721100217.407975-1-colin.king@canonical.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Colin Ian King The pointer bitmap is being initialized with a plain integer 0, fix this by initializing it with a NULL instead. Cleans up sparse warning: arch/x86/xen/enlighten_pv.c:876:27: warning: Using plain integer as NULL pointer Signed-off-by: Colin Ian King Reviewed-by: Juergen Gross --- arch/x86/xen/enlighten_pv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c index c46b9f2e732f..2aab43a13a8c 100644 --- a/arch/x86/xen/enlighten_pv.c +++ b/arch/x86/xen/enlighten_pv.c @@ -873,7 +873,7 @@ static void xen_load_sp0(unsigned long sp0) static void xen_invalidate_io_bitmap(void) { struct physdev_set_iobitmap iobitmap =3D { - .bitmap =3D 0, + .bitmap =3D NULL, .nr_ports =3D 0, }; =20 --=20 2.27.0