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 mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gnuweeb.org (Postfix) with ESMTPS id A37D67F868 for ; Thu, 2 Feb 2023 02:28:07 +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=i10V0fy2; 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=1675304887; x=1706840887; h=date:from:to:cc:subject:message-id:mime-version; bh=pciZslKejQwptu7vuMcpj/cxlkzNtZEZLuDGQeRwxjM=; b=i10V0fy2JkbUJGaHtAeni+CRgf9Y92k2W1f4UT09c2bTjcZXlmihbr7t nAKL+sw9SeEn+t3vGvUfokl39wccHF+ORAfCf+T0Qns3XhM2zJnmjeJjl o5AY2ghT0rgBwYa/6C8CiSQZ9mSFJz8PBPfRZASBC1AGUdbwoi4CFoKZ0 CJAVEtH8GQ/KqOccQWubpJg6GPYjAHILSdqXb1ppHIassw0KLq9WDSoLd XxFJ7gAx72/F6ABzjbNiJKtd5wAFkL96hj6vlzsJ3j1Ci/1NWG0bCpr6I LgMvXX4vDo0LIwVE6sQoTHTzMGi9C2qrKgFXWbKpBswfIVz2dkpXJky/p g==; X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="390723569" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="390723569" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2023 18:28:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="773680228" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="773680228" Received: from lkp-server01.sh.intel.com (HELO ffa7f14d1d0f) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 01 Feb 2023 18:28:03 -0800 Received: from kbuild by ffa7f14d1d0f with local (Exim 4.96) (envelope-from ) id 1pNPKV-00062O-0G; Thu, 02 Feb 2023 02:28:03 +0000 Date: Thu, 2 Feb 2023 10:27:41 +0800 From: kernel test robot To: David Woodhouse Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Ammar Faizi , GNU/Weeb Mailing List , "Paul E. McKenney" , Usama Arif Subject: [ammarfaizi2-block:paulmck/linux-rcu/paronl.2023.02.01a 5/9] arch/x86/kernel/smpboot.c:1251:5: warning: no previous prototype for function 'do_cpu_up' Message-ID: <202302021018.uy6CiyRh-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/paronl.2023.02.01a head: 05792727280c094a8dcd1aa4950a61a2d214ddb8 commit: 9d418800f17cbc141c9ec5772e4d34c4c7b67936 [5/9] x86/smpboot: Split up native_cpu_up into separate phases and document them config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230202/202302021018.uy6CiyRh-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/9d418800f17cbc141c9ec5772e4d34c4c7b67936 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/paronl.2023.02.01a git checkout 9d418800f17cbc141c9ec5772e4d34c4c7b67936 # 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 All warnings (new ones prefixed by >>): >> arch/x86/kernel/smpboot.c:1251:5: warning: no previous prototype for function 'do_cpu_up' [-Wmissing-prototypes] int do_cpu_up(unsigned int cpu, struct task_struct *tidle) ^ arch/x86/kernel/smpboot.c:1251:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int do_cpu_up(unsigned int cpu, struct task_struct *tidle) ^ static 1 warning generated. vim +/do_cpu_up +1251 arch/x86/kernel/smpboot.c 1250 > 1251 int do_cpu_up(unsigned int cpu, struct task_struct *tidle) 1252 { 1253 int apicid = apic->cpu_present_to_apicid(cpu); 1254 int cpu0_nmi_registered = 0; 1255 int err, ret = 0; 1256 1257 lockdep_assert_irqs_enabled(); 1258 1259 pr_debug("++++++++++++++++++++=_---CPU UP %u\n", cpu); 1260 1261 if (apicid == BAD_APICID || 1262 !physid_isset(apicid, phys_cpu_present_map) || 1263 !apic->apic_id_valid(apicid)) { 1264 pr_err("%s: bad cpu %d\n", __func__, cpu); 1265 return -EINVAL; 1266 } 1267 1268 /* 1269 * Already booted CPU? 1270 */ 1271 if (cpumask_test_cpu(cpu, cpu_callin_mask)) { 1272 pr_debug("do_boot_cpu %d Already started\n", cpu); 1273 return -ENOSYS; 1274 } 1275 1276 /* 1277 * Save current MTRR state in case it was changed since early boot 1278 * (e.g. by the ACPI SMI) to initialize new CPUs with MTRRs in sync: 1279 */ 1280 mtrr_save_state(); 1281 1282 /* x86 CPUs take themselves offline, so delayed offline is OK. */ 1283 err = cpu_check_up_prepare(cpu); 1284 if (err && err != -EBUSY) 1285 return err; 1286 1287 /* the FPU context is blank, nobody can own it */ 1288 per_cpu(fpu_fpregs_owner_ctx, cpu) = NULL; 1289 1290 err = common_cpu_up(cpu, tidle); 1291 if (err) 1292 return err; 1293 1294 err = do_boot_cpu(apicid, cpu, tidle, &cpu0_nmi_registered); 1295 if (err) { 1296 pr_err("do_boot_cpu failed(%d) to wakeup CPU#%u\n", err, cpu); 1297 ret = -EIO; 1298 goto unreg_nmi; 1299 } 1300 1301 unreg_nmi: 1302 /* 1303 * Clean up the nmi handler. Do this after the callin and callout sync 1304 * to avoid impact of possible long unregister time. 1305 */ 1306 if (cpu0_nmi_registered) 1307 unregister_nmi_handler(NMI_LOCAL, "wake_cpu0"); 1308 1309 return ret; 1310 } 1311 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests