From patchwork Mon Feb 27 04:02:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 13152712 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0AA30C64ED6 for ; Mon, 27 Feb 2023 04:02:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=FhMTHztLSxGV5i/9HZNj/hQq45du3YcySsYr/UgQdQE=; b=0TeU+OUGxMGRKF YqfsjR8lSrooClqH7EBVahrWKpPZAgZF+UgVcj+CarS280f29KM7ZfWoEh04owTzcgIbBPPa1UZqM 0X8XY/Fi3mJy7WRpyg7LbdnwEriNUArPnYSOkQfqL5jSTvcCcefispzWkzLk5NuFEVk7VrcIVI0pC 4YRVqFspnTUjexGOF9c/NPIvqGHUjau1TI1Qksow+TUEhE8o55mPb6QwZFBblvGzRz223f9w0WMH0 h5oHWP8iWUQ1dlhnxn5tqZJmL7ASKtiC7qHgA6Xg8zpYULXt/VIL7Xus4Fy/ALM3jynHk2ub3sEye sDP0ZECPr7/mqHOAKf8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pWUiY-008PF7-Kq; Mon, 27 Feb 2023 04:02:26 +0000 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?b?QmrDtnJuIFTDtnBlbA==?= , 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 X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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) {