• Andrew Morton's avatar
    [PATCH] const vs. __attribute__((const)) confusion · 0697fbd3
    Andrew Morton authored
    From: "H. Peter Anvin" <hpa@zytor.com>
    
    Declaring a function to return a const scalar value is pretty meaningless. 
    These functions are really trying to say that they don't alter any external
    state.
    
    Fix that up by using __attribute__((const)), if the compiler supports that.
    0697fbd3
byteorder.h 2.14 KB