Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1604821yba; Sat, 27 Apr 2019 03:09:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnY699TD03QY2IIkuVfHCAvBfqGR5XdkZcoYASSV2QOS3yVbI/K8tEkj7iFC6TOnyLTW8J X-Received: by 2002:a63:610f:: with SMTP id v15mr11941313pgb.128.1556359792674; Sat, 27 Apr 2019 03:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556359792; cv=none; d=google.com; s=arc-20160816; b=zoGvECjTgv+286ttXZDWA5AACUfDFwp4LIQU1ZNCRrYZmFyrI1uoL/u5oHYcWk1YfB JbxOmuG+qpM7fUSOg4EdjVsbl9qa+z6I8nbcF/4EMJyvZkxEPas/xG8Rdo9ecU7zsVzm uCZnupjmqlNPKANP24ubOpySdomQJLuaJiE0YlaTDManjRZYY0DdYR7fdMs5WCeaHjtp XUVSxRE3spDznr25qTsBu+q9/AsRG04xNY7C/wrmwUxUJUUQmxTJ0fSRbiKYNxR9qgLq fLwtmatFXNa054NJ2RU+Md1wxVd8rPhsJq9rh8bvA/fB8WU9fPGhc0h7sgryGtuuGblO KW0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=V/0vPl22NDcbQoTdw7qyaSZkTsND7dbJMK1B1l2ERrg=; b=V19Y3egZMPn/t7TUJ+4c909IaUtSzdvzuVqfcY5YVN7EYieznh6Yiv/+XJeopT4UN0 etmUnFSEOXDrz8ccauOD8N08r8wn4gNmRy8JwBZk/genz3plGI2ycWjjGbDkQFfJtGWc NTVuCZO2TYvbIVMGpp0M507UBoKdSb96koC4kW79JQ17LXq7MELhvcOhaDYshTDJPLWi XmL63QK3twkv1vm+AVxBEhVMRGUhFz7AgBLMJ9zVO/5zOj2tPELGNz2fxwHRRXsGWCCR +nE4nETItLOjdQ8lzeGMb8f+Vp+mFq2EGCvySTt+D2BBuXc3CEp6WU7xfBeih2DqPBs8 LXgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k123si27855507pfc.285.2019.04.27.03.09.24; Sat, 27 Apr 2019 03:09:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726487AbfD0KHv (ORCPT + 99 others); Sat, 27 Apr 2019 06:07:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:51380 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725902AbfD0KHt (ORCPT ); Sat, 27 Apr 2019 06:07:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 847AFAD41; Sat, 27 Apr 2019 10:07:47 +0000 (UTC) From: Nicolai Stange To: Steven Rostedt Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , Shuah Khan , Konrad Rzeszutek Wilk , Tim Chen , Sebastian Andrzej Siewior , Mimi Zohar , Juergen Gross , Nick Desaulniers , Nayna Jain , Masahiro Yamada , Andy Lutomirski , Joerg Roedel , linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org, Nicolai Stange Subject: [PATCH 2/4] ftrace: drop 'static' qualifier from ftrace_ops_list_func() Date: Sat, 27 Apr 2019 12:06:37 +0200 Message-Id: <20190427100639.15074-3-nstange@suse.de> X-Mailer: git-send-email 2.13.7 In-Reply-To: <20190427100639.15074-1-nstange@suse.de> References: <20190427100639.15074-1-nstange@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With an upcoming patch improving x86' ftrace_int3_handler() not to simply skip over the insn being updated, ftrace_ops_list_func() will have to get referenced from arch/x86 code. Drop its 'static' qualifier. Signed-off-by: Nicolai Stange --- kernel/trace/ftrace.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index b920358dd8f7..ed3c20811d9a 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -125,8 +125,8 @@ ftrace_func_t ftrace_trace_function __read_mostly = ftrace_stub; struct ftrace_ops global_ops; #if ARCH_SUPPORTS_FTRACE_OPS -static void ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip, - struct ftrace_ops *op, struct pt_regs *regs); +void ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip, + struct ftrace_ops *op, struct pt_regs *regs); #else /* See comment below, where ftrace_ops_list_func is defined */ static void ftrace_ops_no_ops(unsigned long ip, unsigned long parent_ip); @@ -6302,8 +6302,8 @@ __ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip, * set the ARCH_SUPPORTS_FTRACE_OPS. */ #if ARCH_SUPPORTS_FTRACE_OPS -static void ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip, - struct ftrace_ops *op, struct pt_regs *regs) +void ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip, + struct ftrace_ops *op, struct pt_regs *regs) { __ftrace_ops_list_func(ip, parent_ip, NULL, regs); } -- 2.13.7