From nobody Thu Dec 18 09:46:14 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 585661714B5 for ; Wed, 18 Dec 2024 08:02:35 +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=1734508957; cv=none; b=CnoZiUwesLhg3UCyE+yscn+yNsnUqD41yY0I5X2ga0ryhiICpa2WDK9T/m476k8vtZtuyT5M63yuMrv6cc7poUWpQH1d00yWM0NZ4yiefWghSL1g0VhmUSSJ6pG6B5Br3HNzIYtFMD5N+O9k39yFYCR19va/PZTgkce1pQ72BTk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734508957; c=relaxed/simple; bh=o+z2N1C/6JqNi14dH8PeqhNZ874BwRcxKCciEAYh/Ks=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M6rWJniyh21iNTSOenQL4wzE8237syah5TLFtYLVBubNa95N3wtCsEHCbTGnR1bzAwc9tj9EE2JDevRrxd8W+vY0KMD9G48uDInVIuK3SIWGfgnW1u2cjFrhfAz6L1F+/6m+Bl/rNoVSpPCxCc3FquhbrjQgOIwaXZJqy7xZiB8= 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=sxgPTz8W; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=sxgPTz8W; 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="sxgPTz8W"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="sxgPTz8W" Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104: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 499F11F397; Wed, 18 Dec 2024 08:02:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1734508953; 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=5qV54WxmcmQ9+UIxu46fW+p65xmAyME7UI+eO/MVx3A=; b=sxgPTz8WjHQFqYww5mdSlKNyhwqh9eIj+Dpu8c6wc/Pn6UG50O6iz6FHNeQzWsT7Xrcfrv iLCcsndkTzPBJGit355YmvOPLcdyr/AdTVPHqKGDy3b6od2xv2/Lyr2/awbnl7cUS/NN5j QBjF4TT69prTIsCJfh6zx9RtqSB+V50= Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.com header.s=susede1 header.b=sxgPTz8W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1734508953; 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=5qV54WxmcmQ9+UIxu46fW+p65xmAyME7UI+eO/MVx3A=; b=sxgPTz8WjHQFqYww5mdSlKNyhwqh9eIj+Dpu8c6wc/Pn6UG50O6iz6FHNeQzWsT7Xrcfrv iLCcsndkTzPBJGit355YmvOPLcdyr/AdTVPHqKGDy3b6od2xv2/Lyr2/awbnl7cUS/NN5j QBjF4TT69prTIsCJfh6zx9RtqSB+V50= 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 F3F0F137CF; Wed, 18 Dec 2024 08:02:32 +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 b3EIOpiBYmcrLQAAD6G6ig (envelope-from ); Wed, 18 Dec 2024 08:02:32 +0000 From: Juergen Gross To: linux-kernel@vger.kernel.org Cc: torvalds@linux-foundation.org, Juergen Gross , Peter Zijlstra , Josh Poimboeuf , Jason Baron , Steven Rostedt , Ard Biesheuvel , Stephen Rothwell Subject: [PATCH] x86/static-call: fix 32-bit build Date: Wed, 18 Dec 2024 09:02:28 +0100 Message-ID: <20241218080228.9742-1-jgross@suse.com> X-Mailer: git-send-email 2.43.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-Rspamd-Queue-Id: 499F11F397 X-Spam-Score: -3.01 X-Rspamd-Action: no action X-Spamd-Result: default: False [-3.01 / 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)[]; R_DKIM_ALLOW(-0.20)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCPT_COUNT_SEVEN(0.00)[9]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:dkim,suse.com:mid,suse.com:email,imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; DKIM_TRACE(0.00)[suse.com:+] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Flag: NO X-Spam-Level: Content-Type: text/plain; charset="utf-8" In 32-bit x86 builds CONFIG_STATIC_CALL_INLINE isn't set, leading to static_call_initialized not being available. Define it as "0" in that case. Reported-by: Stephen Rothwell Fixes: 0ef8047b737d ("x86/static-call: provide a way to do very early stati= c-call updates") Signed-off-by: Juergen Gross Acked-by: Peter Zijlstra (Intel) --- include/linux/static_call.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/linux/static_call.h b/include/linux/static_call.h index 785980af8972..78a77a4ae0ea 100644 --- a/include/linux/static_call.h +++ b/include/linux/static_call.h @@ -138,7 +138,6 @@ #ifdef CONFIG_HAVE_STATIC_CALL #include =20 -extern int static_call_initialized; /* * Either @site or @tramp can be NULL. */ @@ -161,6 +160,8 @@ extern void arch_static_call_transform(void *site, void= *tramp, void *func, bool =20 #ifdef CONFIG_HAVE_STATIC_CALL_INLINE =20 +extern int static_call_initialized; + extern int __init static_call_init(void); =20 extern void static_call_force_reinit(void); @@ -226,6 +227,8 @@ extern long __static_call_return0(void); =20 #elif defined(CONFIG_HAVE_STATIC_CALL) =20 +#define static_call_initialized 0 + static inline int static_call_init(void) { return 0; } =20 #define DEFINE_STATIC_CALL(name, _func) \ @@ -282,6 +285,8 @@ extern long __static_call_return0(void); =20 #else /* Generic implementation */ =20 +#define static_call_initialized 0 + static inline int static_call_init(void) { return 0; } =20 static inline long __static_call_return0(void) --=20 2.43.0