From mboxrd@z Thu Jan 1 00:00:00 1970 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 8A079371CF9 for ; Mon, 29 Jun 2026 06:06:13 +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=1782713174; cv=none; b=kxb/uYqgCwBw5GjOX/RRQwrrgtFNFXSZENm00OgxZ/DJ8MAzyMb6l1rvgrjoEjOaskkGnc/01ynGd7JHSPsJ/MBgId38WMt0mCK6lcINdhA2Q7Mw60xZYRBfcqCSMBoaWe9ePB7FS76qtg4wJtFB6Pc2oCk+WQLKuEW3V5RNxIQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782713174; c=relaxed/simple; bh=G+HHkUbY5JFrJt1E3ApSBMbQCJTdDST2bgN4uQWSVxM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iJH90Ujz8Dl+pHUtGZ4jPaZstGUlmQlQ2ppi2mcpvLMLE3WEzCwOFSY18XeIOrvfiVkazB9KnmIujgVMPzz5dj6qVfP6KCK5RjA3qpzmW4G8Lero1AsPGBiHDpjunNWrZ3zGwkgNC2e4fzJajXWcUwTqxdVY+a8o3uqZNyrC0/I= 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=kzCExzDE; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=kzCExzDE; 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="kzCExzDE"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="kzCExzDE" 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 0BC6E759A8; Mon, 29 Jun 2026 06:06:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1782713172; 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: in-reply-to:in-reply-to:references:references; bh=/95iKVZsIYtDbEnUrCsbCCL4pOeDECx3GDm6GGUfKAE=; b=kzCExzDEdqYe+mfxZ0CEvQh5mRgQh49FXGc5roLDZnQHgn3ZV1E+4XQFtHCdqsnyxqObF2 xJ9tuKQ4FFhTxVHFcWKUty86fJSk+Wap4J6TGC/n64f/Flt/DrWCq/JVAmplkLuT8CVOow 1Er0BF1L5iuIGnR4dp4I1MTKxBuXB1g= Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1782713172; 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: in-reply-to:in-reply-to:references:references; bh=/95iKVZsIYtDbEnUrCsbCCL4pOeDECx3GDm6GGUfKAE=; b=kzCExzDEdqYe+mfxZ0CEvQh5mRgQh49FXGc5roLDZnQHgn3ZV1E+4XQFtHCdqsnyxqObF2 xJ9tuKQ4FFhTxVHFcWKUty86fJSk+Wap4J6TGC/n64f/Flt/DrWCq/JVAmplkLuT8CVOow 1Er0BF1L5iuIGnR4dp4I1MTKxBuXB1g= 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 BF4AD779A8; Mon, 29 Jun 2026 06:06:11 +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 f5QtLVMLQmrkEQAAD6G6ig (envelope-from ); Mon, 29 Jun 2026 06:06:11 +0000 From: Juergen Gross To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Juergen Gross , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: [PATCH 07/32] x86/msr: Remove wrmsr_safe() Date: Mon, 29 Jun 2026 08:04:58 +0200 Message-ID: <20260629060526.3638272-8-jgross@suse.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260629060526.3638272-1-jgross@suse.com> References: <20260629060526.3638272-1-jgross@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Flag: NO X-Spam-Score: -6.80 X-Spamd-Result: default: False [-6.80 / 50.00]; REPLY(-4.00)[]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.com:mid,imap1.dmz-prg2.suse.org:helo]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_SEVEN(0.00)[8]; RCVD_TLS_ALL(0.00)[] X-Spam-Level: wrmsr_safe() has no users left. Delete it. Signed-off-by: Juergen Gross --- arch/x86/include/asm/msr.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h index 2f41a9289d79..6fb7125608c7 100644 --- a/arch/x86/include/asm/msr.h +++ b/arch/x86/include/asm/msr.h @@ -242,14 +242,6 @@ static __always_inline void wrmsrns(u32 msr, u64 val) : : "c" (msr), "a" ((u32)val), "d" ((u32)(val >> 32))); } -/* - * Dual u32 version of wrmsrq_safe(): - */ -static inline int wrmsr_safe(u32 msr, u32 low, u32 high) -{ - return wrmsrq_safe(msr, (u64)high << 32 | low); -} - struct msr __percpu *msrs_alloc(void); void msrs_free(struct msr __percpu *msrs); int msr_set_bit(u32 msr, u8 bit); -- 2.54.0