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 X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43A29C04AB1 for ; Fri, 10 May 2019 02:29:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E05B2183F for ; Fri, 10 May 2019 02:29:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726936AbfEJC3C (ORCPT ); Thu, 9 May 2019 22:29:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:51516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbfEJC3C (ORCPT ); Thu, 9 May 2019 22:29:02 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ACE73217F5; Fri, 10 May 2019 02:29:00 +0000 (UTC) Date: Thu, 9 May 2019 22:28:58 -0400 From: Steven Rostedt To: Linus Torvalds Cc: LKML , Peter Zijlstra , Josh Poimboeuf , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , live-patching@vger.kernel.org, "the arch/x86 maintainers" , Borislav Petkov Subject: Re: [RFC][PATCH] ftrace/x86: Remove mcount support Message-ID: <20190509222858.3ef96113@gandalf.local.home> In-Reply-To: References: <20190509154902.34ea14f8@gandalf.local.home> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 May 2019 13:12:55 -0700 Linus Torvalds wrote: > On Thu, May 9, 2019 at 12:49 PM Steven Rostedt wrote: > > > > diff --git a/arch/x86/include/asm/livepatch.h b/arch/x86/include/asm/livepatch.h > > index ed80003ce3e2..2f2bdf0662f8 100644 > > --- a/arch/x86/include/asm/livepatch.h > > +++ b/arch/x86/include/asm/livepatch.h > > @@ -26,9 +26,6 @@ > > > > static inline int klp_check_compiler_support(void) > > { > > -#ifndef CC_USING_FENTRY > > - return 1; > > -#endif > > return 0; > > } > > Please remove this entirely. > > There are now three copies of klp_check_compiler_support(), and all > three are now trivial "return 0" functions. > > Remove the whole thing, and remove the single use in kernel/livepatch/core.c. > > The only reason for this function existing was literally "mcount isn't > good enough", so with mcount removed, the function should be removed > too. > As this patch is simply a "remove mcount" patch, I'd like to have the removal of klp_check_compiler_support() be a separate patch. Jiri or Josh, care to send a patch on top of this one? Thanks! -- Steve