From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8160FC43331 for ; Wed, 13 Nov 2019 07:54:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 51A40222C6 for ; Wed, 13 Nov 2019 07:54:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="Ymv9OKzC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726957AbfKMHym (ORCPT ); Wed, 13 Nov 2019 02:54:42 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:41877 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbfKMHyl (ORCPT ); Wed, 13 Nov 2019 02:54:41 -0500 Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (authenticated) by conssluserg-06.nifty.com with ESMTP id xAD7sHL7006673; Wed, 13 Nov 2019 16:54:17 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com xAD7sHL7006673 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1573631658; bh=9fiH9bvw8H7RO9dv79xl9+Q9OlMLcBXx3Oz2oKfIJao=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Ymv9OKzCzMUrDRF+Wn3SD01MChzuysHvmsFOitoQP/Ea00IP+KyyEFyG/Ib+++mCl rdn4LWAQ74t6TcAEw1ArAI9wa0pnigjZsZatN+Eh6EL3FGPi/dPgWTkkRXQKDdJe0y f9Wljfvy3OXpKVRUd+csoVCYI6xta8QRAlG7BGyPu8nkw4yyUjyUqotvd64UMfz7I0 u4MhxjdCL8bQ/UmVLo3fk+avxxPkPCE2Eiqie33xjDhxaHaTIRCrYokB5cfZAodXql 61vdZle7KtJUIJftuy5B3LcaflXBdyDdUHHzO+zw/lJ4S6qgt4qlDIulOnJlsB9fz3 Xq02vy0SXLIhg== X-Nifty-SrcIP: [209.85.217.49] Received: by mail-vs1-f49.google.com with SMTP id q21so760538vsg.3; Tue, 12 Nov 2019 23:54:17 -0800 (PST) X-Gm-Message-State: APjAAAU3eTOiUYQhevJ/UUw9A3ecVoiqjt2nqk1rguE74Gm48jSIhg4V voX2XqQvUNY+srTVucvReM3OwgNbhlAmCjr97ec= X-Google-Smtp-Source: APXvYqzFDCIx64eXzgZHHZvzce/JT7538765oDtHhVnN1MGrBKUVL68GK8zhGP8UXayxYTIkhDViw9m8btElx6qhKyc= X-Received: by 2002:a67:d31b:: with SMTP id a27mr1083694vsj.215.1573631656052; Tue, 12 Nov 2019 23:54:16 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: From: Masahiro Yamada Date: Wed, 13 Nov 2019 16:53:40 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Question about "asm/rwonce.h: No such file or directory" To: Xiao Yang Cc: Daniel Borkmann , Will Deacon , linux-arch , Linux Kernel Mailing List , Alexei Starovoitov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > Best Regards, > > Xiao Yang > > -- Best Regards Masahiro Yamada