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 C4748C433F5 for ; Thu, 17 Mar 2022 04:55:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229573AbiCQE5C (ORCPT ); Thu, 17 Mar 2022 00:57:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiCQE44 (ORCPT ); Thu, 17 Mar 2022 00:56:56 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCC80105061 for ; Wed, 16 Mar 2022 21:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647491928; x=1679027928; h=date:from:to:cc:subject:message-id:mime-version; bh=WGhJMzZc2HYnPLmjxmaobimefIA9Fki1N64J2jd5h84=; b=exWLa/4s+L4bU/bvpREI4AVtUeo6HYr/wog9x6GAFLIYuaqie/XHJIAE xwSxdpUv10wLpDIvYxyZ6CKZwfLeqimPgbRE1IF/VBpCK8JNjip2F+81e BcSpCfa+aqlJG+ctyxJZnblUpNbvUIg8YL5l84W5MI807HcDIqP4eL7/M vHaxqwZzS3Tn69DTfRu66UQ2zeK2fgCnvgt6zyhP1BsYZQl6tR3JFMyyc ShSbQHqgik8+GVfcU4uNcqgpMeoridRkvDTTaYYEZo0QjZfVzOWmAfRfF uM3MCeKGjT6432SAtbxM58GYH04mFRnlrbC0LAC+Tb1gXSjMCur0jccvh g==; X-IronPort-AV: E=McAfee;i="6200,9189,10288"; a="281563141" X-IronPort-AV: E=Sophos;i="5.90,188,1643702400"; d="scan'208";a="281563141" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2022 20:56:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,188,1643702400"; d="scan'208";a="557753811" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 16 Mar 2022 20:56:33 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nUhFY-000DGi-V6; Thu, 17 Mar 2022 03:56:32 +0000 Date: Thu, 17 Mar 2022 11:56:27 +0800 From: kernel test robot To: Ingo Molnar Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [mingo-tip:master 2009/2335] kernel/trace/trace_hwlat.c:174:6: warning: no previous prototype for function 'trace_hwlat_callback' Message-ID: <202203171104.4wcK0cRh-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master head: 85293bf3fca6d85608cff1447ce3097583f15fab commit: f3c1d292f157b79c05590971f8ae4b297bd60830 [2009/2335] headers/deps: Remove inclusions from headers that don't need it anymore config: x86_64-randconfig-a011-20220314 (https://download.01.org/0day-ci/archive/20220317/202203171104.4wcK0cRh-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6ec1e3d798f8eab43fb3a91028c6ab04e115fcb) 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://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=f3c1d292f157b79c05590971f8ae4b297bd60830 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip master git checkout f3c1d292f157b79c05590971f8ae4b297bd60830 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/trace/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/trace/trace_hwlat.c:174:6: warning: no previous prototype for function 'trace_hwlat_callback' [-Wmissing-prototypes] void trace_hwlat_callback(bool enter) ^ kernel/trace/trace_hwlat.c:174:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void trace_hwlat_callback(bool enter) ^ static 1 warning generated. vim +/trace_hwlat_callback +174 kernel/trace/trace_hwlat.c e7c15cd8a113335 Steven Rostedt (Red Hat 2016-06-23 173) 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 @174) void trace_hwlat_callback(bool enter) 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 175) { f46b16520a087e8 Daniel Bristot de Oliveira 2021-06-22 176 struct hwlat_kthread_data *kdata = get_cpu_data(); f46b16520a087e8 Daniel Bristot de Oliveira 2021-06-22 177 f46b16520a087e8 Daniel Bristot de Oliveira 2021-06-22 178 if (!kdata->kthread) 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 179) return; 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 180) 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 181) /* 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 182) * Currently trace_clock_local() calls sched_clock() and the 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 183) * generic version is not NMI safe. 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 184) */ 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 185) if (!IS_ENABLED(CONFIG_GENERIC_SCHED_CLOCK)) { 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 186) if (enter) f46b16520a087e8 Daniel Bristot de Oliveira 2021-06-22 187 kdata->nmi_ts_start = time_get(); 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 188) else f46b16520a087e8 Daniel Bristot de Oliveira 2021-06-22 189 kdata->nmi_total_ts += time_get() - kdata->nmi_ts_start; 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 190) } 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 191) 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 192) if (enter) f46b16520a087e8 Daniel Bristot de Oliveira 2021-06-22 193 kdata->nmi_count++; 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 194) } 7b2c86250122de3 Steven Rostedt (Red Hat 2016-08-04 195) :::::: The code at line 174 was first introduced by commit :::::: 7b2c86250122de316cbab8754050622ead04af39 tracing: Add NMI tracing in hwlat detector :::::: TO: Steven Rostedt (Red Hat) :::::: CC: Steven Rostedt --- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org