Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1576121ybc; Wed, 13 Nov 2019 00:37:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxvlo7z9C5O88lSmZ5uxzrrslki26vg6oluYXZiJTCIbZ5Z+HlHpYPYeDeS4kdjf51cpgCq X-Received: by 2002:a17:906:8591:: with SMTP id v17mr1589100ejx.185.1573634271908; Wed, 13 Nov 2019 00:37:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573634271; cv=none; d=google.com; s=arc-20160816; b=UDia9axMmdDjic0KxpfJUYLjm6fik1SHtIFl0L33XU2YTs8yL4uc9N+emSonuIoQ/x 2XobOgCw9esiCLOmToIH79EDmn6dqzVJCbcTv6NkgiNjmBtBtrhv08rPJMUvOiP4kgxb 3RII8z0YJGhOAMzeSM7Dbhshq3E8JV48dzzuAD63VLlSC5z5n22Wp/C7b2qB1KkHMsst 6BMXMCxL3vs0yZDN020z4xJIxe99rLWdL+HxqSRgMaqaBZEkztDQCoEhlCC0IcLd83jC 6sjjEWwHnRDnCFf8yDnkpmf7l3C5p2SIIxUXZh2b3rGEC74ynC+7aAmT+PaJbTLFox40 Fg9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=dA+ZN83cVR4cL1YH5CVSfq7SE556RGr+LTFA07tkT5E=; b=oDm1N8b/MwVOHohtGFzzpSbj9Xz7cj1BHy0wC67V0npS31K0gutDJJkqaXjfC6umvz EWCAPWobOQTbj3lAnRJhaa1y45axz72Gi/AhgWbdSgw9krMBIvhxNtVMSJd0CywtPl7r wkMqn1tiSfSt5k1ksBvhw7Bb+qdW8JWM9PCrold7Em7O8hX2wX/yc3BxJbYry3llApNq /pAo0iUtYSRMH85rianH/DJp3uLxC1CSSRLq9WzYVVpMn95P+/IQ4bGMHFOVW2J5a74/ ghzQzDLRvh1gaD0ipb5tuF8eRf0RIPEXgmEHDLEbjZUt1gy+5N7l2PCeQu+aSFD6zsM8 +Bbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=cFFZOvWI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c44si842968ede.398.2019.11.13.00.37.27; Wed, 13 Nov 2019 00:37:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=cFFZOvWI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727151AbfKMIgY (ORCPT + 99 others); Wed, 13 Nov 2019 03:36:24 -0500 Received: from m12-14.163.com ([220.181.12.14]:50514 "EHLO m12-14.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbfKMIgY (ORCPT ); Wed, 13 Nov 2019 03:36:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Subject:From:Message-ID:Date:MIME-Version; bh=dA+ZN 83cVR4cL1YH5CVSfq7SE556RGr+LTFA07tkT5E=; b=cFFZOvWI+2mgSBD6/Rr1E CbzfpiM1dd4QzN0vlqzn4dXbsAbCmPLaMAWIoL1+vVx2vqxHcRP7T8rI7x6VMe/0 QzAXfscip9jNP2VuQqiliQYVGUIP5l1BQkh3B1LD37MgU5PXMpjdVWOiQUL8uUnl wH++EsFKgxtzh0g2RYAytw= Received: from [192.168.1.133] (unknown [112.25.212.39]) by smtp10 (Coremail) with SMTP id DsCowADHz2ddwMtd9XrUCg--.280S2; Wed, 13 Nov 2019 16:35:43 +0800 (CST) Subject: Re: Question about "asm/rwonce.h: No such file or directory" To: Masahiro Yamada Cc: Daniel Borkmann , Will Deacon , linux-arch , Linux Kernel Mailing List , Alexei Starovoitov References: <1da2db04-da6a-cedb-e85a-6ded68dada82@163.com> <20191112123125.GD17835@willie-the-truck> <32a3b660-f4d2-268e-2206-d50073298c0c@iogearbox.net> <021e7b46-047e-d381-9dca-bd61db08e4f8@163.com> From: Xiao Yang Message-ID: <50602386-68b1-be38-a022-0bcf9df6a54e@163.com> Date: Wed, 13 Nov 2019 16:35:41 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-CM-TRANSID: DsCowADHz2ddwMtd9XrUCg--.280S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrZw47Wr13AFWxCw4kCF13twb_yoWDKrgEvw 10krykCr1fKr13JanxKFsxXFsrKw4kAryDX34rurn0gwsxAFZIg3ZYqFn5ZFs5t398ZFn3 WF1FvFsa9F98ujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU55u4UUUUUU== X-Originating-IP: [112.25.212.39] X-CM-SenderInfo: 5lfhs5xdqj5xldr6il2tof0z/xtbB0h9sXlUMSx9uAQAAsd Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/13/19 3:53 PM, Masahiro Yamada wrote: > On Wed, Nov 13, 2019 at 4:17 PM Xiao Yang wrote: >> On 11/13/19 2:57 PM, Masahiro Yamada wrote: >>> Sorry, I really do not understand what you are doing. >>> >>> include/linux/compiler.h is only for kernel-space. >>> Shrug if a user-land program includes it. >> Hi Masahiro, >> >> For building tools/bpf, it is good to fix the compiler error by Daniel's >> patch(i.e. use linux/filter from linux header). >> >> linux/compiler.h may be used by other code in kernel. Is it possible to >> trigger the same error when the other code >> >> including linux/compiler.h is built? Is this kind of code able to find >> the location of ? > > is also kernel-only header. > > The kernel code can find , but user-land code cannot. Hi Masahiro, Sorry, I am not familar with it. Thanks a lot for your explanation and I have seen the LINUXINCLUDE variable in Makefile. I will try to send a patch as Daniel suggested. Best Regards, Xiao Yang > > > > >> Best Regards, >> >> Xiao Yang >> >> >