Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2096570lqp; Sun, 24 Mar 2024 03:04:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhyXt0yNCIThkhpCj6+8+fxVpnSztf8Tu8Td2UIamdd0VOKqBrgjSz7DwyhsI6rIfD3gNRHIo2zviMnPCCGOjm/POn6Nne5viRPf205g== X-Google-Smtp-Source: AGHT+IEmiq2w8pbX52Ueq/LRv/e7tjIYnmZIXlJi7uVufCIb3yXtKmoQjvXgjLoz6DhBwFUIiAMy X-Received: by 2002:aa7:88c6:0:b0:6ea:7f6e:f451 with SMTP id k6-20020aa788c6000000b006ea7f6ef451mr4339825pff.1.1711274682002; Sun, 24 Mar 2024 03:04:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711274681; cv=pass; d=google.com; s=arc-20160816; b=N9ZXa1peCGFY3JVjRAio1Ok1lEpnoXHPukLarwyfuR/Biolwpj5+2FwTK1dgCkY11K 0CxWmaz3+9351Q1fx8RU30iTgcWXl39V/QfhzW7quwQmnrwU55cl94ib2T5N14qNb2WS kWEXzbxbtwKjfanlCP4lXVF05PGEX8uN2TS0E1v6s+D+wKZptlSmjSslxjOTcid9VM6J 49zgGe6+eqWHj15IfQesku11frGXjY2VwMqb9GyomochP5LcWZ12XpubrfoksEz2aQsk w+LDLhTU2eNOy7TbHN11gD25qHnop0IV01RZaMEkyE5h61A2F4uVjBv8yp4pfiJCtd+f HKdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=JJdQj903ECD5zPz1mranWaBGUFrQ5S2L5NRdDy9EY9c=; fh=cAZhPjXNalz8FRuxAz9MsUgv83sobtI0uNysJNqyBRI=; b=gxVRqkjgQZuXkW/Y3TaI9FA5GE2OFuHyE9thsN6/ZIIloJjL+ny0EJ8XpfZfm0/7fK dbHZlOaWVxZ411ezzNJehuntcFN9wnXc6MbJjbagvosT/f5Xw0Va0NEpvLtWwxOoEGLK PwsXGQvL+wV0brCtDh+iAgTc5dO1cJA5ONJzXFyGv0fYhJItFbpO4SEs10iYFfb6AwMs PkaDX4WfUPAhRs6lYC8UBeRJXOOKT8M6AJoDf4CMkv5CQwEcDrZgOW+Oz+tc1OumJ/u9 fv2C8qir36vheIWWNORsGGZtlzAbk7tA3C4zgtdDnFZoS6T1PetwrKNWecUEqNNBm3bL lP+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XjFQtt2f; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-112629-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112629-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z37-20020a630a65000000b005dc892e61d3si5465454pgk.657.2024.03.24.03.04.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 03:04:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112629-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XjFQtt2f; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-112629-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112629-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9CD4F28184E for ; Sun, 24 Mar 2024 10:04:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32C3017559; Sun, 24 Mar 2024 10:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XjFQtt2f" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 502B915E81 for ; Sun, 24 Mar 2024 10:04:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711274676; cv=none; b=rJPDIA1fvS6qENlyohNghn4IrahS1Vi3NILSgZqny8X138yl1bRquyeCZh+rWGgLZ2MSo+0OX6MRURtaD42fOcyNo6wsmt46XLl6NofXWwGAGVedjIXGDQn3S6mNoNZO+gq90yjzT9VH2Ulcg7wtBuqZ7/dAJLXnV4rKOPOLNss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711274676; c=relaxed/simple; bh=ExiRDUlKHLS85OPfvFtzPRCduVMoukofsjcHFue/A+0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=fbmkkubsB49HZ5EuIm/q/cDvOg/pxiF9iBz3/8lkr30OkMNYDolc7mVoVt5IAT97cJ8PVNbk+KeuW8xx/hq4s4LAJVywDujByoL3TN9thaodDmhIl8yy2Q3A0nD9ZVmgQ3Ys3m0ka5Dp7/0G4FLQua5LJIciEI7lqdWTkdheXsI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XjFQtt2f; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711274675; x=1742810675; h=date:from:to:cc:subject:message-id:mime-version; bh=ExiRDUlKHLS85OPfvFtzPRCduVMoukofsjcHFue/A+0=; b=XjFQtt2fDJ49GA35g22X9ZNkvALpsI4bm91Zj0Rxm2GFlWINoeZdeREM qmKMGoJNnb8put6BGAtgI70Rjx7HrNcR+N8DaKVYwgS3ONWJ5fo45B2JG SnnwOmcAqvKlEgiNE364We4ibF5c/9WpFG2LCWIyV0ut/Fo8faEb9tMIz OPGtzF2AfvyksdaxV4GWxx/8Ajnts/Y/BNJs6zMT+PfyG7JJ2e+rcpRkz nM1cP56FBsJ1B8bhO9b11iFd+2CrXB2HhycsgZRFh0D3knG3lEYEiipeQ vaKU+Qz7jSiKNZA9tIU4ealxNb8hIe3ZKpygk2lJgHxTtZdstFiBQi48C g==; X-IronPort-AV: E=McAfee;i="6600,9927,11022"; a="9233841" X-IronPort-AV: E=Sophos;i="6.07,151,1708416000"; d="scan'208";a="9233841" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2024 03:04:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,151,1708416000"; d="scan'208";a="52801698" Received: from lkp-server01.sh.intel.com (HELO b21307750695) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 24 Mar 2024 03:04:31 -0700 Received: from kbuild by b21307750695 with local (Exim 4.96) (envelope-from ) id 1roKiL-000Lla-0C; Sun, 24 Mar 2024 10:04:29 +0000 Date: Sun, 24 Mar 2024 18:03:54 +0800 From: kernel test robot To: Hari Bathini Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Ellerman Subject: arch/powerpc/platforms/85xx/smp.c:401:20: error: 'crashing_cpu' undeclared; did you mean 'crash_save_cpu'? Message-ID: <202403241807.UsbRbcYO-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 70293240c5ce675a67bfc48f419b093023b862b3 commit: 5c4233cc0920cc90787aafe950b90f6c57a35b88 powerpc/kdump: Split KEXEC_CORE and CRASH_DUMP dependency date: 7 days ago config: powerpc64-randconfig-r023-20211203 (https://download.01.org/0day-ci/archive/20240324/202403241807.UsbRbcYO-lkp@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240324/202403241807.UsbRbcYO-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202403241807.UsbRbcYO-lkp@intel.com/ All errors (new ones prefixed by >>): arch/powerpc/platforms/85xx/smp.c: In function 'mpc85xx_smp_kexec_cpu_down': >> arch/powerpc/platforms/85xx/smp.c:401:20: error: 'crashing_cpu' undeclared (first use in this function); did you mean 'crash_save_cpu'? 401 | if (cpu == crashing_cpu && cpu_thread_in_core(cpu) != 0) { | ^~~~~~~~~~~~ | crash_save_cpu arch/powerpc/platforms/85xx/smp.c:401:20: note: each undeclared identifier is reported only once for each function it appears in vim +401 arch/powerpc/platforms/85xx/smp.c f933a41e419a954 Matthew McClintock 2010-07-21 380 f933a41e419a954 Matthew McClintock 2010-07-21 381 static void mpc85xx_smp_kexec_down(void *arg) f933a41e419a954 Matthew McClintock 2010-07-21 382 { f933a41e419a954 Matthew McClintock 2010-07-21 383 if (ppc_md.kexec_cpu_down) f933a41e419a954 Matthew McClintock 2010-07-21 384 ppc_md.kexec_cpu_down(0,1); f933a41e419a954 Matthew McClintock 2010-07-21 385 } 939fbf00805b395 Tiejun Chen 2015-10-06 386 #else 84a61fb43fdfc52 Michael Ellerman 2021-11-24 387 static void mpc85xx_smp_kexec_cpu_down(int crash_shutdown, int secondary) 939fbf00805b395 Tiejun Chen 2015-10-06 388 { f34b3e19fd060b8 Scott Wood 2015-10-06 389 int cpu = smp_processor_id(); f34b3e19fd060b8 Scott Wood 2015-10-06 390 int sibling = cpu_last_thread_sibling(cpu); f34b3e19fd060b8 Scott Wood 2015-10-06 391 bool notified = false; f34b3e19fd060b8 Scott Wood 2015-10-06 392 int disable_cpu; f34b3e19fd060b8 Scott Wood 2015-10-06 393 int disable_threadbit = 0; f34b3e19fd060b8 Scott Wood 2015-10-06 394 long start = mftb(); f34b3e19fd060b8 Scott Wood 2015-10-06 395 long now; f34b3e19fd060b8 Scott Wood 2015-10-06 396 939fbf00805b395 Tiejun Chen 2015-10-06 397 local_irq_disable(); 939fbf00805b395 Tiejun Chen 2015-10-06 398 hard_irq_disable(); 939fbf00805b395 Tiejun Chen 2015-10-06 399 mpic_teardown_this_cpu(secondary); f34b3e19fd060b8 Scott Wood 2015-10-06 400 f34b3e19fd060b8 Scott Wood 2015-10-06 @401 if (cpu == crashing_cpu && cpu_thread_in_core(cpu) != 0) { f34b3e19fd060b8 Scott Wood 2015-10-06 402 /* f34b3e19fd060b8 Scott Wood 2015-10-06 403 * We enter the crash kernel on whatever cpu crashed, f34b3e19fd060b8 Scott Wood 2015-10-06 404 * even if it's a secondary thread. If that's the case, f34b3e19fd060b8 Scott Wood 2015-10-06 405 * disable the corresponding primary thread. f34b3e19fd060b8 Scott Wood 2015-10-06 406 */ f34b3e19fd060b8 Scott Wood 2015-10-06 407 disable_threadbit = 1; f34b3e19fd060b8 Scott Wood 2015-10-06 408 disable_cpu = cpu_first_thread_sibling(cpu); f34b3e19fd060b8 Scott Wood 2015-10-06 409 } else if (sibling != crashing_cpu && f34b3e19fd060b8 Scott Wood 2015-10-06 410 cpu_thread_in_core(cpu) == 0 && f34b3e19fd060b8 Scott Wood 2015-10-06 411 cpu_thread_in_core(sibling) != 0) { f34b3e19fd060b8 Scott Wood 2015-10-06 412 disable_threadbit = 2; f34b3e19fd060b8 Scott Wood 2015-10-06 413 disable_cpu = sibling; f34b3e19fd060b8 Scott Wood 2015-10-06 414 } f34b3e19fd060b8 Scott Wood 2015-10-06 415 f34b3e19fd060b8 Scott Wood 2015-10-06 416 if (disable_threadbit) { d2e60075a3d4422 Nicholas Piggin 2018-02-14 417 while (paca_ptrs[disable_cpu]->kexec_state < KEXEC_STATE_REAL_MODE) { f34b3e19fd060b8 Scott Wood 2015-10-06 418 barrier(); f34b3e19fd060b8 Scott Wood 2015-10-06 419 now = mftb(); f34b3e19fd060b8 Scott Wood 2015-10-06 420 if (!notified && now - start > 1000000) { f34b3e19fd060b8 Scott Wood 2015-10-06 421 pr_info("%s/%d: waiting for cpu %d to enter KEXEC_STATE_REAL_MODE (%d)\n", f34b3e19fd060b8 Scott Wood 2015-10-06 422 __func__, smp_processor_id(), f34b3e19fd060b8 Scott Wood 2015-10-06 423 disable_cpu, d2e60075a3d4422 Nicholas Piggin 2018-02-14 424 paca_ptrs[disable_cpu]->kexec_state); f34b3e19fd060b8 Scott Wood 2015-10-06 425 notified = true; f34b3e19fd060b8 Scott Wood 2015-10-06 426 } f34b3e19fd060b8 Scott Wood 2015-10-06 427 } f34b3e19fd060b8 Scott Wood 2015-10-06 428 f34b3e19fd060b8 Scott Wood 2015-10-06 429 if (notified) { f34b3e19fd060b8 Scott Wood 2015-10-06 430 pr_info("%s: cpu %d done waiting\n", f34b3e19fd060b8 Scott Wood 2015-10-06 431 __func__, disable_cpu); f34b3e19fd060b8 Scott Wood 2015-10-06 432 } f34b3e19fd060b8 Scott Wood 2015-10-06 433 f34b3e19fd060b8 Scott Wood 2015-10-06 434 mtspr(SPRN_TENC, disable_threadbit); f34b3e19fd060b8 Scott Wood 2015-10-06 435 while (mfspr(SPRN_TENSR) & disable_threadbit) f34b3e19fd060b8 Scott Wood 2015-10-06 436 cpu_relax(); f34b3e19fd060b8 Scott Wood 2015-10-06 437 } 939fbf00805b395 Tiejun Chen 2015-10-06 438 } 939fbf00805b395 Tiejun Chen 2015-10-06 439 #endif f933a41e419a954 Matthew McClintock 2010-07-21 440 :::::: The code at line 401 was first introduced by commit :::::: f34b3e19fd060b87e97c89050f2b40b8ada468a9 powerpc/e6500: kexec: Handle hardware threads :::::: TO: Scott Wood :::::: CC: Scott Wood -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki