Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1877085pxb; Mon, 18 Jan 2021 02:14:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgV6lvdZ8GRMwvMJ3/m29e0aRXquVIgD/6fK5XzjscGko4MavdI2I9mlrFFuvhuMcd0MGR X-Received: by 2002:a17:906:2617:: with SMTP id h23mr9174780ejc.168.1610964871932; Mon, 18 Jan 2021 02:14:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610964871; cv=none; d=google.com; s=arc-20160816; b=SadpzcJuDXYETZCXRA9JytV8Fv5q7B60GnB4vxEJ+H2zypDywWWRMiBYA9VzMilZDF 7Pi1273eP9N6DSwxY832V7OsoNKVFzSWX3Evr+7TKNYStryF35ADtLlusC6+hHM+d5Zr gli/KL17cE9SX5rAP2yaIvYUJU4put3NMKUaJ3zcTezj4ojzpe3ubtx9NDN4u5I0wey8 hAEcWmzUOSTBz+1axqcIS3ujM3WxQ7rjuSM9e0TGEIFVWDzFBPjgL6rtK9wkkMy9qM+n Jf9Zi9mq4GT0Y2oF85J6NaQ90WjkbEjg931I78zc9tXW5QMgQEkNCTQdUtOH0tNrZpgA tvLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=pVJ/2kAXp80yGaaJ9tEyByCdYDYWCg2HhIUEH5Fl9II=; b=ilLU6kmXOzp2BIwTktx7Ikg+eCN5uxEBtXLN0HgZhBXSHjNlFUvWhbpkfR/V7qKGD7 HOrfLcQvEIn0A41yArtFsjWTwtPDdLhdS/IozdosHzyUsr1PwIhfdL0hlGVBTmMsfQKq NecRPrKwQbxte5FQ0ncHSfJxMvbhA2acMAmcexPt6GLa9AuoSQyksjGaf/PNEDJ/CYHz 5eWmb7Qhq8DbBj2OqI4ycymJ4Hd5iuGOMSVEqQqzDVAlSk1+fG4gtqspZ5yjZiMomnFn MIJEyh6MNSGMG0XNK7BTY3v7gxXFXWmyme8YuYzS64fs1RoHEac2HzCnWj0h4ddRY6Kq yM9g== 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 o18si7377628edq.530.2021.01.18.02.13.51; Mon, 18 Jan 2021 02:14:31 -0800 (PST) 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 S2389253AbhARJqs (ORCPT + 99 others); Mon, 18 Jan 2021 04:46:48 -0500 Received: from mail.loongson.cn ([114.242.206.163]:48350 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388946AbhARJfb (ORCPT ); Mon, 18 Jan 2021 04:35:31 -0500 Received: from [10.130.0.135] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxSL4PVAVguK4GAA--.10639S3; Mon, 18 Jan 2021 17:25:36 +0800 (CST) Subject: Re: [PATCH 2/2] compiler.h: Include asm/rwonce.h under ARM64 and ALPHA to fix build errors To: Yonghong Song , Luc Van Oostenryck , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , John Fastabend , KP Singh , Nathan Chancellor , Nick Desaulniers References: <1610535453-2352-1-git-send-email-yangtiezhu@loongson.cn> <1610535453-2352-3-git-send-email-yangtiezhu@loongson.cn> <33050fcc-a4a0-af2e-6fba-dca248f5f23b@fb.com> Cc: linux-sparse@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Sergei Shtylyov , kernel test robot From: Tiezhu Yang Message-ID: <5663510d-2aa5-c1f2-d0c8-5313cc2a4a18@loongson.cn> Date: Mon, 18 Jan 2021 17:25:35 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <33050fcc-a4a0-af2e-6fba-dca248f5f23b@fb.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf9DxSL4PVAVguK4GAA--.10639S3 X-Coremail-Antispam: 1UD129KBjvJXoW7uw1rtF4UCF4xKw1xJr13Jwb_yoW8GFWxpF 4DZr4kKrZ8Wry5JrsYvr12kr43A39xGrW5tF97W348Z3WIqFy7GanYgwn8CF4xWanIqFWI k3W2gry3Jw4jv37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUB014x267AKxVW5JVWrJwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j 6r4UJwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvEwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2Y2ka 0xkIwI1lc7I2V7IY0VAS07AlzVAYIcxG8wCY02Avz4vE14v_GFWl42xK82IYc2Ij64vIr4 1l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK 67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r4a6rW5MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI 8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAv wI8IcIk0rVWrJr0_WFyUJwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I 0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfU83kuDUUUU X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/14/2021 01:14 AM, Yonghong Song wrote: > I do not think this fix is correct. x86 does not define its own > rwonce.h and still compiles fine. > > As noted in the above, we have include/asm-generic/rwonce.h. > Once you do a proper build, you will have rwonce.h in arch > generated directory like > > -bash-4.4$ find . -name rwonce.h > ./include/asm-generic/rwonce.h > ./arch/alpha/include/asm/rwonce.h > ./arch/arm64/include/asm/rwonce.h > ./arch/x86/include/generated/asm/rwonce.h > > for mips, it should generated in > arch/mips/include/generated/asm/rwonce.h. Please double check why this > does not happen. Hi Yonghong, Thank you very much for your reply. You are right, this patch is meaningless. I find this build error when make M=samples/bpf after make clean, so the ./arch/mips/include/generated/asm/rwonce.h is not exist. After rebuild the kernel, this header file can be found when make M=samples/bpf due to samples/bpf/Makefile contains $LINUXINCLUDE. $ find . -name rwonce.h ./include/asm-generic/rwonce.h ./arch/arm64/include/asm/rwonce.h ./arch/mips/include/generated/asm/rwonce.h ./arch/alpha/include/asm/rwonce.h $ cat ./arch/mips/include/generated/asm/rwonce.h #include Hi Sergei and kernel test robot, Thank you for your suggestion and report, please ignore this patch, sorry for the noise. Thanks, Tiezhu