From nobody Fri Jun 12 17:17:16 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 34F613FF8BA for ; Wed, 13 May 2026 17:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778691927; cv=none; b=GlLyj0HTAOK+NcBmBlFvvg1B/H4I/6h2o4wz+pUN7aNt+2SQzi4rBUjlhO4mP6WWEjKkRylRFL3uQHfQTCdmcPlxrj2w+TrbDoKsqNrLj4FmcLRou1YicWU11O15lubusruQDFS8tU9tFxflUQBaQ+FWAsGP03YO8YrYR2aWiBA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778691927; c=relaxed/simple; bh=0Vp0J2xZGuPm0yf8BhNW8ndP2pOAgT/T6BSOMDtW8fo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=SbZfm9IgdW35sY61dohCcoG2YBjAkFpPZXFEkTkAoBcvDtBzU4hyD/pOWOIx/bHuXdUsNMcuYja27+7zztwzD+kS4A8Ud8uuma4PWYST0G40Wg+lf1fomEEVK1F+elPpC0f+e3LbClgOAhH5bQedM2XJ7uKNgD0FpyiLfSoZvHg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Vren/XjV; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Vren/XjV" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778691925; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AfFXymg40zb8Z5GOqBiuqwUpUAiAOzfO6XQRZDj5nXU=; b=Vren/XjVyLW9S5fflUY9nko2+LdUNm/1u9Cm+XQg7qhYu2SYg82N2zunYRwT21aSVWDS4R G3bHMlI2En5ZD0b2Xp/bvczHf73tcnFL/pZYdGk2m8f8QigIHvPvOuTYNXLPMK8HU6EBFB OzNYpnOOwx0AZouMKqAMz0QsoQ2whKQ= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-196-ZyioPJg1O2GEcut7JGg63g-1; Wed, 13 May 2026 13:05:23 -0400 X-MC-Unique: ZyioPJg1O2GEcut7JGg63g-1 X-Mimecast-MFC-AGG-ID: ZyioPJg1O2GEcut7JGg63g_1778691922 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 051BC195608B; Wed, 13 May 2026 17:05:22 +0000 (UTC) Received: from virtlab1023.lab.eng.rdu2.redhat.lab.eng.rdu2.redhat.com (virtlab1023.lab.eng.rdu2.redhat.com [10.8.1.187]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 78CB819560A3; Wed, 13 May 2026 17:05:21 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org Cc: x86@kernel.org, chang.seok.bae@intel.com Subject: [PATCH] x86, include: remove unused header Date: Wed, 13 May 2026 13:05:20 -0400 Message-ID: <20260513170520.713643-1-pbonzini@redhat.com> 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-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Content-Type: text/plain; charset="utf-8" The inst.h file has been sitting unused in arch/x86/include/asm since 2020 (last use of the macros removed in commit d7866e503b, last inclusion in commit eb3621798). Drop it. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/inst.h | 148 ------------------------------------ 1 file changed, 148 deletions(-) delete mode 100644 arch/x86/include/asm/inst.h diff --git a/arch/x86/include/asm/inst.h b/arch/x86/include/asm/inst.h deleted file mode 100644 index e48a00b3311d..000000000000 --- a/arch/x86/include/asm/inst.h +++ /dev/null @@ -1,148 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * Generate .byte code for some instructions not supported by old - * binutils. - */ -#ifndef X86_ASM_INST_H -#define X86_ASM_INST_H - -#ifdef __ASSEMBLER__ - -#define REG_NUM_INVALID 100 - -#define REG_TYPE_R32 0 -#define REG_TYPE_R64 1 -#define REG_TYPE_INVALID 100 - - .macro R32_NUM opd r32 - \opd =3D REG_NUM_INVALID - .ifc \r32,%eax - \opd =3D 0 - .endif - .ifc \r32,%ecx - \opd =3D 1 - .endif - .ifc \r32,%edx - \opd =3D 2 - .endif - .ifc \r32,%ebx - \opd =3D 3 - .endif - .ifc \r32,%esp - \opd =3D 4 - .endif - .ifc \r32,%ebp - \opd =3D 5 - .endif - .ifc \r32,%esi - \opd =3D 6 - .endif - .ifc \r32,%edi - \opd =3D 7 - .endif -#ifdef CONFIG_X86_64 - .ifc \r32,%r8d - \opd =3D 8 - .endif - .ifc \r32,%r9d - \opd =3D 9 - .endif - .ifc \r32,%r10d - \opd =3D 10 - .endif - .ifc \r32,%r11d - \opd =3D 11 - .endif - .ifc \r32,%r12d - \opd =3D 12 - .endif - .ifc \r32,%r13d - \opd =3D 13 - .endif - .ifc \r32,%r14d - \opd =3D 14 - .endif - .ifc \r32,%r15d - \opd =3D 15 - .endif -#endif - .endm - - .macro R64_NUM opd r64 - \opd =3D REG_NUM_INVALID -#ifdef CONFIG_X86_64 - .ifc \r64,%rax - \opd =3D 0 - .endif - .ifc \r64,%rcx - \opd =3D 1 - .endif - .ifc \r64,%rdx - \opd =3D 2 - .endif - .ifc \r64,%rbx - \opd =3D 3 - .endif - .ifc \r64,%rsp - \opd =3D 4 - .endif - .ifc \r64,%rbp - \opd =3D 5 - .endif - .ifc \r64,%rsi - \opd =3D 6 - .endif - .ifc \r64,%rdi - \opd =3D 7 - .endif - .ifc \r64,%r8 - \opd =3D 8 - .endif - .ifc \r64,%r9 - \opd =3D 9 - .endif - .ifc \r64,%r10 - \opd =3D 10 - .endif - .ifc \r64,%r11 - \opd =3D 11 - .endif - .ifc \r64,%r12 - \opd =3D 12 - .endif - .ifc \r64,%r13 - \opd =3D 13 - .endif - .ifc \r64,%r14 - \opd =3D 14 - .endif - .ifc \r64,%r15 - \opd =3D 15 - .endif -#endif - .endm - - .macro REG_TYPE type reg - R32_NUM reg_type_r32 \reg - R64_NUM reg_type_r64 \reg - .if reg_type_r64 <> REG_NUM_INVALID - \type =3D REG_TYPE_R64 - .elseif reg_type_r32 <> REG_NUM_INVALID - \type =3D REG_TYPE_R32 - .else - \type =3D REG_TYPE_INVALID - .endif - .endm - - .macro PFX_REX opd1 opd2 W=3D0 - .if ((\opd1 | \opd2) & 8) || \W - .byte 0x40 | ((\opd1 & 8) >> 3) | ((\opd2 & 8) >> 1) | (\W << 3) - .endif - .endm - - .macro MODRM mod opd1 opd2 - .byte \mod | (\opd1 & 7) | ((\opd2 & 7) << 3) - .endm -#endif - -#endif --=20 2.52.0