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 06D55C7EE2E for ; Mon, 27 Feb 2023 07:31:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229993AbjB0HbI (ORCPT ); Mon, 27 Feb 2023 02:31:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjB0HbG (ORCPT ); Mon, 27 Feb 2023 02:31:06 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E29751ABC7; Sun, 26 Feb 2023 23:31:04 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 59F9860D57; Mon, 27 Feb 2023 07:31:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43A22C433D2; Mon, 27 Feb 2023 07:31:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677483063; bh=BKhCyAlJfue3qCvD5gMnMzJg0H76KaUopSvrz0ZoyQg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=TmYqZkRB9HOHTkjyN7ucvV530Ru4DXBhtuoiDpIFeWrO3r2bKRVAwQKDNeDMIP7Dd 4aEL0nX1rwJLEjcHPAKMejx+PHjv1Yj6kG6SnnLmxPOPedgTMTs6036OrC9HUHFQjs uiFtLbPkV8SE90m52pllzCmbaOTq4+EgyYAT/4eNPCFjUkJJFNZzbMaBNhj1Ommm/x rnquABFHmNe0jHm2Z237hJoiAceY4lW+jm6FXDSQdiIl1qIvKnhr3+1L7vL3TVDQZ/ Ykl4AYR0En6yYRwdWOe5FtD1fArR1VoDgMRNjwhscOw54Y67Xkdd14SYEjlU6EPwXF Kp73Qnt9Gmmug== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Pu Lehui , Luke Nelson , Xi Wang , bpf@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org Subject: Re: [PATCH bpf v2] riscv, bpf: fix patch_text implicit declaration In-Reply-To: <20230227072016.14618-1-rdunlap@infradead.org> References: <20230227072016.14618-1-rdunlap@infradead.org> Date: Mon, 27 Feb 2023 08:31:01 +0100 Message-ID: <87k003a7ka.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Randy Dunlap writes: > bpf_jit_comp64.c uses patch_text(), so add to it > to prevent the build error: > > ../arch/riscv/net/bpf_jit_comp64.c: In function 'bpf_arch_text_poke': > ../arch/riscv/net/bpf_jit_comp64.c:691:23: error: implicit declaration of= function 'patch_text'; did you mean 'path_get'? [-Werror=3Dimplicit-functi= on-declaration] > 691 | ret =3D patch_text(ip, new_insns, ninsns); > | ^~~~~~~~~~ > > Fixes: 596f2e6f9cf4 ("riscv, bpf: Add bpf_arch_text_poke support for RV64= ") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Link: https://lore.kernel.org/r/202302271000.Aj4nMXbZ-lkp@intel.com > Cc: Pu Lehui > Cc: Luke Nelson > Cc: Xi Wang > Cc: bpf@vger.kernel.org > Cc: Alexei Starovoitov > Cc: Daniel Borkmann > Cc: John Fastabend > Cc: Andrii Nakryiko > Cc: Paul Walmsley > Cc: Palmer Dabbelt > Cc: Albert Ou > Cc: "Bj=C3=B6rn T=C3=B6pel" > Cc: linux-riscv@lists.infradead.org > --- > v2: add header file directly to bpf_jit_comp64.c (Pu Lehui) > change patch target to bpf (for fixes) Thanks, Randy! For the curious; The asm/patch.h file was picked via UPROBES (via PERF_EVENTS=3Dy). For PERF_EVENTS=3Dn, you get the build error. Acked-by: Bj=C3=B6rn T=C3=B6pel