Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1353008lqh; Mon, 6 May 2024 05:29:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/GmCvKL7hiSEea1Pqd4/TuCk4zrhReemtvVzL9Rr3CGz3nx3hmToT4xBujGMBWTO3C5DiFGM0pBWRqzy2Eg4bQma4YrpXdIuBuXlO5w== X-Google-Smtp-Source: AGHT+IFRlURi6xpAKVjnl0YCHXfWYNbEK6a3VcAMhyHuhFpsdAu9wYezE/7rzNgR7dfRsv1E49FM X-Received: by 2002:a05:6a21:4986:b0:1af:8104:46e0 with SMTP id ax6-20020a056a21498600b001af810446e0mr10669791pzc.49.1714998549736; Mon, 06 May 2024 05:29:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714998549; cv=pass; d=google.com; s=arc-20160816; b=LUHQAUa8bKsNSoS7umeuCOw1HZ9ydZL1z8iicEAU179xyBk6cS03RoKiuIJyDTedXN 4dpexK+76rLkzuI90igZQyhD2CvwM7UGogcw80V+uNWO1aljNyuezJs4PnVU9zTD+dB0 UQMrAhiMfRZ5p6ndjeVt4wWIBZ4SMkcIg+0P2f6Dz31rcTdbLx8m4N/MjAcGJioRi2zD Y2I1GTnIXp8MP/4Okl97rGVAsxc5chIzkPMFYuecPYiNSky7n6OJ7YTuusloWp4Ji8zx s2aCCiKV6iYJkDRWerofsIsY55lM/pmlupyGf8cUJVxS+K7dkh7Vm8hh4JT6v6XfvJiE 83lQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=LeqLwqCwPVoiGMNo/3LvCtHz1OtAMBhnxyoLHrUggh8=; fh=b+GcvI4Pcayc3mqYGvUYD/O2AEP50jeeZwnwIXNAGVQ=; b=pqSMLGOCotxRvKoY0K8c+M+Kwbs5WWKDoSq6/oEygMcPkPRoKYDp4qUFN2y3eXyxhn IRuiUtNayV/v7kpz9q4vY7NCAuJ/JrKpi2/z2z3wDrJ8KrNNNA85JZ6yewYLEh2hje94 6KDURaGesV3U8vfzk7oJ817Y3wz0b7JKgy4rlb8/VKWzwNMR33nhcOpuXkSZppK7Y1IE +raMlUj/hYPGtHbtt/EfUZYgimJo5ecmd5R6ndlRchmfU62xw/F19IpyZtj8jaBwyS6U XVNcnenLqYryQhe5XtG0fGbT2g0DnM3MBVsTfmKGyIsyAWdgUAPLTEyRnWYi3r1wN39z ZVpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CQN4OuUa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169810-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b11-20020a056a000ccb00b006f459785639si4789772pfv.159.2024.05.06.05.29.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 05:29:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CQN4OuUa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169810-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AEAE22879D3 for ; Mon, 6 May 2024 12:28:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 926E2143C52; Mon, 6 May 2024 12:28:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CQN4OuUa" 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 BF824143878 for ; Mon, 6 May 2024 12:28:52 +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=1714998532; cv=none; b=JWPRnjiMVrWVEgoI/JWFrPRAM9J99GbG29APKSwEYz7PXNQ0ZeNHgWRipeNJ9/c8zhI5EowKhd6oxJzgDbFR0Qjj38z0tIir/EP/tKSdP7fMlnMETY9IQ6xFGTexuv3MfNwLpwaDmo0J30PhgukHRau3JseSkmuTTMjXbV86UWI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714998532; c=relaxed/simple; bh=VJIWFsG1cEJbWujrWaBLdrsD0pmz5MwKtoHH7+MTl4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qqbGtPfvk/dIcygIvxSUsvRtzlJ6fEpB2t0zFfc5mX2264+E+C8oCA+66nj+/1c+2VoMasubHShfcBzCBpkzmebHehELH9rPuSHFQTA8hYRCVVPVraN5gZ6sPDmE+SZa+w80cXyWwmFvd8qRC09Y8qpEGQvHfmZiMkdS7hW6MQM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CQN4OuUa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84076C116B1; Mon, 6 May 2024 12:28:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714998532; bh=VJIWFsG1cEJbWujrWaBLdrsD0pmz5MwKtoHH7+MTl4c=; h=From:To:Cc:Subject:Date:From; b=CQN4OuUafFIUjUF4Ecrqv69EzW862+6Pc2/MQzRVJyS+ryV2r/eDMAFK4XIUj4C/V ZE+FtNH01HaHoK2N4WfmS9QquQ3RYIVmMwC9/WmK9oiewr+7SNerZb4rB7/ta2Dwp7 QR10hrZCNJVciLSadaRxHz4ASN/HRgfB7Wa6BhbKpN2OihaWMoflda68SNzMIQdGXl Zr3acmUKxSw7tmRNolxduhHV+CC2zthOa/IkSmax5wAougNstqQrmbuvQF1mHNCH2B TylvkV5M9qeCQpjlCcuQBn4rnq7LnGgh7HO861czwS3OEUfvLnGaZprqrpapFq3ced uMkqfJyRbAA9g== From: Borislav Petkov To: X86 ML Cc: LKML , "Borislav Petkov (AMD)" Subject: [PATCH] x86/alternatives: Remove alternative_input_2() Date: Mon, 6 May 2024 14:28:48 +0200 Message-ID: <20240506122848.20326-1-bp@kernel.org> 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: 8bit From: "Borislav Petkov (AMD)" It is unused. Signed-off-by: Borislav Petkov (AMD) --- arch/x86/include/asm/alternative.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index 76d66bf7bfeb..1237d6647f21 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -350,20 +350,6 @@ static inline int alternatives_text_reserved(void *start, void *end) asm_inline volatile (N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \ : : "i" (0), ## input) -/* - * This is similar to alternative_input. But it has two features and - * respective instructions. - * - * If CPU has feature2, newinstr2 is used. - * Otherwise, if CPU has feature1, newinstr1 is used. - * Otherwise, oldinstr is used. - */ -#define alternative_input_2(oldinstr, newinstr1, ft_flags1, newinstr2, \ - ft_flags2, input...) \ - asm_inline volatile(ALTERNATIVE_2(oldinstr, newinstr1, ft_flags1, \ - newinstr2, ft_flags2) \ - : : "i" (0), ## input) - /* Like alternative_input, but with a single output argument */ #define alternative_io(oldinstr, newinstr, ft_flags, output, input...) \ asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) \ -- 2.43.0