Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
From: 67hz <67hz@protonmail.com>
To: Greg KH <greg@kroah.com>
Cc: "Lev R. Oshvang ." <levonshe@gmail.com>,
	"kernelnewbies@kernelnewbies.org"
	<kernelnewbies@kernelnewbies.org>
Subject: Re: __STDC_VERSION__ : What C dialect c89, c99,gnu90 kernel compiies
Date: Wed, 20 May 2020 15:13:20 +0000
Message-ID: <OrXAcBtRsoivhATmHo7RkY-z9-Zme1HyhExAHQniWwjQmKpz71PuwMVbvgEakvGamQo3rALh4fk-zDHQGpNdDlsK8dyWowHFtL9vwFPTuec=@protonmail.com> (raw)
In-Reply-To: <20200520084404.GB2837844@kroah.com>


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, May 20, 2020 3:44 AM, Greg KH <greg@kroah.com> wrote:

> 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.
>

If you are curious which symbols are in the kernel's scope, i.e., what functions are available to the kernel, check out /proc/kallsyms.



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-20  7:30 Lev R. Oshvang .
2020-05-20  8:44 ` Greg KH
2020-05-20 15:13   ` 67hz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='OrXAcBtRsoivhATmHo7RkY-z9-Zme1HyhExAHQniWwjQmKpz71PuwMVbvgEakvGamQo3rALh4fk-zDHQGpNdDlsK8dyWowHFtL9vwFPTuec=@protonmail.com' \
    --to=67hz@protonmail.com \
    --cc=greg@kroah.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=levonshe@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git