From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A61EC433EF for ; Tue, 29 Mar 2022 10:46:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235363AbiC2KsG (ORCPT ); Tue, 29 Mar 2022 06:48:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235105AbiC2KsF (ORCPT ); Tue, 29 Mar 2022 06:48:05 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BDC12487B8; Tue, 29 Mar 2022 03:46:23 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id B3162218F2; Tue, 29 Mar 2022 10:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1648550781; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RXUSr0X/OHwTP/biM/aptOlOarSjj143JBWUeUahRO4=; b=zizPa5FaVHvWbtWboCJrQErjt4ri7XTkke0agNui/r7WTQLWdwuYyKAKoeKF+R1KQ3z+3t gMTCS9CM/UVIrreLPyLs5snZS5J3Q9164XqF3g2mAEK5S8hh0DWE5cFI1JEAnBww28KB7T /D9OeTEJEdcsywB0g8aZ8UeaQZgGF10= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1648550781; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RXUSr0X/OHwTP/biM/aptOlOarSjj143JBWUeUahRO4=; b=E1I0b1yt/ZVOBITzt2gmpMsiMuaXnfYmN7DJONqxVe/CI6Po9m4wJ4VrdnWYvkdEPEpkrl 0TK0mxpEMFCXBNAA== Received: from pobox.suse.cz (pobox.suse.cz [10.100.2.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 70EA6A3B82; Tue, 29 Mar 2022 10:46:19 +0000 (UTC) Date: Tue, 29 Mar 2022 12:46:19 +0200 (CEST) From: Miroslav Benes To: Christophe Leroy cc: Josh Poimboeuf , Jiri Kosina , Petr Mladek , Joe Lawrence , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH] livepatch: Remove klp_arch_set_pc() and asm/livepatch.h In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: live-patching@vger.kernel.org On Mon, 28 Mar 2022, Christophe Leroy wrote: > All three versions of klp_arch_set_pc() do exactly the same: they > call ftrace_instruction_pointer_set(). > > Call ftrace_instruction_pointer_set() directly and remove > klp_arch_set_pc(). > > As klp_arch_set_pc() was the only thing remaining in asm/livepatch.h > on x86 and s390, remove asm/livepatch.h > > livepatch.h remains on powerpc but its content is exclusively used > by powerpc specific code. > > Signed-off-by: Christophe Leroy Acked-by: Miroslav Benes M