Bug 8741
Summary: | include/asm-i386/page.h syntax causes 3rd-party compilation failure | ||
---|---|---|---|
Product: | Networking | Reporter: | Timothy Stotts (kernel_bugs) |
Component: | IPV4 | Assignee: | Stephen Hemminger (stephen) |
Status: | REJECTED INVALID | ||
Severity: | normal | CC: | akpm, bunk |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.22.x | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: | fix page.h syntax to be more standard C |
Description
Timothy Stotts
2007-07-12 10:31:04 UTC
Created attachment 12016 [details]
fix page.h syntax to be more standard C
Subject: Re: [Bugme-new] New: include/asm-i386/page.h syntax causes 3rd-party compilation failure On Thu, 12 Jul 2007 10:26:14 -0700 (PDT) bugme-daemon@bugzilla.kernel.org wrote: > 3rd-party applications, such as VMware, may fail to compile again header > file: > include/asm-i386/page.h > for the sole reason of `page.h' using a very special GCC syntax rather than a > more standard C syntax. > > The methods in question are: > static inline pte_t native_make_pte(unsigned long long val) > static inline pte_t native_make_pte(unsigned long val) Those applications should not be defining __KERNEL__, hence they should not be encountering this code. If the _are_ defining __KERNEL__, well, thwy should be prepared to handle kernel code. Sorry. I was not explict. They are kernel modules, so I assume they define __KERNEL__. Thanks. The kernel uses a superset of C, and compiling the kernel and modules with compilers that are not gcc compatible is not supported. |