cregit-Linux how code gets into the kernel

Release 4.7 tools/include/asm/bug.h

#ifndef _TOOLS_ASM_BUG_H

#define _TOOLS_ASM_BUG_H

#include <linux/compiler.h>


#define __WARN_printf(arg...)	do { fprintf(stderr, arg); } while (0)


#define WARN(condition, format...) ({              \
        int __ret_warn_on = !!(condition);      \
        if (unlikely(__ret_warn_on))            \
                __WARN_printf(format);          \
        unlikely(__ret_warn_on);                \
})


#define WARN_ONCE(condition, format...)	({      \
        static int __warned;                    \
        int __ret_warn_once = !!(condition);    \
                                                \
        if (unlikely(__ret_warn_once))          \
                if (WARN(!__warned, format))    \
                        __warned = 1;           \
        unlikely(__ret_warn_once);              \
})

#endif /* _TOOLS_ASM_BUG_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
arnaldo carvalho de meloarnaldo carvalho de melo3485.00%133.33%
namhyung kimnamhyung kim615.00%266.67%
Total40100.00%3100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}