Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2368727rwa; Mon, 22 Aug 2022 06:44:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR61aV+ihwWhTW/or9oVTYBvt6da5rdgplqbgg43RaOQNok6Sn/p2hM10JE90RUHdO6rjyeH X-Received: by 2002:a17:907:b05:b0:73d:68a6:2c5a with SMTP id h5-20020a1709070b0500b0073d68a62c5amr6335500ejl.245.1661175870841; Mon, 22 Aug 2022 06:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661175870; cv=none; d=google.com; s=arc-20160816; b=AFlGtU19S2UjhV/QuH+PMBc0gvraQNmP3/Au6t9vfiZk6+1igwDqEkhyPrRiO1WGZk UiqH/CRMFem8QN3cQGxHWA767LClT22UQUsAWEek5JNI6Qo2ISbI3vqLp5BDbX+e1zPR 6DTGsbo6tSuQBkJNmFyB2PR7eDYkc82C1K3UB0KsLzwvpCVh82NRvPyHJTHIUNWZSaiE c4P6luaBPNogW1W+U4f++7ok35bqtXeje7MG7b9VTse6fgBBimJrd7aApvMNt3gZI+LB mhFNOX+DkUqaQpjOCBoqyTpmA1ktDG2aRes4sFLc7PHgK1vP3RqC86lM0qdvbSZqU02N jAOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=PXQ4HDrqtGH5zbi8B+IZcdSOfm+hqFqAcSMa+GL0/y4=; b=XAjtc24wkocHgR/tEChH79vzKY3oe9QGuOtNd7Gp6WdZbn8IXHFu833ez7KZ3qT1gZ UYj6pN/Y7j+KNmmsfjZ3oN9HMTe3kJcQUWCTz4RyC3y+n7+zmQNDuFTQuJ4+G8A6q04c jE5ULF6tXUfWFnrrkzdYjGAU/1yIJS6qeprhylpZ9s/OvaT6FQoJrlc6UO2lLcyDu2Nx jBYN0q5xUMm32mpNsE3hxfVE8liTs3jxV0fbDIzl4eQJWCPTE03iYMvvAQa1Z0DX5WVS i0i43ecnqLkhHYduA7shbDi2/erndNo5pOnA1dy4cdl5TleT4FFlxzWEKnRlvRFzQtSS UVvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wg6-20020a17090705c600b0072aef2d3af1si9689292ejb.53.2022.08.22.06.44.03; Mon, 22 Aug 2022 06:44:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235174AbiHVNe4 (ORCPT + 99 others); Mon, 22 Aug 2022 09:34:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234128AbiHVNey (ORCPT ); Mon, 22 Aug 2022 09:34:54 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD9052A955 for ; Mon, 22 Aug 2022 06:34:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 43479CE12D2 for ; Mon, 22 Aug 2022 13:34:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3E66C433D6; Mon, 22 Aug 2022 13:34:47 +0000 (UTC) Date: Mon, 22 Aug 2022 09:35:03 -0400 From: Steven Rostedt To: Song Liu Cc: Kuninori Morimoto , Ingo Molnar , Daniel Borkmann , open list Subject: Re: [PATCH] ftrace: makes ops_references_rec() inline Message-ID: <20220822093503.40cb4551@gandalf.local.home> In-Reply-To: References: <87fshpggb7.wl-kuninori.morimoto.gx@renesas.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 Aug 2022 00:28:58 -0700 Song Liu wrote: > On Sun, Aug 21, 2022 at 7:31 PM Kuninori Morimoto > wrote: > > > > commit 53cd885bc5c3e ("ftrace: Allow IPMODIFY and DIRECT ops on the > > same function") changed ops_references_rec() inline to function, > > thus we will get below error if .config doesn't have CONFIG_MODULES. > > > > CC kernel/trace/ftrace.o > > ${linux}/kernel/trace/ftrace.c:3149:1: error: 'ops_references_rec' \ > > defined but not used [-Werror=unused-function] > > 3149 | ops_references_rec(struct ftrace_ops *ops, struct dyn_ftrace *rec) > > | ^~~~~~~~~~~~~~~~~~ > > cc1: all warnings being treated as errors > > make[2]: *** [${linux}/scripts/Makefile.build:249: kernel/trace/ftrace.o] error 1 > > make[1]: *** [${linux}/scripts/Makefile.build:466: kernel/trace] error 2 > > make: *** [/opt/disk_cd/morimoto/linux/Makefile:1843: kernel] error 2 > > > > This patch makes it to inline again, and fixes the issue. > > > > Fixes: 53cd885bc5c3e ("ftrace: Allow IPMODIFY and DIRECT ops on the same function") > > CC: Song Liu > > Signed-off-by: Kuninori Morimoto > > Acked-by: Song Liu > > Thanks for the fix! Wrong fix. The correct fix is here[1], and because the breakage went through the BPF tree, I could not apply it. Now that both the BPF and my tree is in Linus's tree, I can apply it and now will do so. -- Steve [1] https://lore.kernel.org/all/20220801084745.1187987-1-wangjingjin1@huawei.com/