Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1688276pxy; Thu, 6 May 2021 13:20:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwob3LCyjaqIX90od+wMcTfvaTc7mCvVgnaIDr6YHOBh+RfHHdRG6kB0PZJuCh2n0g3dd4M X-Received: by 2002:a05:6402:50c6:: with SMTP id h6mr7458509edb.327.1620332442469; Thu, 06 May 2021 13:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620332442; cv=none; d=google.com; s=arc-20160816; b=SFBaQliyppez3xxiDD9jOozvFtUwtRX2DfpRrcyMolJtnRl5zKFwazHE6GmS0/voSC Glt7ux9oJTP+LSWouuk7zBn7Q4J/wAEyyNgiOWtm4Wf9N7L0sQpJh8S9LB4e5CV5eAHy dDFxwug9mCAQt0ScVay8hO4C7MtSscNq8JSshzLgSxECqfgBPxxenfxXg6UptLNLCmkU h9KLO3Tm5hrL2S1kt8yQpjJgD7cb73Isgo1X6p+phJ+7IHx8VuUlCzNlrXyNoG7E6+oP LVuQeEexU+jn4j77ZqQLQ10xidAyXBwH4cbVOLQ4EDuiqfk9nsJhwhcCV5ED0OJ8MZ6x SfhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:subject:cc:to:from:date :user-agent:message-id:dkim-signature; bh=spwKOAaPMkax7g3y36qhZyQjssDY1X8RFz+x7JOk2pE=; b=DK+EoNz8VPe7Dn/luGbYdCwGMRhrdz5Mntqt/w/pc4vlJZUolY5dvx+rLOqEX3d+gr PqiBjLKzMK6D8yK5emgYVIFQK+gRTZzNzpZH7dE3jAmgEcGOtyuxTwJtxjD4jo/qkV5k SuvYhuZnjUS7ZojDPzubQLYqWZ3emozB1DWPLSL0rhMU/TQ0uiESdJvUCHEHpvKxNTSn ik5fNghb4S2SA1g+k3YLzvrhylHUcUdt8lF1neN5oEzO8ROUamHxc4ViIjXnxTFjDHb/ nd8lftNFPGaQgBv+oKofYyDxkRCoDrGWua68Q+YnzzHq1zEDV7s26iuKdPTJfj3pk7/d NUIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UPyrpgci; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si3183073eju.518.2021.05.06.13.19.55; Thu, 06 May 2021 13:20:42 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=UPyrpgci; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235905AbhEFTpG (ORCPT + 99 others); Thu, 6 May 2021 15:45:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235717AbhEFTox (ORCPT ); Thu, 6 May 2021 15:44:53 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18778C06138C for ; Thu, 6 May 2021 12:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-ID:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To; bh=spwKOAaPMkax7g3y36qhZyQjssDY1X8RFz+x7JOk2pE=; b=UPyrpgciynioEQ7uBQjNteUIkC c8JqYyELfznWoBZV53XSf5B9s0L0whrrmvBE0qIKSjQTznS0KPQAYLPeY6ZfJMwvsKNb49bW5tSQU M2xPAsOZ3p0/HcOganqnTjbr+UZ7rQDgO/p2EKOrfudi/6AC40rOmCbGR+whqaGP7qyD8JVp5VrRC oQ4LsyvPrOtbLKHXLaF5F1zwhZW1UMg8YqKMOFBUECGy3LFRh6WNoGOQrMjv8awCT3HSQcxlI/knP 5boUnuPydqr3Bff9ppy3xf088SdEXYkjSmLkk2yTd2Hc3rylYijIgYmb3xdn64pbj/FRLeov06gDd qidWguUQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lejtQ-002ADC-C2; Thu, 06 May 2021 19:42:48 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id BBAA7300350; Thu, 6 May 2021 21:42:38 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id A5E9120B96F85; Thu, 6 May 2021 21:42:38 +0200 (CEST) Message-ID: <20210506194157.599716762@infradead.org> User-Agent: quilt/0.66 Date: Thu, 06 May 2021 21:33:55 +0200 From: Peter Zijlstra To: x86@kernel.org, jpoimboe@redhat.com, jbaron@akamai.com, rostedt@goodmis.org, ardb@kernel.org Cc: linux-kernel@vger.kernel.org, peterz@infradead.org Subject: [PATCH 03/13] jump_label, x86: Strip ASM jump_label support References: <20210506193352.719596001@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In prepration for variable size jump_label support; remove all ASM bits, which are currently unused. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/jump_label.h | 36 ------------------------------------ 1 file changed, 36 deletions(-) --- a/arch/x86/include/asm/jump_label.h +++ b/arch/x86/include/asm/jump_label.h @@ -47,42 +47,6 @@ static __always_inline bool arch_static_ return true; } -#else /* __ASSEMBLY__ */ - -.macro STATIC_JUMP_IF_TRUE target, key, def -.Lstatic_jump_\@: - .if \def - /* Equivalent to "jmp.d32 \target" */ - .byte 0xe9 - .long \target - .Lstatic_jump_after_\@ -.Lstatic_jump_after_\@: - .else - .byte BYTES_NOP5 - .endif - .pushsection __jump_table, "aw" - _ASM_ALIGN - .long .Lstatic_jump_\@ - ., \target - . - _ASM_PTR \key - . - .popsection -.endm - -.macro STATIC_JUMP_IF_FALSE target, key, def -.Lstatic_jump_\@: - .if \def - .byte BYTES_NOP5 - .else - /* Equivalent to "jmp.d32 \target" */ - .byte 0xe9 - .long \target - .Lstatic_jump_after_\@ -.Lstatic_jump_after_\@: - .endif - .pushsection __jump_table, "aw" - _ASM_ALIGN - .long .Lstatic_jump_\@ - ., \target - . - _ASM_PTR \key + 1 - . - .popsection -.endm - #endif /* __ASSEMBLY__ */ #endif