From nobody Mon Dec 15 23:43:36 2025 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A27473D3B3 for ; Mon, 15 Dec 2025 11:51:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765799485; cv=none; b=kXo0i/Rbvw/5ut0FPh+eKHq1oLfff0/MiV7Ifiv2PE9lp2bl2DXxDMmGt+L43EQncvvMod8S/bhFxUjPJGQxHSa1MwgnwvNYK3wn0NAwaYHJI7JEWmPhPk0aulQDovPjCQXgyKEaMnI8OhL1OEfp+p+6yg+WOLqOaP9BxJgRnBY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765799485; c=relaxed/simple; bh=WdZHRNI77fa9WUT7X+irkfSf/nptUR1CBBkTS4Zpgr4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dk+LsFzatYX4UW8D6bUDIpAsk0lvBk6cXlQn+1t6uxIsKiob3aiEOTApzYbzu2Q77A3Db9eBiL7tr3IepjRDOZDfI71vi/oxVbkiJUVw11qnTa+tvitRkYgu59E787tEUoyuwxdWX9XGT+evWm8LFYS4hZ3+dA/mutT7yjwN/Rw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=j/l6OXtn; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=j/l6OXtn; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="j/l6OXtn"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="j/l6OXtn" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 546C25BD26; Mon, 15 Dec 2025 11:51:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1765799476; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=zofGwPLby7nvfeoCr3/JFRizKbFgb4qmHExK0anYVbc=; b=j/l6OXtnPlyFD+aK0AfVx+S/6mNNID4/6LFos7reMAxgwuGGFpOs7Lz/3OgUBgT/659Mh0 KmJfnQDMMqsW/C3DvVBMU406jezgjktFIjGNr7uejhhLZP3cm++683/uZ/pgBkqNYB8t4s dknWjtRlk2r9Vir12LPzyzfQIJTQx1U= Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1765799476; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=zofGwPLby7nvfeoCr3/JFRizKbFgb4qmHExK0anYVbc=; b=j/l6OXtnPlyFD+aK0AfVx+S/6mNNID4/6LFos7reMAxgwuGGFpOs7Lz/3OgUBgT/659Mh0 KmJfnQDMMqsW/C3DvVBMU406jezgjktFIjGNr7uejhhLZP3cm++683/uZ/pgBkqNYB8t4s dknWjtRlk2r9Vir12LPzyzfQIJTQx1U= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id DBACD3EA63; Mon, 15 Dec 2025 11:51:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id OVl8MzP2P2kPEAAAD6G6ig (envelope-from ); Mon, 15 Dec 2025 11:51:15 +0000 From: Juergen Gross To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Juergen Gross , Boris Ostrovsky , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , xen-devel@lists.xenproject.org, kernel test robot Subject: [PATCH] x86/xen: Fix sparse warning in enlighten_pv.c Date: Mon, 15 Dec 2025 12:51:12 +0100 Message-ID: <20251215115112.15072-1-jgross@suse.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Flag: NO X-Spam-Score: -2.80 X-Spam-Level: X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-0.997]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.com:mid,imap1.dmz-prg2.suse.org:helo]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCPT_COUNT_SEVEN(0.00)[11]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="utf-8" 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 Closes: https://lore.kernel.org/oe-kbuild-all/202512140856.Ic6FetG6-lkp@int= el.com/ Fixes: fdfd811ddde3 ("x86/xen: allow privcmd hypercalls to be preempted") Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky --- 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 4806cc28d7ca..b74ff8bc7f2a 100644 --- a/arch/x86/xen/enlighten_pv.c +++ b/arch/x86/xen/enlighten_pv.c @@ -108,7 +108,7 @@ static int xen_cpu_dead_pv(unsigned int cpu); * calls. */ DEFINE_PER_CPU(bool, xen_in_preemptible_hcall); -EXPORT_SYMBOL_GPL(xen_in_preemptible_hcall); +EXPORT_PER_CPU_SYMBOL_GPL(xen_in_preemptible_hcall); =20 /* * In case of scheduling the flag must be cleared and restored after --=20 2.51.0