From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C198C433F5 for ; Tue, 31 May 2022 13:14:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344665AbiEaNO2 (ORCPT ); Tue, 31 May 2022 09:14:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344647AbiEaNOT (ORCPT ); Tue, 31 May 2022 09:14:19 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E4DB90CF4 for ; Tue, 31 May 2022 06:14:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654002855; x=1685538855; h=date:from:to:cc:subject:message-id:mime-version; bh=SegM12i9kVBv1XKnxpXguRMrPff9WVpH727h9VAvaCY=; b=idQTXTnDrAj/L7vpbdj4bSVii3TCK5uSllWRbaoj9/MkDo8XfJQrO9ZL l6Rhe/W8/Gooqz5X8o5CjJMT64An/EMx2vB8hJ9fCwzoAwpVywTseI1T+ dxbUgQBLC7jlSXzrqth1t8P6uE5dOnlzJPA8czOWtDDOYewnroc04FBFZ fn8WlcWsmka2lYipD+eSNixsksytsUS17dWPg5tRe4vc+MjIRJbZbnAl4 cc954QAN7HbxbT3n15c9WJY7eqzlv/2P61Q2wpGUNZREZGp1McNYb6Im2 PPTmV1YuOT+X7+kUThAlN5WRUQpzD+jsDvZGUCp3Wq4jurJ9j34f9CS+K Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10363"; a="361622969" X-IronPort-AV: E=Sophos;i="5.91,265,1647327600"; d="scan'208";a="361622969" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2022 06:14:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,265,1647327600"; d="scan'208";a="611825633" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 31 May 2022 06:14:13 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nw1hM-0002k2-Jl; Tue, 31 May 2022 13:14:12 +0000 Date: Tue, 31 May 2022 21:13:54 +0800 From: kernel test robot To: Marcelo Tosatti Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Thomas Gleixner Subject: kernel/time/hrtimer.c:276:20: warning: unused function 'is_migration_base' Message-ID: <202205312116.EvPoTOOK-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcelo, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8ab2afa23bd197df47819a87f0265c0ac95c5b6a commit: 81d741d3460ca422843ce0ec8351083f259c6166 hrtimer: Avoid unnecessary SMP function calls in clock_was_set() date: 10 months ago config: mips-randconfig-r033-20220530 (https://download.01.org/0day-ci/archive/20220531/202205312116.EvPoTOOK-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0776c48f9b7e69fa447bee57c7c0985caa856be9) 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-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=81d741d3460ca422843ce0ec8351083f259c6166 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 81d741d3460ca422843ce0ec8351083f259c6166 # 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 kernel/time/ 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:1816: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)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif 1: ll $0, $1 or $0, $2 sc $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 c825abd6b0198fb088d9752f556a70705bc99dfd) Target: mips-unknown-linux Thread model: posix InstalledDir: /opt/cross/clang-c825abd6b0/bin clang-15: note: diagnostic msg: Makefile arch certs crypto drivers fs include init ipc kernel lib mm scripts security sound source usr virt vim +/is_migration_base +276 kernel/time/hrtimer.c c0a3132963db68 kernel/hrtimer.c Thomas Gleixner 2006-01-09 275 5d2295f3a93b04 kernel/time/hrtimer.c Sebastian Andrzej Siewior 2019-09-04 @276 static inline bool is_migration_base(struct hrtimer_clock_base *base) 5d2295f3a93b04 kernel/time/hrtimer.c Sebastian Andrzej Siewior 2019-09-04 277 { 5d2295f3a93b04 kernel/time/hrtimer.c Sebastian Andrzej Siewior 2019-09-04 278 return false; 5d2295f3a93b04 kernel/time/hrtimer.c Sebastian Andrzej Siewior 2019-09-04 279 } 5d2295f3a93b04 kernel/time/hrtimer.c Sebastian Andrzej Siewior 2019-09-04 280 :::::: The code at line 276 was first introduced by commit :::::: 5d2295f3a93b04986d069ebeaf5b07725f9096c1 hrtimer: Add a missing bracket and hide `migration_base' on !SMP :::::: TO: Sebastian Andrzej Siewior :::::: CC: Thomas Gleixner -- 0-DAY CI Kernel Test Service https://01.org/lkp