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.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 D7D68C433E2 for ; Wed, 20 May 2020 08:46:05 +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 862CF207D3 for ; Wed, 20 May 2020 08:46:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="WXy/6eal"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="BzYqv/t8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 862CF207D3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.93) (envelope-from ) id 1jbKMV-0006Tm-7U for kernelnewbies@archiver.kernel.org; Wed, 20 May 2020 04:46:03 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jbKKg-0004Ho-Q2 for kernelnewbies@kernelnewbies.org; Wed, 20 May 2020 04:44:11 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id AAB055C018D; Wed, 20 May 2020 04:44:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 20 May 2020 04:44:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=mO4NDnFTn4YC6udpcXLP9T/z/f4 J29v4LJyHW4B2XpA=; b=WXy/6eal6dfHP5dCp1cWVAx9kqPDfJDdrWJO7MuijI8 gU+qzKsMRrh7gjPN7U9wAnTzitNnk31AT1qAANSwwqWT3Vx9j//T2lg9H+je0F1c rrHf3GqaG+SVG7wytFsZL9N36GfoY/iVB7fmtMGul0qbvLwJibaTaUViN2DT8RkO yxgwDh8FdfJU2QewyDB2/hCPbSqwCGZbTGTy67wBV1tvPnDsIyWrJB3O0f55zOuW bRtJ/0j268V7oJ8weZOItXhDMAM9eTZcNSyIVb1O/1noEj83IpX2w17YBaY/eyrs fJ3fJUy+YcVIM9KQzOEfOZqdVSCFAXEzOUUc8osPi/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=mO4NDn FTn4YC6udpcXLP9T/z/f4J29v4LJyHW4B2XpA=; b=BzYqv/t8nvKU/lsmUn89Md LROJjUVPhnfdUgA1o6AjEjKqylr/GmYtY3hizwNoNbkSSDncRLwDtgH63l96mIGe HOPNPwKZFZ+7PD7AVfLFw+U8UAfjwwJ7QzLAnR7oyDWzij3ErmD0i19WcUuS7Jzt eQ270fDhuMc2yNmLxidX6H3jqLm0WYAbT8PfIrNTlW1mmhgHLNUAgcQWDrYvm03h 7aZsJpg1T+vib1NZ9dfmgF6pvr57h/pDZA/CEoI/KXZbkl7ln1v0mB/7//dNQBP9 fFKSoSmZGy4jvGCr5DjnjFqUTB6Lr1InKdWbcSKYB/EVBur8BsJ0qLZ+richTk0w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddtledgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomhepifhrvghgucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheq necuggftrfgrthhtvghrnhepjedttdehledvgfdvgeetveetueehudegjeekueeiffetge ektedvfeeijeevgeetnecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppeekfedrkeei rdekledruddtjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 2793C3066434; Wed, 20 May 2020 04:44:06 -0400 (EDT) Date: Wed, 20 May 2020 10:44:04 +0200 From: Greg KH To: "Lev R. Oshvang ." Subject: Re: __STDC_VERSION__ : What C dialect c89, c99,gnu90 kernel compiies Message-ID: <20200520084404.GB2837844@kroah.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: kernelnewbies@kernelnewbies.org 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org On Wed, May 20, 2020 at 10:30:53AM +0300, Lev R. Oshvang . wrote: > Hi All, > > I am building out of tree kernel module. Did you read the kernel documentation for how to do this? > I am trying to include user-space lib into kernel module You can't do this, sorry, it's not allowed at all, unless you build the code for that library into your kernel module directly. What problem are you trying to solve with this? > This API gives me the following warning : > > "__STDC_VERSION__" is not defined, evaluates to 0 > > But continues and resulted module works, > > I see from https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html > that _STDC_VERSION__ is a built-in gcc macro, so I think that evenh > kernel compilation should be able to see it. There is no standard c library within the kernel, sorry. greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies