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 66295C28D13 for ; Mon, 22 Aug 2022 13:35:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235183AbiHVNe5 (ORCPT ); Mon, 22 Aug 2022 09:34:57 -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 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/