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=-2.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 3F5F3C7618B for ; Thu, 25 Jul 2019 05:46:10 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 74A8921880 for ; Thu, 25 Jul 2019 05:46:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=swemel.ru header.i=@swemel.ru header.b="l6UtayB5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 74A8921880 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=swemel.ru Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92) (envelope-from ) id 1hqWZS-0005ar-Aa; Thu, 25 Jul 2019 01:45:42 -0400 Received: from mail.swemel.ru ([79.135.238.163]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1hqWZP-0005aa-DJ for kernelnewbies@kernelnewbies.org; Thu, 25 Jul 2019 01:45:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=swemel.ru; s=17022016; h=Subject:Content-Transfer-Encoding:Content-Type:In-Reply-To: References:To:MIME-Version:From:Date:Message-ID; bh=5lN5fUF5sB7ZRUsd5ukHih4ob0gGPC0Ww1qCFiS6Y3k=; b=l6UtayB5EuA6G5GnTHO6SFBnH5 WhDKC6O+rcYIV3HHUBswDTRctPkYwNJGJrrFoM3yTJ/IfCroq7MyiBFMf1xrsfij/kyyPpgqy3A/4 PkCNY99Rh5RLAZvxpQYRB+uqzGAqNeEsxY/W+vEol4fIYvYrCL3JE3hnkdYHVwiXVJ3M=; Received: from [10.1.20.204] (helo=mail.swemel.grp) by mail.swemel.ru with esmtp (Exim 4.86_2) (envelope-from ) id 1hqWZJ-00027y-0I for kernelnewbies@kernelnewbies.org; Thu, 25 Jul 2019 08:45:35 +0300 Received: from [10.1.200.208] ([10.1.200.208]) by mail.swemel.grp with Microsoft SMTPSVC(6.0.3790.4675); Thu, 25 Jul 2019 08:45:33 +0300 Message-ID: <5D3941FC.7050608@swemel.ru> Date: Thu, 25 Jul 2019 08:45:32 +0300 From: Konstantin Andreev Organization: Swemel JSC User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: kernelnewbies@kernelnewbies.org References: <20190724091100.lcfw3y7nbcelvgrc@viti.kaiser.cx> <20190724092133.GA6035@kroah.com> <20190724212053.zynpswlhepi52dhi@viti.kaiser.cx> In-Reply-To: <20190724212053.zynpswlhepi52dhi@viti.kaiser.cx> X-OriginalArrivalTime: 25 Jul 2019 05:45:33.0534 (UTC) FILETIME=[2D1337E0:01D542AC] X-SA-Exim-Connect-IP: 10.1.20.204 X-SA-Exim-Mail-From: andreev@swemel.ru Subject: Re[3]: internal / external include files X-SA-Exim-Version: 4.2.1 (built Sun, 16 Aug 2015 09:47:37 +0000) X-SA-Exim-Scanned: No (on mail.swemel.ru); Unknown failure X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kernelnewbies-bounces@kernelnewbies.org Hi, Martin. The [$KERNEL_ROOT/include/uapi/linux/stddef.h] you are talking about is just a few lines: | #include | | #ifndef __always_inline | #define __always_inline inline | #endif it turns into | #ifndef __always_inline | #define __always_inline inline | #endif after [make headers_install] installs it into [/usr/include/linux/stddef.h]. Userspace applications shall not use kernel tree directly. Regards, Konstantin. Martin Kaiser, 25 jul 2010 00:20 msk: > > I called gcc with -I $KERNEL_ROOT/include/uapi. This is the chain of files that were included. > > my_app.c > $GCC_SYSROOT/usr/include/netinet/in.h > ... > > and the error is > > $KERNEL_ROOT/include/uapi/linux/stddef.h:2:34: fatal error: linux/compiler_types.h: No such file or directory #include > > Best regards, Martin _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies