948f32c bug.h: introduce WARN_ONCE

3 files Authored by Ramon Fried 5 years ago, Committed by Tom Rini 5 years ago,
    bug.h: introduce WARN_ONCE
    
    Add WARN_ONCE definition to allow single time notification
    of warnings to the user.
    Taken from Linux kernel (4.17) with slight changes
    (Removed __section(.data.once))
    
    Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
    [trini: Drop the musb and dwc3 compat versions]
    Signed-off-by: Tom Rini <trini@konsulko.com>
    
        
file modified
+18 -0