X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Fcompiler.h;h=4dac1036594f2a06418506d1a56b8e446462049e;hb=f4d68930a88219ffda60f137dcc858e4f5db6680;hp=fe817432190c1cfb4c3108bbdfaf71b22916b8f8;hpb=33d46f9765901a08d7759c031779073263e8b4e3;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/compiler.h b/include/linux/compiler.h index fe817432190c..4dac1036594f 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -56,7 +56,7 @@ extern void __chk_io_ptr(const volatile void __iomem *); #include #endif -#ifdef CC_USING_HOTPATCH +#if defined(CC_USING_HOTPATCH) && !defined(__CHECKER__) #define notrace __attribute__((hotpatch(0,0))) #else #define notrace __attribute__((no_instrument_function)) @@ -417,6 +417,14 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s #define __visible #endif +/* + * Assume alignment of return value. + */ +#ifndef __assume_aligned +#define __assume_aligned(a, ...) +#endif + + /* Are two types/vars the same type (ignoring qualifiers)? */ #ifndef __same_type # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))