Subject: mips vs pcmcia - which wins?

From: Jim Freeman <[email-masked]>
Date: Tue, 23 Jan 2001 09:35:23 -0700

The following mips kernel patchlet:

	diff -u --new-file --recursive --exclude-from diff.exclude \
		linux-2.4.0/include/linux/sched.h \
		linux-mips.cvs/include/linux/sched.h
	--- linux-2.4.0/include/linux/sched.h   Thu Jan  4 15:50:47 2001
	+++ linux-mips.cvs/include/linux/sched.h        Wed Jan 10 21:52:59 2001
	@@ -562,6 +562,8 @@
	 extern int in_group_p(gid_t);
	 extern int in_egroup_p(gid_t);

	+extern void release(struct task_struct * p);
	+
	 extern void proc_caches_init(void);
	 extern void flush_signals(struct task_struct *);
	 extern void flush_signal_handlers(struct task_struct *);

causes i386 builds to fail:

make -C pcmcia modules
make[5]: Entering directory `/autobuild/public_html/project/build/rpmdir/BUILD/linux/drivers/pcmcia'
...
cs.c:93: `release' redeclared as different kind of symbol
/autobuild/public_html/project/build/rpmdir/BUILD/linux/include/linux/sched.h:565: previous declaration of `release'
cs.c:93: warning: `release' was declared `extern' and later `static'
make[5]: *** [cs.o] Error 1
make[5]: Leaving directory `/autobuild/public_html/project/build/rpmdir/BUILD/linux/drivers/pcmcia'
make[4]: *** [_modsubdir_pcmcia] Error 2

with the following i386 config options:

	...
	CONFIG_HOTPLUG=y

	#
	# PCMCIA/CardBus support
	#
	CONFIG_PCMCIA=m
	# CONFIG_CARDBUS is not set
	# CONFIG_I82365 is not set
	# CONFIG_TCIC is not set
	...

...jfree

---

From: Ralf Baechle <[email-masked]>
Date: Tue, 23 Jan 2001 09:07:56 -0800

On Tue, Jan 23, 2001 at 09:35:23AM -0700, Jim Freeman wrote:
> From: Jim Freeman <[email-masked]>
> Date:   Tue, 23 Jan 2001 09:35:23 -0700
> To: [email-masked], [email-masked]
> Subject: mips vs pcmcia - which wins?
> 

The function getting exported here changed it's name to release_task in
2.4; I've adjusted above declaration accordingly.

  Ralf