All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] mutex_init() error when build
@ 2006-05-15  9:50 Li Yi (Adam)
  2006-05-15 11:25 ` Philippe Gerum
  0 siblings, 1 reply; 4+ messages in thread
From: Li Yi (Adam) @ 2006-05-15  9:50 UTC (permalink / raw)
  To: Xenomai-help

[-- Attachment #1: Type: text/plain, Size: 1285 bytes --]

Hi,

I am using Xenomai-2.1.0 on Blackfin uClinux. When enabling "POSIX"
interface and build the kernel, I got error message:

"make
make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -C linux-2.6.x  || exit 1
make[1]: Entering directory
`/home/adam/workspace/kernel/adeos/uClinux-dist_0425/linux-2.6.x'
  CHK     include/linux/version.h
  CHK     include/linux/compile.h
  CHK     usr/initramfs_list
  CC      kernel/xenomai/skins/posix/syscall.o
kernel/xenomai/skins/posix/syscall.c:810: error: conflicting types for
'__mutex_init'
include/linux/mutex.h:94: error: previous declaration of '__mutex_init' was
here
kernel/xenomai/skins/posix/syscall.c:810: error: conflicting types for
'__mutex_init'
include/linux/mutex.h:94: error: previous declaration of '__mutex_init' was
here
make[5]: *** [kernel/xenomai/skins/posix/syscall.o] Error 1
make[4]: *** [kernel/xenomai/skins/posix] Error 2
make[3]: *** [kernel/xenomai/skins] Error 2
make[2]: *** [kernel/xenomai] Error 2
make[1]: *** [kernel] Error 2
"

include/linux/mutex.h:

extern void fastcall __mutex_init(struct mutex *lock, const char *name);

The function definition is different. I tried to add "static" in syscall.c:
__mutex_init(), still cannot work. Could you please help?

Thanks,
-Yi

[-- Attachment #2: Type: text/html, Size: 1540 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-15 11:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-15  9:50 [Xenomai-help] mutex_init() error when build Li Yi (Adam)
2006-05-15 11:25 ` Philippe Gerum
2006-05-15 11:43   ` Philippe Gerum
2006-05-15 11:49   ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.