[PATCH] remove #ifdef __KERNEL__ from atomic.h
Ben Stanley
bds02 at uow.edu.au
Wed Sep 25 15:11:16 EST 2002
Hi,
I was trying to compile sumji (formerly xtunes), which requires
libCommonC++. I found that libCommonC++ would not compile, because it
needs to use the atomic functions declared in include/asm-ppc/atomic.h .
However, this file does not declare these functions unless __KERNEL__ is
defined. I believe that this is incorrect.
I have checked the i386 and s390 versions of atomic.h and they declare
the atomic functions regardless of the status of the __KERNEL__ macro.
Therefore I propose that it should be removed from asm-ppc/atomic.h, and
have attached a patch to effect this.
With this patch applied, I am able to compile libCommonC++.
Ben Stanley.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: atomic_ppc.patch
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20020925/db8aff10/attachment.asc>
More information about the Linuxppc-dev
mailing list