Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp962911lqt; Fri, 7 Jun 2024 04:17:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvMgvW7pqpCtZs0a/6D7u1XVI0PeI2KdWeQ6+2+bxf566SAADc5dGVsNPu8nafmJ7V9EQqzS0DfI8wAEIw9ACIG0qrI0uszPRg/FC9jg== X-Google-Smtp-Source: AGHT+IHCqb9cgdjSBCKvZREZpdZZRFVkjdGcDANf5RuOWTZa+i+xhTAWZIRgnpCkURIHTWe6iFzf X-Received: by 2002:a9d:74c1:0:b0:6f9:641b:fdb1 with SMTP id 46e09a7af769-6f9641bfe81mr1837a34.4.1717759044159; Fri, 07 Jun 2024 04:17:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717759044; cv=pass; d=google.com; s=arc-20160816; b=WOO98OUNhaW5fKOTuEbP3X5m9zWPMlW+8xzia6wSHAanHMekXvqarpv4X5e8MbZOyu rH/zOQf3nUvoMzVZ2p+sF4oKbDsqK8zRm0hFXKocHGWhRWACxQPCeKgFrgQEP0eUb0bc qNcXIRgMJ91UEYiYMjK3K5NlSaN+vdp2G7Jh5y5e2sB8nH/9Ht5j3c5MnoeIKz7AJo54 Rj+RT1mkFDzZvTdjAxtxvK56/w2yDiwXC5KdfghlmYTcdbiZxdq3JmJA9cl5+1Wq6l8p fSQ8wrZODc4O8Nd9i6mLnoxTYque1my9IDjYas/OfAPg9j1vnm3ag4MatFsWJPyt1aDK owmQ== 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=cI2s0bMb2Uq/iNNmzb9QVJcGrPhQUhXMGykOeeSC6U5rTWDUwRl9S4AW6+/SPytWNf DpeJeGiS1dtpfI8dfHPrM7p3pseVKTa2srCGFLPt3AfnkdGxlMbIKQ3vVCgj8USlhyP3 2wTU8kLNYJ2qiI5Du4HoGhLYnvkmVsuEUkni3rRiwVqh+IHUnC6X01XFQBKTsTyFkkyL SW+LOslYmkrl+UO5f/EQBQcPGKi6NMdmbVqJRnucCiHXJNAGRGtLGOXOu2LEkIxNLMJI Z6kjlT3tiYJ05xtj21L0/U8Pgm4/UfmqUJ6nba45FGKP49NEgC1WoA+Lt1CWvEIaWEVm pUWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LjC6ZkdH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205881-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-79533334520si43641885a.545.2024.06.07.04.17.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 04:17:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205881-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=LjC6ZkdH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205881-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 9A1821C22040 for ; Fri, 7 Jun 2024 11:17:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4534F188CA4; Fri, 7 Jun 2024 11:17:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LjC6ZkdH" 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 6F4AE187346 for ; Fri, 7 Jun 2024 11:17:08 +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=1717759028; cv=none; b=Jiy4QyIC6R7Ks5XX5fqw+9tT4FFtPY79dkQqU4XLWRjy/sFGlFq5x3JpssuFnhsORnON+MUIeuKMqjZfuYVAjyolQJQwE41t5L7Rtto1BvgyB9tOxtVu2L9j5TIWwwchG+C8L0Ak3ItBx7Xk0naGpPvQB3lwFqJlM1mxMzSrKIQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717759028; c=relaxed/simple; bh=9t/V6lr+JXo0ko6oV1wFcYKchLmN9d+xrlxuBH0B4uw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YZlD+9ziNARmi5OmuQSZA6bfBjSl37ycfmPie0/yk25B04gT4l5i0gM/vWAYwtnSVmKpxGvBthxptj+feR1YJLiq8r7jCO1SQ+3DGvcEYtlUcNH3o6IfR3wGsjDzWJ/HRRyeR/gE/zj3EQlpRb0uZQBqk8YN7hM597sV+cmlSmg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LjC6ZkdH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 760FEC32786; Fri, 7 Jun 2024 11:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717759028; bh=9t/V6lr+JXo0ko6oV1wFcYKchLmN9d+xrlxuBH0B4uw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LjC6ZkdHpeOiJwD8KULbH05n5M/aDnRcFKFFGGnaWUSpRoS1uCeOolAzyzEv1hP+6 mUYhWu44yslRj8norBzhDPTrCJr+CmzPPYHm/oc53KO0If2gbXF1L1SKDaZ9ItYJcQ vA9IJsyeVt6FBK/2knj2zfmULJeOO1QSy95+jHJ3VI0QYYWQXACDQLzoifobQTTlyt SkPDGB6mxZYCDvYgabn8jbw5y+jmkeywAyfWnRuw09rorSSRQ/+6jsl6H8Eh58lHp4 P6C2i44xqMz+SyiUqgWkqpoPLHH9ASRxCSDy/Gi7lnINa/PW2b2jp3wh5vd6hRgRU1 bCAjgZS+uyZuw== From: Borislav Petkov To: X86 ML Cc: LKML , "Borislav Petkov (AMD)" Subject: [PATCH v1 01/14] x86/alternative: Zap alternative_ternary() Date: Fri, 7 Jun 2024 13:16:48 +0200 Message-ID: <20240607111701.8366-2-bp@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240607111701.8366-1-bp@kernel.org> References: <20240607111701.8366-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