[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] x86/xen: Fix sparse warning in enlighten_pv.c


  • To: Juergen Gross <jgross@xxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx
  • From: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
  • Date: Mon, 15 Dec 2025 14:29:59 -0500
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=G4Te4BEmegoyq/QJD9RdTuKf2jsNZuNz/mwX+Tm6LJo=; b=df45QB0AX/tB30gRnGMEXqqAxDPevSSBLEdlfaMFeY5K/uBMOZliRnkqvlY8LQENFSxN78o7v0d/4uYz4ykoAqJi5z/NYP1iKYF+be5kyHHMLCIbWy4GeM8J/Zeff4VOFc6ktAmRe2LCR2g3l67vh3wCL8hJJSficB+Fh7iZ8o4oyy8LkyMaiCE8JbPEZ4a2vEMCc0TC5m4eykThrsl78pYy8V+iW8/wDmV4vChXoRdYym0v9/hVmMNyZ6TaWNGkLSUOlQsjupFCl1zcZBe50BhhAvqbCiy5p8vEWLwsqNp/fO4Awq3BgqTJiyfg8AIX9sekvd8yh28YoOorCicOLQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yltADPkiFEBtpvisHb6zgY38VC+draL7rdrj+XiqSs9S2PubNeddo1sEMypYoHDVM0Bo/c2m2HX3gLll46CPXoCvIcuINGwCWZ6DcyVij4WSHGNxdiKoeFhx9wn0Xy8N9JcV5ULc+pjeWYMcHymKTGPMoEd0FHAJ6XgchCJJaO4ZeWkujXscMb8UNiS+lnKyl4F9Q4QBEJO0cDfRt4tPREhViFntiVvGPKte0O6ZfYQBgOoK9H5qZoXEEF/IvlZNg2AxrLTSBZdj7lg6gYm+Cmizluqiyeb4rdS+U0X9crjkjcpQYRw3WKk4YVTfNM49dOpFawr0FMRiCBIoY6GbJg==
  • Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, kernel test robot <lkp@xxxxxxxxx>
  • Delivery-date: Mon, 15 Dec 2025 19:30:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>



On 12/15/25 6:51 AM, Juergen Gross wrote:
The sparse tool issues a warning for arch/x76/xen/enlighten_pv.c:

    arch/x86/xen/enlighten_pv.c:120:9: sparse: sparse: incorrect type
      in initializer (different address spaces)
      expected void const [noderef] __percpu *__vpp_verify
      got bool *

This is due to the percpu variable xen_in_preemptible_hcall being
exported via EXPORT_SYMBOL_GPL() instead of EXPORT_PER_CPU_SYMBOL_GPL().

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: 
https://lore.kernel.org/oe-kbuild-all/202512140856.Ic6FetG6-lkp@xxxxxxxxx/
Fixes: fdfd811ddde3 ("x86/xen: allow privcmd hypercalls to be preempted")
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Reviewed-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>





 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.