20 Aug 03:40
[PATCH -mm -v2 1/2] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
From: Huang Ying <ying.huang <at> intel.com>
Subject: [PATCH -mm -v2 1/2] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
Newsgroups: gmane.linux.kernel
Date: 2008-08-20 01:42:57 GMT
Subject: [PATCH -mm -v2 1/2] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
Newsgroups: gmane.linux.kernel
Date: 2008-08-20 01:42:57 GMT
asm/atomic.h contains both declaration and implementation of atomic_t. So there are some implementation related files included in asm/atomic.h. And atomic_t is a typedef. Combination of above makes it impossible to use atomic_t in files included by atomic.h. Such as atomic_t can not be used in linux/kernel.h on i386, because it is included by asm/atomic.h. >From the perspective of engineering, it is reasonable to separate declaration from implementation. So a new file atomic_def.h is added for every architecture to accommodate the declaration of atomic_t. Signed-off-by: Huang Ying <ying.huang <at> intel.com> --- include/asm-alpha/atomic.h | 10 +--------- include/asm-alpha/atomic_def.h | 13 +++++++++++++ include/asm-arm/atomic.h | 3 +-- include/asm-arm/atomic_def.h | 6 ++++++ include/asm-avr32/atomic.h | 2 +- include/asm-avr32/atomic_def.h | 6 ++++++ include/asm-blackfin/atomic.h | 4 +--- include/asm-blackfin/atomic_def.h | 8 ++++++++ include/asm-cris/atomic.h | 3 +-- include/asm-cris/atomic_def.h | 6 ++++++ include/asm-frv/atomic.h | 5 +---- include/asm-frv/atomic_def.h | 8 ++++++++ include/asm-h8300/atomic.h | 3 ++- include/asm-h8300/atomic_def.h | 6 ++++++ include/asm-ia64/atomic.h | 8 +------- include/asm-ia64/atomic_def.h | 11 +++++++++++(Continue reading)
RSS Feed