tree: https://github.com/jsarha/linux topic/chromeos-4.19-s0ix head: 430bdaa0a8c38697780f45a148964d71951df11f commit: 35be48648a6552869bd5d6c9a0d278102d23d46c [9206/9999] UPSTREAM: gcov: clang support config: sh-randconfig-m041-20221031 compiler: sh4-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/jsarha/linux/commit/35be48648a6552869bd5d6c9a0d278102d23d46c git remote add jsarha https://github.com/jsarha/linux git fetch --no-tags jsarha topic/chromeos-4.19-s0ix git checkout 35be48648a6552869bd5d6c9a0d278102d23d46c # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash arch/sh/kernel/ arch/sh/lib/ kernel/gcov/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/kernel.h:10, from include/linux/kallsyms.h:10, from arch/sh/kernel/dumpstack.c:11: include/linux/atomic.h: In function 'atomic_fetch_add_unless': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:578:17: note: in expansion of macro 'if' 578 | if (unlikely(c == u)) | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:578:21: note: in expansion of macro 'unlikely' 578 | if (unlikely(c == u)) | ^~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:578:17: note: in expansion of macro 'if' 578 | if (unlikely(c == u)) | ^~ >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:478:9: note: in expansion of macro 'if' 478 | if (unlikely(__r != __o)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:478:13: note: in expansion of macro 'unlikely' 478 | if (unlikely(__r != __o)) \ | ^~~~~~~~ include/linux/atomic.h:483:49: note: in expansion of macro '__atomic_try_cmpxchg' 483 | #define atomic_try_cmpxchg(_p, _po, _n) __atomic_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:580:19: note: in expansion of macro 'atomic_try_cmpxchg' 580 | } while (!atomic_try_cmpxchg(v, &c, c + a)); | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:478:9: note: in expansion of macro 'if' 478 | if (unlikely(__r != __o)) \ | ^~ include/linux/atomic.h:483:49: note: in expansion of macro '__atomic_try_cmpxchg' 483 | #define atomic_try_cmpxchg(_p, _po, _n) __atomic_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:580:19: note: in expansion of macro 'atomic_try_cmpxchg' 580 | } while (!atomic_try_cmpxchg(v, &c, c + a)); | ^~~~~~~~~~~~~~~~~~ include/linux/atomic.h: In function 'atomic_inc_unless_negative': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:679:17: note: in expansion of macro 'if' 679 | if (unlikely(c < 0)) | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:679:21: note: in expansion of macro 'unlikely' 679 | if (unlikely(c < 0)) | ^~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:679:17: note: in expansion of macro 'if' 679 | if (unlikely(c < 0)) | ^~ >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:478:9: note: in expansion of macro 'if' 478 | if (unlikely(__r != __o)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:478:13: note: in expansion of macro 'unlikely' 478 | if (unlikely(__r != __o)) \ | ^~~~~~~~ include/linux/atomic.h:483:49: note: in expansion of macro '__atomic_try_cmpxchg' 483 | #define atomic_try_cmpxchg(_p, _po, _n) __atomic_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:681:19: note: in expansion of macro 'atomic_try_cmpxchg' 681 | } while (!atomic_try_cmpxchg(v, &c, c + 1)); | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:478:9: note: in expansion of macro 'if' 478 | if (unlikely(__r != __o)) \ | ^~ include/linux/atomic.h:483:49: note: in expansion of macro '__atomic_try_cmpxchg' 483 | #define atomic_try_cmpxchg(_p, _po, _n) __atomic_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:681:19: note: in expansion of macro 'atomic_try_cmpxchg' 681 | } while (!atomic_try_cmpxchg(v, &c, c + 1)); | ^~~~~~~~~~~~~~~~~~ include/linux/atomic.h: In function 'atomic_dec_unless_positive': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:693:17: note: in expansion of macro 'if' 693 | if (unlikely(c > 0)) | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:693:21: note: in expansion of macro 'unlikely' 693 | if (unlikely(c > 0)) | ^~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:693:17: note: in expansion of macro 'if' 693 | if (unlikely(c > 0)) | ^~ >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:478:9: note: in expansion of macro 'if' 478 | if (unlikely(__r != __o)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:478:13: note: in expansion of macro 'unlikely' 478 | if (unlikely(__r != __o)) \ | ^~~~~~~~ include/linux/atomic.h:483:49: note: in expansion of macro '__atomic_try_cmpxchg' 483 | #define atomic_try_cmpxchg(_p, _po, _n) __atomic_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:695:19: note: in expansion of macro 'atomic_try_cmpxchg' 695 | } while (!atomic_try_cmpxchg(v, &c, c - 1)); | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:478:9: note: in expansion of macro 'if' 478 | if (unlikely(__r != __o)) \ | ^~ include/linux/atomic.h:483:49: note: in expansion of macro '__atomic_try_cmpxchg' 483 | #define atomic_try_cmpxchg(_p, _po, _n) __atomic_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:695:19: note: in expansion of macro 'atomic_try_cmpxchg' 695 | } while (!atomic_try_cmpxchg(v, &c, c - 1)); | ^~~~~~~~~~~~~~~~~~ include/linux/atomic.h: In function 'atomic_dec_if_positive': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:715:17: note: in expansion of macro 'if' 715 | if (unlikely(dec < 0)) | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:715:21: note: in expansion of macro 'unlikely' 715 | if (unlikely(dec < 0)) | ^~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:715:17: note: in expansion of macro 'if' 715 | if (unlikely(dec < 0)) | ^~ >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:478:9: note: in expansion of macro 'if' 478 | if (unlikely(__r != __o)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:478:13: note: in expansion of macro 'unlikely' 478 | if (unlikely(__r != __o)) \ | ^~~~~~~~ include/linux/atomic.h:483:49: note: in expansion of macro '__atomic_try_cmpxchg' 483 | #define atomic_try_cmpxchg(_p, _po, _n) __atomic_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:717:19: note: in expansion of macro 'atomic_try_cmpxchg' 717 | } while (!atomic_try_cmpxchg(v, &c, dec)); | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:478:9: note: in expansion of macro 'if' 478 | if (unlikely(__r != __o)) \ | ^~ include/linux/atomic.h:483:49: note: in expansion of macro '__atomic_try_cmpxchg' 483 | #define atomic_try_cmpxchg(_p, _po, _n) __atomic_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:717:19: note: in expansion of macro 'atomic_try_cmpxchg' 717 | } while (!atomic_try_cmpxchg(v, &c, dec)); | ^~~~~~~~~~~~~~~~~~ include/linux/atomic.h: In function 'atomic64_inc_unless_negative': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:1268:17: note: in expansion of macro 'if' 1268 | if (unlikely(c < 0)) | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:1268:21: note: in expansion of macro 'unlikely' 1268 | if (unlikely(c < 0)) | ^~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:1268:17: note: in expansion of macro 'if' 1268 | if (unlikely(c < 0)) | ^~ >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:1135:9: note: in expansion of macro 'if' 1135 | if (unlikely(__r != __o)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:1135:13: note: in expansion of macro 'unlikely' 1135 | if (unlikely(__r != __o)) \ | ^~~~~~~~ include/linux/atomic.h:1140:57: note: in expansion of macro '__atomic64_try_cmpxchg' 1140 | #define atomic64_try_cmpxchg(_p, _po, _n) __atomic64_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:1270:19: note: in expansion of macro 'atomic64_try_cmpxchg' 1270 | } while (!atomic64_try_cmpxchg(v, &c, c + 1)); | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:1135:9: note: in expansion of macro 'if' 1135 | if (unlikely(__r != __o)) \ | ^~ include/linux/atomic.h:1140:57: note: in expansion of macro '__atomic64_try_cmpxchg' 1140 | #define atomic64_try_cmpxchg(_p, _po, _n) __atomic64_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:1270:19: note: in expansion of macro 'atomic64_try_cmpxchg' 1270 | } while (!atomic64_try_cmpxchg(v, &c, c + 1)); | ^~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h: In function 'atomic64_dec_unless_positive': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:1282:17: note: in expansion of macro 'if' 1282 | if (unlikely(c > 0)) | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:1282:21: note: in expansion of macro 'unlikely' 1282 | if (unlikely(c > 0)) | ^~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:1282:17: note: in expansion of macro 'if' 1282 | if (unlikely(c > 0)) | ^~ >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/atomic.h:1135:9: note: in expansion of macro 'if' 1135 | if (unlikely(__r != __o)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/atomic.h:1135:13: note: in expansion of macro 'unlikely' 1135 | if (unlikely(__r != __o)) \ | ^~~~~~~~ include/linux/atomic.h:1140:57: note: in expansion of macro '__atomic64_try_cmpxchg' 1140 | #define atomic64_try_cmpxchg(_p, _po, _n) __atomic64_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:1284:19: note: in expansion of macro 'atomic64_try_cmpxchg' 1284 | } while (!atomic64_try_cmpxchg(v, &c, c - 1)); | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/atomic.h:1135:9: note: in expansion of macro 'if' 1135 | if (unlikely(__r != __o)) \ | ^~ include/linux/atomic.h:1140:57: note: in expansion of macro '__atomic64_try_cmpxchg' 1140 | #define atomic64_try_cmpxchg(_p, _po, _n) __atomic64_try_cmpxchg(, _p, _po, _n) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/atomic.h:1284:19: note: in expansion of macro 'atomic64_try_cmpxchg' 1284 | } while (!atomic64_try_cmpxchg(v, &c, c - 1)); | ^~~~~~~~~~~~~~~~~~~~ include/linux/math64.h: In function 'div_u64_rem': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/asm-generic/div64.h:235:16: note: in expansion of macro 'if' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~ include/linux/compiler.h:45:26: note: in expansion of macro '__branch_check__' 45 | # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/div64.h:235:20: note: in expansion of macro 'likely' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~~~~~ include/linux/math64.h:90:22: note: in expansion of macro 'do_div' 90 | *remainder = do_div(dividend, divisor); | ^~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/div64.h:235:16: note: in expansion of macro 'if' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~ include/linux/math64.h:90:22: note: in expansion of macro 'do_div' 90 | *remainder = do_div(dividend, divisor); | ^~~~~~ include/linux/math64.h: In function 'mul_u64_u32_div': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/asm-generic/div64.h:235:16: note: in expansion of macro 'if' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~ include/linux/compiler.h:45:26: note: in expansion of macro '__branch_check__' 45 | # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/div64.h:235:20: note: in expansion of macro 'likely' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~~~~~ include/linux/math64.h:274:21: note: in expansion of macro 'do_div' 274 | rl.l.high = do_div(rh.ll, divisor); | ^~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/div64.h:235:16: note: in expansion of macro 'if' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~ include/linux/math64.h:274:21: note: in expansion of macro 'do_div' 274 | rl.l.high = do_div(rh.ll, divisor); | ^~~~~~ >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/asm-generic/div64.h:235:16: note: in expansion of macro 'if' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~ include/linux/compiler.h:45:26: note: in expansion of macro '__branch_check__' 45 | # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/div64.h:235:20: note: in expansion of macro 'likely' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~~~~~ include/linux/math64.h:277:9: note: in expansion of macro 'do_div' 277 | do_div(rl.ll, divisor); | ^~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/div64.h:235:16: note: in expansion of macro 'if' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~ include/linux/math64.h:277:9: note: in expansion of macro 'do_div' 277 | do_div(rl.ll, divisor); | ^~~~~~ include/linux/thread_info.h: In function 'copy_overflow': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/asm-generic/bug.h:134:9: note: in expansion of macro 'if' 134 | if (unlikely(__ret_warn_on)) \ | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:134:13: note: in expansion of macro 'unlikely' 134 | if (unlikely(__ret_warn_on)) \ | ^~~~~~~~ include/linux/thread_info.h:134:9: note: in expansion of macro 'WARN' 134 | WARN(1, "Buffer overflow detected (%d < %lu)!\n", size, count); | ^~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:134:9: note: in expansion of macro 'if' 134 | if (unlikely(__ret_warn_on)) \ | ^~ include/linux/thread_info.h:134:9: note: in expansion of macro 'WARN' 134 | WARN(1, "Buffer overflow detected (%d < %lu)!\n", size, count); | ^~~~ include/linux/thread_info.h: In function 'check_copy_size': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/thread_info.h:141:9: note: in expansion of macro 'if' 141 | if (unlikely(sz >= 0 && sz < bytes)) { | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/thread_info.h:141:13: note: in expansion of macro 'unlikely' 141 | if (unlikely(sz >= 0 && sz < bytes)) { | ^~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/thread_info.h:141:9: note: in expansion of macro 'if' 141 | if (unlikely(sz >= 0 && sz < bytes)) { | ^~ include/linux/seqlock.h: In function '__read_seqcount_begin': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/seqlock.h:114:9: note: in expansion of macro 'if' 114 | if (unlikely(ret & 1)) { | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/seqlock.h:114:13: note: in expansion of macro 'unlikely' 114 | if (unlikely(ret & 1)) { | ^~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/seqlock.h:114:9: note: in expansion of macro 'if' 114 | if (unlikely(ret & 1)) { | ^~ include/linux/mutex.h: In function 'mutex_trylock_recursive': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/mutex.h:226:9: note: in expansion of macro 'if' 226 | if (unlikely(__mutex_owner(lock) == current)) | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/mutex.h:226:13: note: in expansion of macro 'unlikely' 226 | if (unlikely(__mutex_owner(lock) == current)) | ^~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/mutex.h:226:9: note: in expansion of macro 'if' 226 | if (unlikely(__mutex_owner(lock) == current)) | ^~ include/linux/ktime.h: In function 'ktime_set': >> include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/ktime.h:39:9: note: in expansion of macro 'if' 39 | if (unlikely(secs >= KTIME_SEC_MAX)) | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/ktime.h:39:13: note: in expansion of macro 'unlikely' 39 | if (unlikely(secs >= KTIME_SEC_MAX)) | ^~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/ktime.h:39:9: note: in expansion of macro 'if' 39 | if (unlikely(secs >= KTIME_SEC_MAX)) | ^~ include/linux/ktime.h: In function 'ktime_divns': include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/asm-generic/bug.h:61:32: note: in expansion of macro 'if' 61 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~ include/linux/compiler.h:48:26: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:61:36: note: in expansion of macro 'unlikely' 61 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~~~~~~ include/linux/ktime.h:153:9: note: in expansion of macro 'BUG_ON' 153 | BUG_ON(div < 0); | ^~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/bug.h:61:32: note: in expansion of macro 'if' 61 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~ include/linux/ktime.h:153:9: note: in expansion of macro 'BUG_ON' 153 | BUG_ON(div < 0); | ^~~~~~ include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/asm-generic/div64.h:235:16: note: in expansion of macro 'if' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~ include/linux/compiler.h:45:26: note: in expansion of macro '__branch_check__' 45 | # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/div64.h:235:20: note: in expansion of macro 'likely' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~~~~~ include/linux/ktime.h:158:17: note: in expansion of macro 'do_div' 158 | do_div(tmp, div); | ^~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/asm-generic/div64.h:235:16: note: in expansion of macro 'if' 235 | } else if (likely(((n) >> 32) == 0)) { \ | ^~ include/linux/ktime.h:158:17: note: in expansion of macro 'do_div' 158 | do_div(tmp, div); | ^~~~~~ include/linux/mmzone.h: In function 'next_zones_zonelist': include/linux/compiler.h:25:39: error: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Werror=attributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ include/linux/mmzone.h:984:9: note: in expansion of macro 'if' 984 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ include/linux/compiler.h:45:26: note: in expansion of macro '__branch_check__' 45 | # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/mmzone.h:984:13: note: in expansion of macro 'likely' 984 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~~~~~ .. vim +162 kernel/gcov/gcc_4_7.c 152 153 /** 154 * gcov_info_within_module - check if a profiling data set belongs to a module 155 * @info: profiling data set 156 * @mod: module 157 * 158 * Returns true if profiling data belongs module, false otherwise. 159 */ 160 bool gcov_info_within_module(struct gcov_info *info, struct module *mod) 161 { > 162 return within_module((unsigned long)info, mod); 163 } 164 -- 0-DAY CI Kernel Test Service https://01.org/lkp