Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp332374lqt; Thu, 6 Jun 2024 05:14:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVm8aa8KsUU27/tPShJfGFC5yzItPiXSjZ6CrDhBdzUVbt95QU2Ta9eKQoMbBxEE/UlD4SXrcPRQUtxsGY7tqwRlpKbqHD2VSaXY25vZA== X-Google-Smtp-Source: AGHT+IHIOY8a3UvhpwT0UpRmbXB2zZFGZZ6CoyOwW2yeDkTTs2Ejo1T5A6clRJ/c5aHGxshr6rJy X-Received: by 2002:a17:907:3112:b0:a68:795c:8cf6 with SMTP id a640c23a62f3a-a699f87f0b1mr298537266b.38.1717676082304; Thu, 06 Jun 2024 05:14:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717676082; cv=pass; d=google.com; s=arc-20160816; b=bjhvfpb6X6Z0bJfWiUVagnH6vcOWeNS72oVxSs7hqh2hQ01pLekH72Z/enTYIdCLkn ysTuPuXsPeuu54Kvfs7g9d4V3Bm85ipXaQkUCctgFoMWPClBmtqHRw+pu6z58IiZEUVI 65FogjJ2nrQ3tWEr3+xda1CVeMVUk7ubJHIOsrU+Kg7hXPDQE/72QWC1+8Y1z8Oghhnl 6xc0hLx42RkVuGmGKURDJCX6jtq7qG99IfMKkf8QMrrVypmTjWU9G5Q+zd1CBq5NKIhA fIvbdBMzYTS2x5Bk2UNUptSlvMAZIxMopD8z6+lDjMq4d7Mt5kw9e7uEDOEpd6kPyzmR 87cQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:subject:cc:to:from:date:user-agent:message-id; bh=iSVMugQ5VZKgi30IeZZTxRoDIb309Tl/iZ0C2LArVEU=; fh=nKfoN7UdqOu/DvYTGAbUDlQOipRyyGAc9CYQlDoFez0=; b=oPy8kIu8ZBioZ5OX/CErXSMEQ15LvUU2FTKV1g0MDJ0/RgWLl45+s0IFkzjaPYCvE/ g7t0JV2k+L3oTIGcjzp1SBxmjpZ3bxMdY30hdObajEhDS1hm6HjlzyKqWXF4YwnafYZu xSpMsVBS1FZr+ZUpMRP0fJ2EdTkBRciumdQ5jNVECK5HRSgXYnaurl7nrYKGIQTztJE0 yaL2q7bRkV7hqa5zr7ZV6Y7AK9au6YAfTXgUXxxhPjchwdrNz6vT5q6CoRjIiPcR6uTM zif0NsSjv9DTnRkZDxgRdNVtlNa9aQzEPE2CXV9hAG70HXvBWkI7MQ8MbLmPTzHAmJcI JSGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204252-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c805cdd3esi66666666b.258.2024.06.06.05.14.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:14:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204252-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 09CEC1F2584F for ; Thu, 6 Jun 2024 12:14:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD66319884C; Thu, 6 Jun 2024 12:11:03 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D9D1197524 for ; Thu, 6 Jun 2024 12:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717675862; cv=none; b=DuZsRdtWuVAY4Oa58LMkt68K1Z8QTe92zwUJTywM9YPmcP1j2OK1IK1whXLTWsnTAv/uhLBa18luAI7M6ebAohiBhwLrpSOv/PQiuqHXCGKgB8rWF4ca+amR5YWOW0NV6BgoMXKPNccCyHkWKQnbKZMyzNyEKYP05JaQcuWOxkc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717675862; c=relaxed/simple; bh=Mh8Nc2PUn8WQF6A4kwG6AMoIRiTAM/kSAgU2FgOhyiU=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=F/6XJX8i9nE+225KVKyPnofudNDVmaMam2rrZCwsCF534ZF94Jd/cJCNUTaENIT2kis6rL0pZco0LGc12Oijd9QftzvsZ3qxjbxUCvwvPl0ScCWiLjalzsP7FFk2vTGpkW1SNMnED0R7InRBc25B5Au3zZfA3vUzpoQJagaiqnE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1567C32782; Thu, 6 Jun 2024 12:11:01 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1sFBxS-00000000nNo-1Avm; Thu, 06 Jun 2024 08:11:06 -0400 Message-ID: <20240606121106.141319090@goodmis.org> User-Agent: quilt/0.68 Date: Thu, 06 Jun 2024 08:10:15 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , kernel test robot Subject: [for-next][PATCH 11/15] ftrace: Fix prototypes for ftrace_startup/shutdown_subops() References: <20240606121004.857581251@goodmis.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 From: "Steven Rostedt (Google)" The ftrace_startup_subops() was in the wrong header, and both functions were not defined on !CONFIG_DYNAMIC_FTRACE. Link: https://lore.kernel.org/linux-trace-kernel/20240605202708.773583114@goodmis.org Cc: Mark Rutland Cc: Mathieu Desnoyers Cc: Andrew Morton Fixes: 5fccc7552ccbc ("ftrace: Add subops logic to allow one ops to manage many") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202406051524.a12JqLqx-lkp@intel.com/ Acked-by: Masami Hiramatsu (Google) Signed-off-by: Steven Rostedt (Google) --- kernel/trace/ftrace_internal.h | 9 +++++++++ kernel/trace/trace.h | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/kernel/trace/ftrace_internal.h b/kernel/trace/ftrace_internal.h index bfba10c2fcf1..4bb1e881154a 100644 --- a/kernel/trace/ftrace_internal.h +++ b/kernel/trace/ftrace_internal.h @@ -15,6 +15,7 @@ extern struct ftrace_ops global_ops; int ftrace_startup(struct ftrace_ops *ops, int command); int ftrace_shutdown(struct ftrace_ops *ops, int command); int ftrace_ops_test(struct ftrace_ops *ops, unsigned long ip, void *regs); +int ftrace_startup_subops(struct ftrace_ops *ops, struct ftrace_ops *subops, int command); int ftrace_shutdown_subops(struct ftrace_ops *ops, struct ftrace_ops *subops, int command); #else /* !CONFIG_DYNAMIC_FTRACE */ @@ -39,6 +40,14 @@ ftrace_ops_test(struct ftrace_ops *ops, unsigned long ip, void *regs) { return 1; } +static inline int ftrace_startup_subops(struct ftrace_ops *ops, struct ftrace_ops *subops, int command) +{ + return -EINVAL; +} +static inline int ftrace_shutdown_subops(struct ftrace_ops *ops, struct ftrace_ops *subops, int command) +{ + return -EINVAL; +} #endif /* CONFIG_DYNAMIC_FTRACE */ #ifdef CONFIG_FUNCTION_GRAPH_TRACER diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index b37402e3f0c9..8783bebd0562 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -1186,7 +1186,6 @@ extern int ftrace_set_filter(struct ftrace_ops *ops, unsigned char *buf, int len, int reset); extern int ftrace_set_notrace(struct ftrace_ops *ops, unsigned char *buf, int len, int reset); -extern int ftrace_startup_subops(struct ftrace_ops *ops, struct ftrace_ops *subops, int command); #else struct ftrace_func_command; -- 2.43.0