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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45E07EB64DD for ; Sat, 5 Aug 2023 05:12:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5B5978D0002; Sat, 5 Aug 2023 01:12:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 565758D0001; Sat, 5 Aug 2023 01:12:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 42D1F8D0002; Sat, 5 Aug 2023 01:12:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 34BC58D0001 for ; Sat, 5 Aug 2023 01:12:23 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id F2807160698 for ; Sat, 5 Aug 2023 05:12:22 +0000 (UTC) X-FDA: 81088880124.07.25F2E5B Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by imf19.hostedemail.com (Postfix) with ESMTP id 7304E1A000E for ; Sat, 5 Aug 2023 05:12:20 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=gC7NCnYG; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691212341; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=NYsqa3IjzMR6Yk9dIk2tXMiysS+KKgTkFyg88RYQfE4=; b=YPUt4U5ngAM66Vi3k46FDRM4xyF02TOw/B19Z6rbJ2UV+VJWSGcrRGaRlXqzfy8nx9evoG aswdMRgXp7n2wRIP+HHds6W+QTG7BPGlzmPCZQ3/7SMLmWg7s9g9W7zc12mrecbGkEjqve nrOlhuwG3j5CQzJYbXVoryyEpaDl4/k= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=gC7NCnYG; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691212341; a=rsa-sha256; cv=none; b=HCoKmEc1O7Bi/vkG92f/tiodNU3yPpsVKLTjiAQedrzyg8UgkyIeWhwpGFp6z2k3YyXRdp tGgZmVhbcLiviViI/vuvRe70mqBVSqzsiX1/95CtV+Lxus9KL2gWxkUgf1YgF2VUfqO+jN q/cSyxuPoBmtGPzYInjdUHDventGkQQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691212340; x=1722748340; h=date:from:to:cc:subject:message-id:mime-version; bh=cj9QUPnMSC3QzUf5+xKLz0OtlqDYMpjdxbtiP+TM4jY=; b=gC7NCnYGIe+ld3Kny0YhUX7glQfmgzPJxRU+rKnvx1hL2YcN+j7yPZJC KBMMDG7Bq9PfNxN+StZ87uPSFzGjq9MQQ4y6mZE4iwFF7U2OeWPofxIfC DW/C+nOPK0i9ZzEeHPibxegBbMRgimylGn1r2t9NpSLbVvoSrwLvrjDEQ KvHNfEoAsH9YuPf2hwCo5bFPbAvjMMYxlwhbjm+iQST+A9csnpyOXDWdn fh1GrmUqYRZ5sBw4wknFnonAu4YgTUmkuB8DnMRr8SmoeSXL4r51YW/9p t/8Dioe0oxLX+ZKeEnkjfmEu3i+11/1jstxrFVPNfbvaS8pdIsIEujcRB Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="370280855" X-IronPort-AV: E=Sophos;i="6.01,256,1684825200"; d="scan'208";a="370280855" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 22:12:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="733513796" X-IronPort-AV: E=Sophos;i="6.01,256,1684825200"; d="scan'208";a="733513796" Received: from lkp-server01.sh.intel.com (HELO d1ccc7e87e8f) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 04 Aug 2023 22:12:16 -0700 Received: from kbuild by d1ccc7e87e8f with local (Exim 4.96) (envelope-from ) id 1qS9aJ-0003Kd-2D; Sat, 05 Aug 2023 05:12:15 +0000 Date: Sat, 5 Aug 2023 13:11:16 +0800 From: kernel test robot To: Douglas Anderson Cc: oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List Subject: [akpm-mm:mm-nonmm-unstable 54/56] kernel/watchdog.c:526:25: error: too many arguments to function 'trigger_allbutcpu_cpu_backtrace' Message-ID: <202308051325.L5GexhAl-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 7304E1A000E X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: iu6qkq7a7pq5pxf38gcajicoonp9qrks X-HE-Tag: 1691212340-266908 X-HE-Meta: U2FsdGVkX1/904pUWd4t9xqQMfIiGL5IERaTxJwCdfbOssWu4PuOCbFHsZ7eaNcR6pYyKLgWIjUC86YHpKCES9UNx292M8gNc+A45/tZHfRiYtYXkIajZUG6wcu7J7uABgWfaJ+ik4Hfg06jYXlu/oKliXnaaNrdHsO2jn+dvhQdJgfvWmsYAx6AZf1qI3J67UMc3GK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sWQcdiFWgIO50VXnfdUUbL0sIL2RUoZEDgob2NtcRBpvigbIvowPXoZvrkq4iLAJxY3Z0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable head: b1cb25d092e113f8a4424a37c94b1d41cb430511 commit: 0ca1d340a231ec8e8f2586c4bf2dc8c4f7d4ddc9 [54/56] nmi_backtrace: allow excluding an arbitrary CPU config: sparc-randconfig-r036-20230731 (https://download.01.org/0day-ci/archive/20230805/202308051325.L5GexhAl-lkp@intel.com/config) compiler: sparc-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230805/202308051325.L5GexhAl-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/202308051325.L5GexhAl-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/watchdog.c: In function 'watchdog_timer_fn': >> kernel/watchdog.c:526:25: error: too many arguments to function 'trigger_allbutcpu_cpu_backtrace' 526 | trigger_allbutcpu_cpu_backtrace(smp_processor_id()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from kernel/watchdog.c:17: include/linux/nmi.h:193:20: note: declared here 193 | static inline bool trigger_allbutcpu_cpu_backtrace(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/trigger_allbutcpu_cpu_backtrace +526 kernel/watchdog.c 441 442 /* watchdog kicker functions */ 443 static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) 444 { 445 unsigned long touch_ts, period_ts, now; 446 struct pt_regs *regs = get_irq_regs(); 447 int duration; 448 int softlockup_all_cpu_backtrace = sysctl_softlockup_all_cpu_backtrace; 449 450 if (!watchdog_enabled) 451 return HRTIMER_NORESTART; 452 453 watchdog_hardlockup_kick(); 454 455 /* kick the softlockup detector */ 456 if (completion_done(this_cpu_ptr(&softlockup_completion))) { 457 reinit_completion(this_cpu_ptr(&softlockup_completion)); 458 stop_one_cpu_nowait(smp_processor_id(), 459 softlockup_fn, NULL, 460 this_cpu_ptr(&softlockup_stop_work)); 461 } 462 463 /* .. and repeat */ 464 hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); 465 466 /* 467 * Read the current timestamp first. It might become invalid anytime 468 * when a virtual machine is stopped by the host or when the watchog 469 * is touched from NMI. 470 */ 471 now = get_timestamp(); 472 /* 473 * If a virtual machine is stopped by the host it can look to 474 * the watchdog like a soft lockup. This function touches the watchdog. 475 */ 476 kvm_check_and_clear_guest_paused(); 477 /* 478 * The stored timestamp is comparable with @now only when not touched. 479 * It might get touched anytime from NMI. Make sure that is_softlockup() 480 * uses the same (valid) value. 481 */ 482 period_ts = READ_ONCE(*this_cpu_ptr(&watchdog_report_ts)); 483 484 /* Reset the interval when touched by known problematic code. */ 485 if (period_ts == SOFTLOCKUP_DELAY_REPORT) { 486 if (unlikely(__this_cpu_read(softlockup_touch_sync))) { 487 /* 488 * If the time stamp was touched atomically 489 * make sure the scheduler tick is up to date. 490 */ 491 __this_cpu_write(softlockup_touch_sync, false); 492 sched_clock_tick(); 493 } 494 495 update_report_ts(); 496 return HRTIMER_RESTART; 497 } 498 499 /* Check for a softlockup. */ 500 touch_ts = __this_cpu_read(watchdog_touch_ts); 501 duration = is_softlockup(touch_ts, period_ts, now); 502 if (unlikely(duration)) { 503 /* 504 * Prevent multiple soft-lockup reports if one cpu is already 505 * engaged in dumping all cpu back traces. 506 */ 507 if (softlockup_all_cpu_backtrace) { 508 if (test_and_set_bit_lock(0, &soft_lockup_nmi_warn)) 509 return HRTIMER_RESTART; 510 } 511 512 /* Start period for the next softlockup warning. */ 513 update_report_ts(); 514 515 pr_emerg("BUG: soft lockup - CPU#%d stuck for %us! [%s:%d]\n", 516 smp_processor_id(), duration, 517 current->comm, task_pid_nr(current)); 518 print_modules(); 519 print_irqtrace_events(current); 520 if (regs) 521 show_regs(regs); 522 else 523 dump_stack(); 524 525 if (softlockup_all_cpu_backtrace) { > 526 trigger_allbutcpu_cpu_backtrace(smp_processor_id()); 527 clear_bit_unlock(0, &soft_lockup_nmi_warn); 528 } 529 530 add_taint(TAINT_SOFTLOCKUP, LOCKDEP_STILL_OK); 531 if (softlockup_panic) 532 panic("softlockup: hung tasks"); 533 } 534 535 return HRTIMER_RESTART; 536 } 537 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki