From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33AAB7A for ; Wed, 15 Jun 2022 10:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655289191; x=1686825191; h=date:from:to:cc:subject:message-id:mime-version; bh=bflE+Fv+Ds9bdZj5+reorqos9CZfN0WoIAkHwsI8br4=; b=Ox1MvFyGRblfwTdfmjoO6XzRYM6qCUt6f/TTW1RQUKil8UAqn1FEuS5T StVVIQRwEErb0icUq+td4RI3yD5wSAZlp9lMLGwLTBJXFMJkho+2g/7wN GkqvH4WStk1QqQKPa1hfxLxYdTB+6geThC4oMq2L7Fz+Os6tMtJ7e4R1A /7eYsgJLwWsbdHCyCOR4LNuvW+wHzms9akuGqzirA+jJuEWJqILj0GPvh X62z3A7sX0SKtAJX6WM40VnlNxDdqlry9lAWwLKMoQUjYmQRaQRE5FxAG h/Q9KuGmc9MhnD7g3Dw2e4DgouR+083tTHpzTtHXplhFKvpFU4B/YmvW0 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10378"; a="304341671" X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="304341671" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 03:33:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="687231131" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 15 Jun 2022 03:33:09 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o1QKi-000Mkx-Im; Wed, 15 Jun 2022 10:33:08 +0000 Date: Wed, 15 Jun 2022 18:33:06 +0800 From: kernel test robot To: Thomas Gleixner Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: kernel/time/hrtimer.c:650:19: warning: unused function 'hrtimer_hres_active' Message-ID: <202206151820.2UttbZpK-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Thomas, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 018ab4fabddd94f1c96f3b59e180691b9e88d5d8 commit: 9482fd71dbb8f0d1a61821a83e467dc0a9d7b429 hrtimer: Use raw_cpu_ptr() in clock_was_set() date: 10 months ago config: mips-randconfig-r022-20220615 (https://download.01.org/0day-ci/archive/20220615/202206151820.2UttbZpK-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b0b00432093be9680ed833af642bcafc3ca11586) 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 # install mips cross compiling tool for clang build # apt-get install binutils-mips64el-linux-gnuabi64 # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9482fd71dbb8f0d1a61821a83e467dc0a9d7b429 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 9482fd71dbb8f0d1a61821a83e467dc0a9d7b429 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/dma/dw-edma/ drivers/irqchip/ kernel/time/ mm/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): kernel/time/hrtimer.c:120:21: warning: initializer overrides prior initialization of this subobject = HRTIMER_BASE_REALTIME, ^~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:118:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:121:22: warning: initializer overrides prior initialization of this subobject = HRTIMER_BASE_MONOTONIC, ^~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:118:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:122:21: warning: initializer overrides prior initialization of this subobject = HRTIMER_BASE_BOOTTIME, ^~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:118:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:123:17: warning: initializer overrides prior initialization of this subobject = HRTIMER_BASE_TAI, ^~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:118:27: note: previous initialization is here [0 ... MAX_CLOCKS - 1] = HRTIMER_MAX_CLOCK_BASES, ^~~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:276:20: warning: unused function 'is_migration_base' static inline bool is_migration_base(struct hrtimer_clock_base ^ >> kernel/time/hrtimer.c:650:19: warning: unused function 'hrtimer_hres_active' static inline int hrtimer_hres_active(void) ^ kernel/time/hrtimer.c:1887:20: warning: unused function '__hrtimer_peek_ahead_timers' static inline void __hrtimer_peek_ahead_timers(void) { } ^ fatal error: error in backend: Nested variants found in inline asm string: ' .set push .set mips64r2 .if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/bitops.h", .line = 105, $); 0x00 ) != -1)) : $))) ) && ( (1 << 31) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif 1: lld $0, $1 or $0, $2 scd $0, $1 beqz $0, 1b .set pop ' clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation) clang version 15.0.0 (git://gitmirror/llvm_project b0b00432093be9680ed833af642bcafc3ca11586) Target: mips64el-unknown-linux Thread model: posix InstalledDir: /opt/cross/clang-b0b0043209/bin clang-15: note: diagnostic msg: Makefile arch drivers include kernel mm nr_bisected scripts sound source usr vim +/hrtimer_hres_active +650 kernel/time/hrtimer.c 28bfd18bf3daa5 Anna-Maria Gleixner 2017-12-21 649 28bfd18bf3daa5 Anna-Maria Gleixner 2017-12-21 @650 static inline int hrtimer_hres_active(void) 28bfd18bf3daa5 Anna-Maria Gleixner 2017-12-21 651 { 28bfd18bf3daa5 Anna-Maria Gleixner 2017-12-21 652 return __hrtimer_hres_active(this_cpu_ptr(&hrtimer_bases)); 28bfd18bf3daa5 Anna-Maria Gleixner 2017-12-21 653 } 28bfd18bf3daa5 Anna-Maria Gleixner 2017-12-21 654 :::::: The code at line 650 was first introduced by commit :::::: 28bfd18bf3daa5db8bb3422ea7138c8b7d2444ac hrtimer: Make the hrtimer_cpu_base::hres_active field unconditional, to simplify the code :::::: TO: Anna-Maria Gleixner :::::: CC: Ingo Molnar -- 0-DAY CI Kernel Test Service https://01.org/lkp