Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1713816pxb; Mon, 11 Oct 2021 11:26:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3INPo83fe6eAdxBgspojXW71uzkK+7Hs1/Nu+Umuh7073gAHYglWo+pIc8DeNBuVA3Z43 X-Received: by 2002:a17:907:1199:: with SMTP id uz25mr27209816ejb.470.1633976818833; Mon, 11 Oct 2021 11:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633976818; cv=none; d=google.com; s=arc-20160816; b=ypDojtmdGHlRQlKq5VBQQp1gIaxnSeEMPBCB0Hm5bSjfog9W1NvFPGh2/8x1mZKLr/ uc4Uqm73LDwy1+Ui0iWtovEuPf79RpNxsATOQvfcaOte4EYqLdi3nRQTATJdU7BjpqV2 Jv+Mp6eKs0X/qkyPX6tSZWkXa3hz0o8SRyGfjvjWRVGDH4+KS+6JiFSNyrw4MQpk8Wj8 kTkZq7YTVB/2gZ7N8ayKqhXc9+6KuHklqB/jStCFy0h/RydikdAJvWrgru8Gxcdfno1M 0mkXS43YW0seLLKI9zCk3lZtXcpYMIBXMHWuvgh8SHg4P0HrhhTVSC6eJs27dz7NkZC6 17BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=ikxo6L0JxwnIHHKeq+hEeiCOQhgRedYdxwcwKtpkhpk=; b=NvwZz97r71JdES4RdyK/c6bzprjdx9TiN1KQ/pwLF37cpZS6Nzrnxgiu4mNCv39+yS PPNOSvB1xf8/GwdUXfwVEKBVDLCPQb1wuofWKG6+wRLmgJvHnETU1m4YhWfwzLuZ5suP 7z+yaDbQDc7yQOjQcuQA9liJar0UODxkawSGE0q3FDc61v6/IPuZuA8qYDQjjOVI2L+V ZxsHMd2kCIpTcpfFPpOAJnpNf8AoDUqFnUcI5n+rfMO360hkOd3aG1YFE9/DUFxorkkt hg9e4wfI0k6bj+H++r0iVNboP/mn8PKYytKxJnnX4OarQGGlkFccsF9bKd9Z45kz7Dvt hMzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jv16si12042747ejc.459.2021.10.11.11.26.34; Mon, 11 Oct 2021 11:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234462AbhJKS0e (ORCPT + 99 others); Mon, 11 Oct 2021 14:26:34 -0400 Received: from pegase2.c-s.fr ([93.17.235.10]:39725 "EHLO pegase2.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232165AbhJKS0d (ORCPT ); Mon, 11 Oct 2021 14:26:33 -0400 Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4HSnJH5qrNz9sTs; Mon, 11 Oct 2021 20:24:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oGW88cp2Y0Fr; Mon, 11 Oct 2021 20:24:31 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4HSnJH4sXqz9sTq; Mon, 11 Oct 2021 20:24:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6B0DE8B76E; Mon, 11 Oct 2021 20:24:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id JpZxGe21iLjb; Mon, 11 Oct 2021 20:24:31 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.202.147]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A796B8B763; Mon, 11 Oct 2021 20:24:30 +0200 (CEST) Subject: Re: [PATCH 5.4 49/52] powerpc/bpf: Fix BPF_MOD when imm == 1 To: Naresh Kamboju , Greg Kroah-Hartman Cc: open list , linux-stable , "Naveen N. Rao" , Johan Almbladh , Song Liu , Michael Ellerman , Sasha Levin References: <20211011134503.715740503@linuxfoundation.org> <20211011134505.420785540@linuxfoundation.org> From: Christophe Leroy Message-ID: <21099a2e-b1d3-a1dd-be79-3e491afe20cc@csgroup.eu> Date: Mon, 11 Oct 2021 20:24:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr-FR Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 11/10/2021 à 19:33, Naresh Kamboju a écrit : > stable-rc 5.4 build failed due this patch. > - powerpc gcc-10-defconfig - FAILED > - powerpc gcc-11-defconfig - FAILED > - powerpc gcc-8-defconfig - FAILED > - powerpc gcc-9-defconfig - FAILED > > > On Mon, 11 Oct 2021 at 19:28, Greg Kroah-Hartman > wrote: >> >> From: Naveen N. Rao >> >> [ Upstream commit 8bbc9d822421d9ac8ff9ed26a3713c9afc69d6c8 ] >> >> Only ignore the operation if dividing by 1. > > > > In file included from arch/powerpc/net/bpf_jit64.h:11, > from arch/powerpc/net/bpf_jit_comp64.c:19: > arch/powerpc/net/bpf_jit_comp64.c: In function 'bpf_jit_build_body': > arch/powerpc/net/bpf_jit_comp64.c:415:46: error: implicit declaration > of function 'PPC_RAW_LI'; did you mean 'PPC_RLWIMI'? PPC_RAW_LI() was added by commit 3a1812379163 ("powerpc/ppc-opcode: Consolidate powerpc instructions from bpf_jit.h") Priori to that you have to use PPC_LI() instead, with the same arguments. Christophe > [-Werror=implicit-function-declaration] > 415 | EMIT(PPC_RAW_LI(dst_reg, 0)); > | ^~~~~~~~~~ > arch/powerpc/net/bpf_jit.h:32:34: note: in definition of macro 'PLANT_INSTR' > 32 | do { if (d) { (d)[idx] = instr; } idx++; } while (0) > | ^~~~~ > arch/powerpc/net/bpf_jit_comp64.c:415:41: note: in expansion of macro 'EMIT' > 415 | EMIT(PPC_RAW_LI(dst_reg, 0)); > | ^~~~ > cc1: all warnings being treated as errors > > Reported-by: Linux Kernel Functional Testing > > -- > Linaro LKFT > https://lkft.linaro.org > ReplyReply to allForward >