__STDC_VERSION__ is not know in Linux kernel module, why ?
Shlomi Fish
shlomif at gmail.com
Sun May 17 18:41:38 IDT 2020
Hi Lev!
On Sun, May 17, 2020 at 3:33 PM Lev Olshvang <levonshe at yandex.com> wrote:
> I am trying to include ELF object file into kernel module
>
> It gives me a warning of undefined __STDC_VERSION__ symbol
> "__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 built in gcc macro
>
> Please comment
>
Can you provide more details about this issue?
See:
* https://github.com/shlomif/writing-the-perfect-question
* https://github.com/shlomif/how-to-share-code-online
* http://www.sscce.org/
Did you compile that ELF object yourself? If so - can you provide sources?
Did you use the kernel build system:
https://www.kernel.org/doc/html/latest/kbuild/index.html ?
Note that kernel dev is not my forte .
Lev
> P.S.
> BTW, I am looking for a job, try me !
>
>
>
>
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
--
Shlomi Fish https://www.shlomifish.org/
Buddha has the Chuck Norris nature.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20200517/6c737316/attachment.html>
More information about the Linux-il
mailing list