Message ID | 20230227040221.15442-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2223231wrd; Sun, 26 Feb 2023 20:12:25 -0800 (PST) X-Google-Smtp-Source: AK7set9qn7Ite/09NXXWdUfza4iNSHLxrbN0T7TXbwiF/H0FmruqP4mA8m4mS4WDx6HEst2+vPvB X-Received: by 2002:a05:6402:783:b0:4ac:bbaa:842f with SMTP id d3-20020a056402078300b004acbbaa842fmr23433750edy.39.1677471145813; Sun, 26 Feb 2023 20:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677471145; cv=none; d=google.com; s=arc-20160816; b=mYY1euxhrg+1aMeOksdgMOwnxfkO6mYRTGGJ4qt85NWbnlLpIqebnttVL+JT24ieGd GcbbNVvynf5KGyf/DaoVdpeDqDi/2f5FDSX7zcSw8MYIguq2iB9I4hiwkZunI/1Q9Xg3 Q0GkA3rgLE+JMDa4nAWRtV/+wErDcVymjUVTq5jZlR0PWg/MFWRWYNqswmjlI/Qg777B nX4mvyJeqCOmjvBqU3myO/LR+fzDZrB1kTZUyPv7TKLJ6hNR+ym6tRzf7EiQwMOQ/ec3 bmTk8fLG7dp7EW8/6yq0v9ik3jPNE+iMRu76mg6N5tl6Qr2h4PMYuPfS1n93sXecNM0s kt0Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=rVCFfG34g/WE/rnUnoiZ4Lna9s5O0AAu7j3OeDnj9L4=; b=zucURCBE5GBBSCJoIa4s/l0bWVJUhZHnsNIlgkI2gxuaPlrpsa6R1+1wcEkN4e7q8t bo90sSegEzZPGtAceZcXx6TBxdww5zHPhngQ3nVI9s0FlxtBJIHBA4ug+VU69AC4j+9A i8kb/fZvZsYJ0JFIT+zTW/HjJFTrzxegMR63F/OpVIlVxZRMO39RI9yAAQ+RxOll7FfB TB5mzap81HQgT6xJOVtqrthLGbv2ru8aa/Nxxft6WOqHDfG1PpOZSt/DwJxXOCXYgcJ/ UMhxfiNy7Vjw0P6Kx0IZ9+rhd/G3xJO5ye2z+bvBuMYFwhVgRrDURi4kEplNm9EC6c2h m4Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DzaQarNA; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a50ee83000000b004a08f621badsi6697273edr.284.2023.02.26.20.12.02; Sun, 26 Feb 2023 20:12:25 -0800 (PST) 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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=DzaQarNA; 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 S229685AbjB0EC2 (ORCPT <rfc822;sukrut.bellary@gmail.com> + 99 others); Sun, 26 Feb 2023 23:02:28 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, kernel test robot <lkp@intel.com>, Pu Lehui <pulehui@huawei.com>, Luke Nelson <luke.r.nels@gmail.com>, Xi Wang <xi.wang@gmail.com>, bpf@vger.kernel.org, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, John Fastabend <john.fastabend@gmail.com>, Andrii Nakryiko <andrii@kernel.org>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn@kernel.org>, 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758955984008390863?= X-GMAIL-MSGID: =?utf-8?q?1758955984008390863?= |
Series |
[bpf-next] riscv, bpf: fix patch_text implicit declaration
|
|
Commit Message
Randy Dunlap
Feb. 27, 2023, 4:02 a.m. UTC
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 <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/202302271000.Aj4nMXbZ-lkp@intel.com
Cc: Pu Lehui <pulehui@huawei.com>
Cc: Luke Nelson <luke.r.nels@gmail.com>
Cc: Xi Wang <xi.wang@gmail.com>
Cc: bpf@vger.kernel.org
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: "Björn Töpel" <bjorn@kernel.org>
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 <linux/bpf.h> #include <linux/filter.h> #include <asm/cacheflush.h> +#include <asm/patch.h> static inline bool rvc_enabled(void) {