lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 15 Oct 2008 15:11:19 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Matthew Wilcox <matthew@....cx>
Cc:	mingo@...e.hu, ying.huang@...el.com, linux-kernel@...r.kernel.org,
	hpa@...or.com, tglx@...utronix.de
Subject: Re: [PATCH -mm -v5] Separate atomic_t declaration from asm/atomic.h
 into asm/atomic_def.h

On Tue, 14 Oct 2008 12:47:19 -0600
Matthew Wilcox <matthew@....cx> wrote:

> On Fri, Oct 10, 2008 at 03:54:50PM -0700, Andrew Morton wrote:
> > I have a note here that Matthew has proposed a different way of doing
> > all this.  I don't immediately recall the details.
> > 
> > Can we get a refresh on all of that please?
> 
> I didn't remember either, but having just reviewed my inbox from August,
> I said that all architectures basically use:
> 
> typedef struct { volatile int counter; } atomic_t;
> #ifdef CONFIG_64BIT
> typedef struct { volatile long counter; } atomic64_t;
> #endif
> 
> and that should just be put in <linux/atomic_types.h>.
> 
> Roman Zippel did me one better and suggested just putting it in types.h,
> which works for me.

OK.  Or we could do the usual include/asm-generic/atomic_types.h and
then architectures can choose to include that if it is appropriate.

Anyway the good news is that this concept is an addition to rather than
a replacement of this current patch.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ