Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5968619pxu; Wed, 23 Dec 2020 09:46:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUI72Slv8+ukGStdHpXoCPVxw1NCAvXLoP1pV+1pOOBKcj9T+1UGooUeQ3k8uV5xxAWeyT X-Received: by 2002:a17:906:c45:: with SMTP id t5mr24839140ejf.370.1608745616636; Wed, 23 Dec 2020 09:46:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608745616; cv=none; d=google.com; s=arc-20160816; b=kRlf9Wl3NAQ/4NxG6cQo4f3ybiw8yxmmcp0D9HPtKOWFp4a0MJzvG11HBRBDs/3/ew FxdEPlVJiVWUY+2/T8pZpmj4GjqXQ0nwuZ7qrsqPUXhuT3FNwiKPJSJ4SFRwxyLik8pj yChv/vRF4ycGzuFwKFA9ZkoUMDJ6upaigw6EiVXZ/l/Ut17HKuVq9EluQyrmpUdkLvbc qpHQwkRq369HFdxbZR6jRiNKGo9hBodsl5++v9l47FCglnS2CURwTn7DMQvBhZXc4EQ+ 0AvZ3A36j7WCeZzvxD3ECMvkyhVLDbuPBVHdFLxZDqRJHSdTdVOsxkZyM3he3FAN7YQk ZjeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=llesIGVot37gKRS0fYoO8OMN2453ECgzki7DWWJTm7o=; b=nLN/7po/KNz0Odkv+mCZ5nD3wgu2YUwIQE9iTgYSXfJ1jfBZOnJBDhkTJo6HCswDBA wu/+kKvROKiAYJvJ4bfoY+8F1Y3SdNH2mCNFmboXz/5Se7ZwXpL6ikL0zl8cH1iQwpiA DXRrtbaUB2xvg1mzl0wjebC7X+JVTdIKCwpWv3mUD/reupj9ipMVEaiP+pJy/bUkHSmJ 3YYd6TaQoEBcqK9mTuZq+X7wKiH+pJPjUcoqr14pjEbdVD1pkKS1Rv8Zhp+zvN3106Dq DFatArUZLmyoe4QDTAz3WF9iAO8BAkJcmFt4m9TJ7K/Qm6sMTRWflIo053SFakmi7Sg7 KpNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=AuKVkjQX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si14851621edy.420.2020.12.23.09.46.34; Wed, 23 Dec 2020 09:46:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=AuKVkjQX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728735AbgLWRoV (ORCPT + 99 others); Wed, 23 Dec 2020 12:44:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728686AbgLWRoF (ORCPT ); Wed, 23 Dec 2020 12:44:05 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49034C0611CA for ; Wed, 23 Dec 2020 09:42:55 -0800 (PST) Received: from zn.tnic (p200300ec2f0de600b74d534b1676c98b.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:e600:b74d:534b:1676:c98b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id DC50F1EC04B9; Wed, 23 Dec 2020 18:42:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1608745374; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=llesIGVot37gKRS0fYoO8OMN2453ECgzki7DWWJTm7o=; b=AuKVkjQXmvlzqOJHoDYidi0+R9glgKMCoqb9SyIHmt/LTXa4859aMI7BDU3ClWP9uGfE4g 6HWcI9zyycMUCi0G355gfDkHPfCb/hB9eSyNTPqHHbc3wJn4LJW8597300Tlczegw0XsK2 +m5OHdJmh7iP4PnuiKE2D08uvjke4Xs= From: Borislav Petkov To: Andy Lutomirski , Masami Hiramatsu Cc: X86 ML , LKML Subject: [PATCH v1 18/19] x86/insn: Remove kernel_insn_init() Date: Wed, 23 Dec 2020 18:42:32 +0100 Message-Id: <20201223174233.28638-19-bp@alien8.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201223174233.28638-1-bp@alien8.de> References: <20201223174233.28638-1-bp@alien8.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov Now that it is not needed anymore, drop it. Signed-off-by: Borislav Petkov --- arch/x86/include/asm/insn.h | 11 ----------- tools/arch/x86/include/asm/insn.h | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/arch/x86/include/asm/insn.h b/arch/x86/include/asm/insn.h index 088aa90e9158..f01d835b6908 100644 --- a/arch/x86/include/asm/insn.h +++ b/arch/x86/include/asm/insn.h @@ -114,17 +114,6 @@ static inline void insn_get_attribute(struct insn *insn) /* Instruction uses RIP-relative addressing */ extern int insn_rip_relative(struct insn *insn); -/* Init insn for kernel text */ -static inline void kernel_insn_init(struct insn *insn, - const void *kaddr, int buf_len) -{ -#ifdef CONFIG_X86_64 - insn_init(insn, kaddr, buf_len, 1); -#else /* CONFIG_X86_32 */ - insn_init(insn, kaddr, buf_len, 0); -#endif -} - static inline int insn_is_avx(struct insn *insn) { if (!insn->prefixes.got) diff --git a/tools/arch/x86/include/asm/insn.h b/tools/arch/x86/include/asm/insn.h index ed43bf01ebcc..870795752d6f 100644 --- a/tools/arch/x86/include/asm/insn.h +++ b/tools/arch/x86/include/asm/insn.h @@ -114,17 +114,6 @@ static inline void insn_get_attribute(struct insn *insn) /* Instruction uses RIP-relative addressing */ extern int insn_rip_relative(struct insn *insn); -/* Init insn for kernel text */ -static inline void kernel_insn_init(struct insn *insn, - const void *kaddr, int buf_len) -{ -#ifdef CONFIG_X86_64 - insn_init(insn, kaddr, buf_len, 1); -#else /* CONFIG_X86_32 */ - insn_init(insn, kaddr, buf_len, 0); -#endif -} - static inline int insn_is_avx(struct insn *insn) { if (!insn->prefixes.got) -- 2.29.2