FASTCALL macro used outside of #ifdef __KERNEL__

Chris Butler (chrisb@sandy.force9.co.uk)
Mon, 17 Aug 1998 01:33:22 +0000 (UTC)


--ELM903317602-12848-0_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hello,

In include/asm/system.h, the FASTCALL macro is used outside of '#ifdef
__KERNEL__' - when FASTCALL is declared *inside* '#ifdef __KERNEL__',
thereby causing any program outside the kernel that includes this file
to fail (eg. libc-5.4.44)

Likkle patch attached.

--
Chris <chrisb@sandy.force9.co.uk>

--ELM903317602-12848-0_ Content-Type: text/plain Content-Disposition: inline; filename="/usr/src/linux-system.h.diff" Content-Transfer-Encoding: 7bit

--- linux/include/asm/system.h~ Mon Jul 27 16:57:47 1998 +++ linux/include/asm/system.h Mon Aug 17 01:10:50 1998 @@ -37,7 +37,9 @@ :"0" (0),"i" (FIRST_TSS_ENTRY<<3)) struct task_struct; /* one of the stranger aspects of C forward declarations.. */ +#ifdef __KERNEL__ extern void FASTCALL(__switch_to(struct task_struct *prev, struct task_struct *next)); +#endif /* * We do most of the task switching in C, but we need

--ELM903317602-12848-0_

--ELM903317602-12848-0_--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html