Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5281690rwe; Tue, 18 Apr 2023 04:59:12 -0700 (PDT) X-Google-Smtp-Source: AKy350bicpihHmKJVDf5gwWOGB698hk5ThW1Fgpky49OVtm/DRVpBwg+4oDSGKmIM9+kHcr1F2XM X-Received: by 2002:a05:6a00:2196:b0:63d:38db:60ef with SMTP id h22-20020a056a00219600b0063d38db60efmr2330118pfi.26.1681819152400; Tue, 18 Apr 2023 04:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681819152; cv=none; d=google.com; s=arc-20160816; b=oVwZCwrxVW5ZYxTu8wJuiS7FYfjf26oI8UuZ65WpGjPO/0vSv8HqUXob7J7+rp+69m tzKOzsE2dIxBZ/RFRg95An4KYyDUJftZSK8pLfP75WTxhz3r7nALlhpoeVCklZlTHkOJ qNCKJikwOvVwJqVsh7srF9amrHjccKTw6IdfZtcgtuM05DT+RZdwh7KIP4Pxm3PnFEXR wmK76GmU68J6x4K3sTvhy39IBE040VI8sUEBs3EhQWSTqGsWVsPEw0ePgk27Bya1gzfY Xz+W35DV90RI2WtPLTgFvzSWYxpWOeVDGa/VV0rVgAGqchdsOnQ/ITGzB+ZhdrzDoBoL EIFQ== 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:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=x+XsjcveldJefY6vpL3Qw6/nPxMSspNldOP9n2k+ImM=; b=voI6n7QSeIzU83sXX1cwOaF4GR6YGc640ch0okphGXXGHS7le7ixBzJnMMZc/FYQTT cwUUbdfXyKVQCUm52C/6HCkJYRwcgTk0MmFqVT3lSTIEXhSmYt0JDDoLSXcKseZ4Elgk LWrv2w8wW9uTsZngNrBt+K8Yc9IyGLY2CJwiwKB43LDTxONNz9s5MSyUraK2fDhfTi21 RSzYRZFM7eLzZu3mbMyvkCfLBaRWqLBSWQeyOhXQNPhvaZURrX+T2ELHycSoNRrx0LQc kHMMn/VnEasUWqFS2PaiWlPjOyBBDtqcnXDKbfrrpFpbKxfNRWmEknX7O/YyUyb4Q4qR iwmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YWm19zFa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u145-20020a627997000000b0063b60063f55si12423371pfc.382.2023.04.18.04.59.01; Tue, 18 Apr 2023 04:59:12 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=YWm19zFa; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231278AbjDRL55 (ORCPT + 99 others); Tue, 18 Apr 2023 07:57:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231200AbjDRLzv (ORCPT ); Tue, 18 Apr 2023 07:55:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C23729742; Tue, 18 Apr 2023 04:54:07 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 1AFDA625F0; Tue, 18 Apr 2023 11:54:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F21D8C433A1; Tue, 18 Apr 2023 11:54:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681818846; bh=AXG/C2BTZBum1dQyk9xGMcX+JvRAly8xQcU58qub2TY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=YWm19zFa301nIsz39oDFn59dpZkUCH2MAVqlW5HDdaX1rAdGSRB1o1hw8xpyfUcxk X9anxNHN9gXA711KO6QVbkC9vMQMmrEWLPfg0SpYzrhLQpuxuk8Bg+/XgY+V8O/PDX 3PAGR0NoOWjjFH4zYUdlavCcVT0IVvyXbuj4WOZMM4X7384z7GeQjLXcfkDp5IVA0v cL5b7JyDHDBPPv7XW4tJDJsijvZAtKItqU2bI2OzA69vUdtHjcmS/I5PoG/PEXLzgf lwtKNF5/+RRFRs4mUP+TEyi5xupeCBi1Zz4Y9Z65SKbw4disf506aJnBYryW1r3JVR YgXncspNH3AwA== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Aleksandr Nogikh , pulehui@huawei.com, bpf@vger.kernel.org Cc: linux-riscv@lists.infradead.org, LKML , syzkaller , Dmitry Vyukov , Daniel Borkmann , Alexei Starovoitov Subject: Re: arch/riscv/net/bpf_jit_comp64.c build error In-Reply-To: References: Date: Tue, 18 Apr 2023 13:54:03 +0200 Message-ID: <871qkh9zj8.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Aleksandr Nogikh writes: > Hi Pu Lehui, > > I'm writing to you regarding your following patch. > > Author: Pu Lehui > Date: Wed Feb 15 21:52:04 2023 +0800 > > riscv, bpf: Add bpf_arch_text_poke support for RV64 > > When trying to compile the "fixes" branch of the > "git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git" tree, > syzbot gets the following error: > > arch/riscv/net/bpf_jit_comp64.c: In function 'bpf_arch_text_poke': > arch/riscv/net/bpf_jit_comp64.c:691:9: error: implicit declaration of > function 'patch_text'; did you mean 'path_get'? > [-Werror=3Dimplicit-function-declaration] > 691 | ret =3D patch_text(ip, new_insns, ninsns); > | ^~~~~~~~~~ > | path_get > > FWIW the compiler is riscv64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 > 20210110, GNU ld (GNU Binutils for Debian) 2.35.2. > > Could you please take a look? Randy sent a fix for this [1], which went in via the BPF tree. Pull in commit 2d311f480b52 ("riscv, bpf: Fix patch_text implicit declaration"). Bj=C3=B6rn [1] https://lore.kernel.org/linux-riscv/20230227072016.14618-1-rdunlap@infr= adead.org/