From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gnuweeb.org (Postfix) with ESMTPS id C96E583279 for ; Tue, 7 Mar 2023 10:00:02 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=TlR5Ab9D; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678183202; x=1709719202; h=date:from:to:cc:subject:message-id:mime-version; bh=015y2ujYdWGC1jptcX88cpF523UTZEC1Lxt0JJo6IZA=; b=TlR5Ab9D8MB82VZCcuA2SC5DLFwCJeExU9hEw70OUceO9jNYZpMxULVO 9DWTw6xqVgfTWXYn1o8rnr4A+bAfFqgvk0+eNjAh+vvoWpVOYAekqAM/l ivFPOhAlay5SJlzvsCKGiyl7mDoeznvG71+Lkiz7c++2h0pfTaFL0B/ZJ +gosx3uQPwxqaFmEqb6EYHw6sAB8Ylp5SU2vXfyc2NGgpKyzXk9KrTRkW wtvyd3YRvMa3KNvt/eGWMQi4tZMB9E+f6dgb71JKqnUooII2FJZbVbUvn BcE1FzH7gl41lQoKEGgBUnS8VHNNC6uH05JU838XC0wzFurRcTeQDCn/h Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="335834279" X-IronPort-AV: E=Sophos;i="5.98,240,1673942400"; d="scan'208";a="335834279" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2023 02:00:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="922293536" X-IronPort-AV: E=Sophos;i="5.98,240,1673942400"; d="scan'208";a="922293536" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 07 Mar 2023 01:59:59 -0800 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pZU6x-0001CR-1F; Tue, 07 Mar 2023 09:59:59 +0000 Date: Tue, 7 Mar 2023 17:59:07 +0800 From: kernel test robot To: "Paul E. McKenney" Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Ammar Faizi , GNU/Weeb Mailing List Subject: [ammarfaizi2-block:paulmck/linux-rcu/dev.2023.03.06a 112/116] arch/x86/kernel/nmi.c:441:6: warning: no previous prototype for function 'set_nmi_torture' Message-ID: <202303071727.8CfkaGXj-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/dev.2023.03.06a head: b5f34f7f546f7746ed4ca21da873aea5f408f295 commit: f8aba137fc5e5471910a5fcb5af74776b88d1070 [112/116] x86/nmi: Add a set_nmi_torture() function to control NMI testing config: x86_64-randconfig-r023-20230306 (https://download.01.org/0day-ci/archive/20230307/202303071727.8CfkaGXj-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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/ammarfaizi2/linux-block/commit/f8aba137fc5e5471910a5fcb5af74776b88d1070 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/dev.2023.03.06a git checkout f8aba137fc5e5471910a5fcb5af74776b88d1070 # 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=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303071727.8CfkaGXj-lkp@intel.com/ All warnings (new ones prefixed by >>): >> arch/x86/kernel/nmi.c:441:6: warning: no previous prototype for function 'set_nmi_torture' [-Wmissing-prototypes] void set_nmi_torture(int nmi_delay_in, bool nmi_halt1_in, bool nmi_halt2_in, bool nmi_halt3_in) ^ arch/x86/kernel/nmi.c:441:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void set_nmi_torture(int nmi_delay_in, bool nmi_halt1_in, bool nmi_halt2_in, bool nmi_halt3_in) ^ static 1 warning generated. vim +/set_nmi_torture +441 arch/x86/kernel/nmi.c 439 440 /* Set the test values as desired. */ > 441 void set_nmi_torture(int nmi_delay_in, bool nmi_halt1_in, bool nmi_halt2_in, bool nmi_halt3_in) 442 { 443 WRITE_ONCE(nmi_delay, nmi_delay_in); 444 WRITE_ONCE(nmi_halt1, nmi_halt1_in); 445 WRITE_ONCE(nmi_halt2, nmi_halt2_in); 446 WRITE_ONCE(nmi_halt3, nmi_halt3_in); 447 pr_info("%s: Set NMI test parameters nmi_delay=%d nmi_halt1=%d nmi_halt2=%d nmi_halt3=%d\n", 448 __func__, nmi_delay, nmi_halt1, nmi_halt2, nmi_halt3); 449 } 450 EXPORT_SYMBOL_GPL(set_nmi_torture); 451 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests