lkml.org 
[lkml]   [2009]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/5] alpha: Convert BUG() to use unreachable()
    Date
    Use the new unreachable() macro instead of for(;;);

    Signed-off-by: David Daney <ddaney@caviumnetworks.com>
    CC: Richard Henderson <rth@twiddle.net>
    CC: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
    CC: Matt Turner <mattst88@gmail.com>
    CC: linux-alpha@vger.kernel.org
    ---
    arch/alpha/include/asm/bug.h | 3 ++-
    1 files changed, 2 insertions(+), 1 deletions(-)

    diff --git a/arch/alpha/include/asm/bug.h b/arch/alpha/include/asm/bug.h
    index 1720c8a..f091682 100644
    --- a/arch/alpha/include/asm/bug.h
    +++ b/arch/alpha/include/asm/bug.h
    @@ -13,7 +13,8 @@
    "call_pal %0 # bugchk\n\t" \
    ".long %1\n\t.8byte %2" \
    : : "i"(PAL_bugchk), "i"(__LINE__), "i"(__FILE__)); \
    - for ( ; ; ); } while (0)
    + unreachable(); \
    + } while (0)

    #define HAVE_ARCH_BUG
    #endif
    --
    1.6.2.5


    \
     
     \ /
      Last update: 2009-12-10 18:33    [W:0.024 / U:0.336 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site