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 156E1C7EE23 for ; Mon, 27 Feb 2023 04:02:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229696AbjB0EC3 (ORCPT ); Sun, 26 Feb 2023 23:02:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjB0EC1 (ORCPT ); Sun, 26 Feb 2023 23:02:27 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9022A6191; Sun, 26 Feb 2023 20:02:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=rVCFfG34g/WE/rnUnoiZ4Lna9s5O0AAu7j3OeDnj9L4=; b=DzaQarNAyLZUenxV6//dW/nymU f7svDqPp280gY88hN3PJnfynZDM11JGqfAy8Zv5krCO0hMPzO7fBHEXzv5QFt64FffMZyE8dOVh+E jb+x60/ge5tK1gRhOIxe0eZDW8UQWVYfjwJTcV5HHQprfQ+gAJTH6rlDpS8hST/N/9GRw/UYgGP4i KPDU3vc2ZKhLxWtu1CVoCoT2dfYL20oISnO2LPYse0sAJ/NPk4JzCGSfWVKRTu1SCBbmrdIF7AcVl CG+y3M4panJdjv8CMxusklu+fXR5qmg7mhIK+7i/p3RbYWq8ZiBuGkDcY6ORZkYdWlFX/WzAv69A9 EdJ8baGQ==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWUiU-008PEf-VI; Mon, 27 Feb 2023 04:02:23 +0000 From: Randy Dunlap To: 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 , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , linux-riscv@lists.infradead.org Subject: [PATCH bpf-next] riscv, bpf: fix patch_text implicit declaration Date: Sun, 26 Feb 2023 20:02:21 -0800 Message-Id: <20230227040221.15442-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org bpf_jit_comp64.c uses patch_text(), so add it to a local header file 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=implicit-function-declaration] 691 | ret = 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örn Töpel" Cc: linux-riscv@lists.infradead.org --- What is the proper path to have this merged soon to stop build errors? arch/riscv/net/bpf_jit.h | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/riscv/net/bpf_jit.h b/arch/riscv/net/bpf_jit.h --- a/arch/riscv/net/bpf_jit.h +++ b/arch/riscv/net/bpf_jit.h @@ -12,6 +12,7 @@ #include #include #include +#include static inline bool rvc_enabled(void) {