[openeuler:openEuler-1.0-LTS 1743/1743] arch/x86/kernel/tsc.c:61:1: warning: 'inline' is not at beginning of declaration

tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: ba07135cf74b1424e2f7f0c60e59c5b206ab320c commit: 4907c68abd3f60f650f98d5a69d4ec77c0bde44f [1743/1743] x86/tsc: Force inlining of cyc2ns bits config: x86_64-buildonly-randconfig-2004-20250802 (https://download.01.org/0day-ci/archive/20250804/202508041025.pObzdAyL-lkp@i...) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250804/202508041025.pObzdAyL-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202508041025.pObzdAyL-lkp@intel.com/ All warnings (new ones prefixed by >>):
arch/x86/kernel/tsc.c:61:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] 61 | void __always_inline cyc2ns_read_begin(struct cyc2ns_data *data) | ^~~~ arch/x86/kernel/tsc.c:78:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] 78 | void __always_inline cyc2ns_read_end(void) | ^~~~ arch/x86/kernel/tsc.c:1497:15: warning: no previous prototype for 'calibrate_delay_is_known' [-Wmissing-prototypes] 1497 | unsigned long calibrate_delay_is_known(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ arch/x86/kernel/tsc.c:1236: warning: Excess function parameter 'cycles' description in 'convert_art_ns_to_tsc' arch/x86/kernel/tsc.c:1236: warning: Excess function parameter 'cs' description in 'convert_art_ns_to_tsc' arch/x86/kernel/tsc.c:1270: warning: Function parameter or member 'work' not described in 'tsc_refine_calibration_work'
vim +/inline +61 arch/x86/kernel/tsc.c 60
61 void __always_inline cyc2ns_read_begin(struct cyc2ns_data *data) 62 { 63 int seq, idx; 64 65 preempt_disable_notrace(); 66 67 do { 68 seq = this_cpu_read(cyc2ns.seq.sequence); 69 idx = seq & 1; 70 71 data->cyc2ns_offset = this_cpu_read(cyc2ns.data[idx].cyc2ns_offset); 72 data->cyc2ns_mul = this_cpu_read(cyc2ns.data[idx].cyc2ns_mul); 73 data->cyc2ns_shift = this_cpu_read(cyc2ns.data[idx].cyc2ns_shift); 74 75 } while (unlikely(seq != this_cpu_read(cyc2ns.seq.sequence))); 76 } 77
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot