lkml.org 
[lkml]   [2008]   [Oct]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 6 Oct 2008 07:00:22 +0200
FromIngo Molnar <>
SubjectRe: [PATCH -mm -v3] Separate atomic_t declaration from asm/atomic.h into asm/atomic_def.h
* Huang Ying <ying.huang@intel.com> wrote:

> From: Huang Ying <ying.huang@intel.com>
> 
> 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.
> 
> 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.
> 
> Includes fixes from Andrew Moton.
> 
> Signed-off-by: Huang Ying <ying.huang@intel.com>
> ---
> 
>  include/asm-x86/atomic_32.h             |   10 +---------
>  include/asm-x86/atomic_64.h             |   10 +---------
>  include/asm-x86/atomic_def.h            |   13 +++++++++++++

nice cleanup!

One small request: could you please use the standard naming convention 
please and rename it to atomic_types.h?

That moves it in line with existing data type files: kvm_types.h, 
mm_types.h, posix_types.h, spinlock_types.h, amd_iommu_types.h, 
kmap_types.h, etc.

Easiest is to do it via:

 sed -i 's/atomic_def.h/atomic_types.h/g' patches/separate-atomic.patch

Reviewed-by: Ingo Molnar <mingo@elte.hu>

Thanks,

	Ingo


\
 
 \ /
  Last update: 2008-10-06 07:03    [from the cache]
©2003-2008