From: "Nakajima, Jun" <jun.nakajima@intel.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
"Mallick, Asit K" <asit.k.mallick@intel.com>,
"Saxena, Sunil" <sunil.saxena@intel.com>
Subject: [PATCH] fixes for building kernel using Intel compiler
Date: Fri, 18 Oct 2002 16:48:34 -0700 [thread overview]
Message-ID: <F2DBA543B89AD51184B600508B68D4000E6ADE5B@fmsmsx103.fm.intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6625 bytes --]
Hi Linus,
Attached is the patch that resolves some of the redundant code and casting
that are required to build the Linux kernel usning Intel compiler. We would
like to get this patch incorporated to allow the kernel built with Intel
Compiler.
Thanks,
Jun Nakajima
============================================================================
=================diff -ur linux-2.5.43.orig/arch/i386/kernel/ioport.c
linux-2.5.43/arch/i386/kern
el/ioport.c
--- linux-2.5.43.orig/arch/i386/kernel/ioport.c Fri Oct 18 15:19:35 2002
+++ linux-2.5.43/arch/i386/kernel/ioport.c Fri Oct 18 16:10:13 2002
@@ -108,9 +108,8 @@
* code.
*/
-asmlinkage int sys_iopl(unsigned long unused)
+asmlinkage int sys_iopl(struct pt_regs * regs)
{
- struct pt_regs * regs = (struct pt_regs *) &unused;
unsigned int level = regs->ebx;
unsigned int old = (regs->eflags >> 12) & 3;
diff -ur linux-2.5.43.orig/drivers/net/wireless/airo.c
linux-2.5.43/drivers/net/
wireless/airo.c
--- linux-2.5.43.orig/drivers/net/wireless/airo.c Fri Oct 18 15:19:35
2002
+++ linux-2.5.43/drivers/net/wireless/airo.c Fri Oct 18 15:28:06 2002
@@ -97,12 +97,12 @@
infront of the label, that statistic will not be included in the list
of statistics in the /proc filesystem */
-#define IGNLABEL 0&(int)
+#define IGNLABEL (0,)
static char *statsLabels[] = {
"RxOverrun",
- IGNLABEL "RxPlcpCrcErr",
- IGNLABEL "RxPlcpFormatErr",
- IGNLABEL "RxPlcpLengthErr",
+ IGNLABEL /* "RxPlcpCrcErr", */
+ IGNLABEL /* "RxPlcpFormatErr", */
+ IGNLABEL /* "RxPlcpLengthErr", */
"RxMacCrcErr",
"RxMacCrcOk",
"RxWepErr",
@@ -146,15 +146,15 @@
"HostRxBc",
"HostRxUc",
"HostRxDiscard",
- IGNLABEL "HmacTxMc",
- IGNLABEL "HmacTxBc",
- IGNLABEL "HmacTxUc",
- IGNLABEL "HmacTxFail",
- IGNLABEL "HmacRxMc",
- IGNLABEL "HmacRxBc",
- IGNLABEL "HmacRxUc",
- IGNLABEL "HmacRxDiscard",
- IGNLABEL "HmacRxAccepted",
+ IGNLABEL /* "HmacTxMc", */
+ IGNLABEL /* "HmacTxBc", */
+ IGNLABEL /* "HmacTxUc", */
+ IGNLABEL /* "HmacTxFail", */
+ IGNLABEL /* "HmacRxMc", */
+ IGNLABEL /* "HmacRxBc", */
+ IGNLABEL /* "HmacRxUc", */
+ IGNLABEL /* "HmacRxDiscard", */
+ IGNLABEL /* "HmacRxAccepted", */
"SsidMismatch",
"ApMismatch",
"RatesMismatch",
@@ -162,26 +162,26 @@
"AuthTimeout",
"AssocReject",
"AssocTimeout",
- IGNLABEL "ReasonOutsideTable",
- IGNLABEL "ReasonStatus1",
- IGNLABEL "ReasonStatus2",
- IGNLABEL "ReasonStatus3",
- IGNLABEL "ReasonStatus4",
- IGNLABEL "ReasonStatus5",
- IGNLABEL "ReasonStatus6",
- IGNLABEL "ReasonStatus7",
- IGNLABEL "ReasonStatus8",
- IGNLABEL "ReasonStatus9",
- IGNLABEL "ReasonStatus10",
- IGNLABEL "ReasonStatus11",
- IGNLABEL "ReasonStatus12",
- IGNLABEL "ReasonStatus13",
- IGNLABEL "ReasonStatus14",
- IGNLABEL "ReasonStatus15",
- IGNLABEL "ReasonStatus16",
- IGNLABEL "ReasonStatus17",
- IGNLABEL "ReasonStatus18",
- IGNLABEL "ReasonStatus19",
+ IGNLABEL /* "ReasonOutsideTable", */
+ IGNLABEL /* "ReasonStatus1", */
+ IGNLABEL /* "ReasonStatus2", */
+ IGNLABEL /* "ReasonStatus3", */
+ IGNLABEL /* "ReasonStatus4", */
+ IGNLABEL /* "ReasonStatus5", */
+ IGNLABEL /* "ReasonStatus6", */
+ IGNLABEL /* "ReasonStatus7", */
+ IGNLABEL /* "ReasonStatus8", */
+ IGNLABEL /* "ReasonStatus9", */
+ IGNLABEL /* "ReasonStatus10", */
+ IGNLABEL /* "ReasonStatus11", */
+ IGNLABEL /* "ReasonStatus12", */
+ IGNLABEL /* "ReasonStatus13", */
+ IGNLABEL /* "ReasonStatus14", */
+ IGNLABEL /* "ReasonStatus15", */
+ IGNLABEL /* "ReasonStatus16", */
+ IGNLABEL /* "ReasonStatus17", */
+ IGNLABEL /* "ReasonStatus18", */
+ IGNLABEL /* "ReasonStatus19", */
"RxMan",
"TxMan",
"RxRefresh",
diff -ur linux-2.5.43.orig/include/asm-i386/bugs.h
linux-2.5.43/include/asm-i386
/bugs.h
--- linux-2.5.43.orig/include/asm-i386/bugs.h Fri Sep 27 14:49:09 2002
+++ linux-2.5.43/include/asm-i386/bugs.h Fri Oct 18 16:11:56 2002
@@ -76,14 +76,6 @@
return;
}
-/* Enable FXSR and company _before_ testing for FP problems. */
- /*
- * Verify that the FXSAVE/FXRSTOR data will be 16-byte aligned.
- */
- if (offsetof(struct task_struct, thread.i387.fxsave) & 15) {
- extern void __buggy_fxsr_alignment(void);
- __buggy_fxsr_alignment();
- }
if (cpu_has_fxsr) {
printk(KERN_INFO "Enabling fast FPU save and restore... ");
set_in_cr4(X86_CR4_OSFXSR);
diff -ur linux-2.5.43.orig/include/linux/mtd/compatmac.h
linux-2.5.43/include/li
nux/mtd/compatmac.h
--- linux-2.5.43.orig/include/linux/mtd/compatmac.h Fri Sep 27 14:50:29
2002
+++ linux-2.5.43/include/linux/mtd/compatmac.h Fri Oct 18 15:28:06 2002
@@ -193,6 +193,7 @@
#define spin_lock_bh(lock) do {start_bh_atomic();spin_lock(lock);} while(0)
#define spin_unlock_bh(lock) do {spin_unlock(lock);end_bh_atomic();}
while(0)
#else
+#include <linux/interrupt.h>
#include <asm/softirq.h>
#include <linux/spinlock.h>
#endif
diff -ur linux-2.5.43.orig/kernel/module.c linux-2.5.43/kernel/module.c
--- linux-2.5.43.orig/kernel/module.c Fri Sep 27 14:49:13 2002
+++ linux-2.5.43/kernel/module.c Fri Oct 18 15:28:06 2002
@@ -425,11 +425,11 @@
printk(KERN_ERR "init_module: mod->deps out of bounds.\n");
goto err2;
}
- if (mod->init && !mod_bound(mod->init, 0, mod)) {
+ if (mod->init && !mod_bound((unsigned long)mod->init, 0, mod)) {
printk(KERN_ERR "init_module: mod->init out of bounds.\n");
goto err2;
}
- if (mod->cleanup && !mod_bound(mod->cleanup, 0, mod)) {
+ if (mod->cleanup && !mod_bound((unsigned long)mod->cleanup, 0, mod))
{
printk(KERN_ERR "init_module: mod->cleanup out of
bounds.\n");
goto err2;
}
@@ -449,7 +449,7 @@
goto err2;
}
if (mod_member_present(mod, can_unload)
- && mod->can_unload && !mod_bound(mod->can_unload, 0, mod)) {
+ && mod->can_unload && !mod_bound((unsigned long)mod->can_unload,
0,
mod)) {
printk(KERN_ERR "init_module: mod->can_unload out of
bounds.\n")
;
goto err2;
}
[-- Attachment #2: icc-build-2.5.43.ZIP --]
[-- Type: application/octet-stream, Size: 1644 bytes --]
next reply other threads:[~2002-10-18 23:42 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-18 23:48 Nakajima, Jun [this message]
2002-10-19 0:08 ` Greg KH
2002-10-21 12:48 ` Alan Cox
2002-10-21 15:56 ` Nakajima, Jun
2002-10-21 17:06 ` Brian Gerst
2002-10-22 6:09 ` Greg KH
[not found] <F2DBA543B89AD51184B600508B68D4000E6ADE5B@fmsmsx103.fm.intel.com.suse.lists.linux.kernel>
2002-10-19 0:07 ` Andi Kleen
2002-10-19 0:15 ` David S. Miller
2002-10-19 0:25 ` Andi Kleen
2002-10-19 0:45 Nakajima, Jun
2002-10-19 1:02 ` Andi Kleen
2002-10-19 1:16 Nakajima, Jun
2002-10-19 2:17 Nakajima, Jun
2002-10-19 2:29 ` Andi Kleen
2002-10-21 9:21 ` Pavel Machek
2002-10-21 18:28 Ulrich Weigand
[not found] <A9EA4AD6F6B9D511BBED00508B66C69A04B37747@fmsmsx111.fm.intel.com>
2002-10-22 22:41 ` Suresh Siddha
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=F2DBA543B89AD51184B600508B68D4000E6ADE5B@fmsmsx103.fm.intel.com \
--to=jun.nakajima@intel.com \
--cc=asit.k.mallick@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sunil.saxena@intel.com \
--cc=torvalds@transmeta.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®