Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp415608lqh; Fri, 31 May 2024 05:35:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUs0ZmvJbtqiM0eWvFiGbdoolZJgcQa39HsreRu4idNqQd6Jcpblz3cJJEAMAEbTqNHBdzi5V9HiKyVFyO5EeBwWzqzAZC7Bl775fhjoA== X-Google-Smtp-Source: AGHT+IFum+T1/gg3Bg/7VGQsMKi4bGjYLPt8GTlwxffZ55r5hpQOk2a8HTifUbxCyIkYGbP08nMj X-Received: by 2002:a05:6102:58d0:b0:48b:a7ec:f452 with SMTP id ada2fe7eead31-48bc20a3368mr1774874137.7.1717158953972; Fri, 31 May 2024 05:35:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717158953; cv=pass; d=google.com; s=arc-20160816; b=T2R1WiM2gpvSxUbhybON7anQMkLKwohKmDx7tn7Y4MG+0mD1lHzbD9xMupbsV+qwys 2dobT/MCKCwCwdRlysBEWrJToisaYghtzgqc3SWuurFCUr2GcPYAYYyoIvd9G9cMPOFc BomoFFbBvMub+DNNX3HWEiRFbhZjxgDIHx+mloYBbgM+WKi5aUpzTwHul/tFJiZgV1fP TC8C6HN9IoAWuorwzwotR3AzPW9/TKmZFwpWZnJlj7Xl+HAaJZwGq1aaYPXagSYDzxgQ +gwABRkwGo6dtWfUynEvZw/gW62h7Gt7/OtUr6D2UvdHI7o1a3X6EFlUfcLdjJbocMUf V4ZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QJVPcouvyH4o4oiqnAfXtn16PpY2dCgypFWLkJkTNWs=; fh=b+GcvI4Pcayc3mqYGvUYD/O2AEP50jeeZwnwIXNAGVQ=; b=JYNUyucY0/EyF+O/C6F4xwwyUuJDKWGfKvVaaHjWFZu84baWc4g+K5zOd7brMyPUww VVUDwjjIb6pfzLoWI6nzcSsWWWizoh789pnCVuc2OG/oWQ6reMFG79pxRoOVtYLoO8JN BeO9oO+ht6YZ2eVEtWMj5Ft2fY+i89YY3n3mwBmrFi+pkLoD8S2YXD4EKhPQEyzUowiP YSSR7p6f/eywYienChbSRXLDfsiAoq7uYwZZHr8kniQo85Z2H3gt6e8LohMsmdCt/1PA YzAihvYZAMn06PRQxefm4ALmxx1RQIMuZPF3m7EV7s+HaFDvEj+9x61A4Iufku61daBg SDcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lko8zPPA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196787-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f3064cb1si182757485a.373.2024.05.31.05.35.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 05:35:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196787-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lko8zPPA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196787-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AC34C1C245B1 for ; Fri, 31 May 2024 12:35:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5ACF0158D69; Fri, 31 May 2024 12:35:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lko8zPPA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86D93158844 for ; Fri, 31 May 2024 12:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717158917; cv=none; b=jAwuIskMj5LA2ttyJGncLPacIlaM9AhkxZr8Cn9QFboKiJjRhbuDaXr2m3QvMXBunE5/quASJ5D4VfsdQw95YHK4CyROjTEwygjl1MC7VqdDdJrBrjTT+ryuFCHSLCDxxe5lrltWe7uQqQRFUOmkgvI5Nf1oyXOL9fQp2gJNo7s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717158917; c=relaxed/simple; bh=9t/V6lr+JXo0ko6oV1wFcYKchLmN9d+xrlxuBH0B4uw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=V3YBoNiq8QoflaMOBHexd47dbDaw1YUL5q3bttEYUOMXZIT0rES04R7nOPcZtHZDIzkJjrIv/TKT6ly+6+v1zCtwqkLjJu3MoXmxd8SjpA0PKmRnLfklTqizOrhtXENlLoqAR3ZfP0weRmo9h5rMQwpXeaizvZo33hdL2knWreI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lko8zPPA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20FDBC32786; Fri, 31 May 2024 12:35:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717158917; bh=9t/V6lr+JXo0ko6oV1wFcYKchLmN9d+xrlxuBH0B4uw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lko8zPPAPktjqk+dyMkOTnRhDoggyTctDZErDEUn+DmFwHj6kOJbpgxFRczveQ6CV DfvY+ez/OYnFZw2X82y25U5EMpUlgKV4YfiPCBrhV30/GfvxGCxt2BYhB1/bz2PtPY xDsqPdj5WIcdb8JHPnDYQh/D5Z2iKZXBCXip3hcsVbgGZtBYEXbTSLNk18+DwoTNy0 vB6+7vy+aKfyM5MKzSgtWJ7N84UJNstAja/Y5BTotOrbQBP1hEtXyOP7dl0Gyx9ljw o2VTbvbKJBIJ5hHKhs0DxBh+GQ8Q1wZKmWhO8eFglFeWSSRGVfnc5k/2naQwOi+eiw TNmg7fZVQMDmw== From: Borislav Petkov To: X86 ML Cc: LKML , "Borislav Petkov (AMD)" Subject: [PATCH 01/14] x86/alternative: Zap alternative_ternary() Date: Fri, 31 May 2024 14:34:58 +0200 Message-ID: <20240531123512.21427-2-bp@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240531123512.21427-1-bp@kernel.org> References: <20240531123512.21427-1-bp@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Borislav Petkov (AMD)" Unused. Signed-off-by: Borislav Petkov (AMD) --- arch/x86/include/asm/alternative.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index ba99ef75f56c..6db78909180a 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -271,9 +271,6 @@ static inline int alternatives_text_reserved(void *start, void *end) #define alternative_2(oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2) \ asm_inline volatile(ALTERNATIVE_2(oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2) ::: "memory") -#define alternative_ternary(oldinstr, ft_flags, newinstr_yes, newinstr_no) \ - asm_inline volatile(ALTERNATIVE_TERNARY(oldinstr, ft_flags, newinstr_yes, newinstr_no) ::: "memory") - /* * Alternative inline assembly with input. * -- 2.43.0