lkml.org 
[lkml]   [2011]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [stable] [PATCH] bitops: Use volatile in generic atomic bitops.
    On Wed, Jul 27, 2011 at 01:21:19PM +0100, Will Newton wrote:
    > The generic atomic bitops currently explicitly cast away the
    > volatile from the pointer passed to them. This will allow the
    > access to the bitfield to happen outside of the critical section
    > thus making the bitops no longer interrupt-safe. Remove this cast
    > and add a volatile keyword to make sure all accesses to the
    > bitfield happen inside the critical section.
    >
    > Signed-off-by: Will Newton <will.newton@imgtec.com>
    > ---
    > include/asm-generic/bitops/atomic.h | 12 ++++++------
    > 1 files changed, 6 insertions(+), 6 deletions(-)

    <formletter>

    This is not the correct way to submit patches for inclusion in the
    stable kernel tree. Please read Documentation/stable_kernel_rules.txt
    for how to do this properly.

    </formletter>


    \
     
     \ /
      Last update: 2011-07-27 18:27    [W:4.887 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site