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 BD816EE57CF for ; Wed, 11 Sep 2024 20:20:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 10C416B007B; Wed, 11 Sep 2024 16:20:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0BC9D6B0082; Wed, 11 Sep 2024 16:20:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EC5936B0083; Wed, 11 Sep 2024 16:20:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id CD9106B007B for ; Wed, 11 Sep 2024 16:20:29 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 3A8B31409A3 for ; Wed, 11 Sep 2024 20:20:29 +0000 (UTC) X-FDA: 82553574978.15.546E871 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by imf08.hostedemail.com (Postfix) with ESMTP id 66A6D16002B for ; Wed, 11 Sep 2024 20:20:26 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ONnrU2ns; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf08.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726085950; a=rsa-sha256; cv=none; b=lsJIQBW9yt5QCpUq2cgd7LnvwG2/XitoTibLeplUC/VK8aSKxM7k9eWreB0+kgU3mlFxpH dKxNMLVXFGz427qC5zDHaQICpRQ+RRQGUcV8ZQXPVRlJl1laE5uOW5xZyv0BiDvFroikBg 0jVmG13kvkyODpqbmoc7WwnOLQG20Kk= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ONnrU2ns; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf08.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 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=1726085950; 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=mG+Qm+oe82vZUq0Mch7+VWXcMsAhlQIUmAKsvEUYiFI=; b=N2vX5FNftMKo4/klVFUqj8m70Ljhj4DGqO26eXntV0c+c/8O+mbeb5H6/GEjyuYSge0vEo YdIxFl9G/s4LTy8B8ssCgmLd0mu+GVTPhWJmSKY2nJxgPLu5QehyW8m3e9b+PghY7LS0ev 2QXSQzz+rLpEpQFFVffIH45xm60WK78= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726086026; x=1757622026; h=date:from:to:cc:subject:message-id:mime-version; bh=wHyoVIPpAR0jrjQbG5PpAGM3dgRTn11n3tGF54A8vQI=; b=ONnrU2nsgKcDq9ljcRqYRbFd4lbVwVDiEc7nR5GoEu1uLavp6QLj/3S0 Y/dAD9KqxA7awNNoP6njTo/zcNFbg+mq9mLJ+Hm0Xl79h79wwU8FTGuN6 KUasgktyaLz2w3kxbfqrhlaZzyr8Lr+jH0c+g/kkwMt6HVFOCOtbEf2E+ 3NRKlY+vIsyWaXmRCpW0NzOUYZ9gZOvuT75HwMdRDsxEdIhgaNvZZPNG/ tgPh0TsEmpRdO/7valK8n5obKWBJzKXQdKHCOwmlcEaYQ/owW8qfZam4P QSq0rweWLTdrknw8ByTE14EcXxpMKWb6SnFYbaetAWLdFztLIC7KbqGPM g==; X-CSE-ConnectionGUID: M+S1IiM2TcCmERgNIW/9vg== X-CSE-MsgGUID: 3n7WUCemRAecfdJPlixedQ== X-IronPort-AV: E=McAfee;i="6700,10204,11192"; a="25069179" X-IronPort-AV: E=Sophos;i="6.10,221,1719903600"; d="scan'208";a="25069179" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2024 13:20:16 -0700 X-CSE-ConnectionGUID: KOqTCO1qT3+5UoHWDVjGcw== X-CSE-MsgGUID: C+SREGTOQEu78PUreKYEWw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,221,1719903600"; d="scan'208";a="98179291" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 11 Sep 2024 13:20:14 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1soToy-00046C-1c; Wed, 11 Sep 2024 20:20:12 +0000 Date: Thu, 12 Sep 2024 04:19:48 +0800 From: kernel test robot To: Marek Maslanka Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Daniel Lezcano , Hans de Goede Subject: [linux-next:master 9586/11210] drivers/platform/x86/intel/pmc/core.c:1501:3: error: call to undeclared function 'acpi_pmtmr_register_suspend_resume_callback'; ISO C99 and later do not support implicit function declarations Message-ID: <202409120421.uRV5boAk-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 66A6D16002B X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: e1jyanfcwdzi7n46duj5b3wxmoxjcer5 X-HE-Tag: 1726086026-365890 X-HE-Meta: U2FsdGVkX1+4I4Y6v0tmdz0NeC+XUj7S6WZZz5440XE+Jeey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XqYX2GB3kaveYORmRxLo1SqcyhmKkQSr2v7z5dMo/i6y/UG1/Hv/kJt34nZBhBZMfATvp+KmxEaeNSta/DRVuGoi3Ak6sbRKAuTYGi0QBbHHAINA0WuS187vD+rNZXEUWV6Fx+VUOYXfD30soAPaUL5ypLWLDXvt6pj9mBSrNodMl+cln6QqI5luwCRv4uYbo8zqahAZQVLswLgGtDJc3UORrkiWsCOUWE70W5mIVD+vgt1Zr2/tD72e/qs1B04I+x3dtg4gWNqFMxTWXQiZVY3WosP8o1CpwkmylQ== 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 32ffa5373540a8d1c06619f52d019c6cdc948bb4 commit: e86c8186d03a6ba018e881ed45f0962ad553e861 [9586/11210] platform/x86:intel/pmc: Enable the ACPI PM Timer to be turned off when suspended config: x86_64-buildonly-randconfig-001-20240912 (https://download.01.org/0day-ci/archive/20240912/202409120421.uRV5boAk-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240912/202409120421.uRV5boAk-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/202409120421.uRV5boAk-lkp@intel.com/ Note: the linux-next/master HEAD 32ffa5373540a8d1c06619f52d019c6cdc948bb4 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): >> drivers/platform/x86/intel/pmc/core.c:1501:3: error: call to undeclared function 'acpi_pmtmr_register_suspend_resume_callback'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1501 | acpi_pmtmr_register_suspend_resume_callback(pmc_core_acpi_pm_timer_suspend_resume, | ^ >> drivers/platform/x86/intel/pmc/core.c:1517:3: error: call to undeclared function 'acpi_pmtmr_unregister_suspend_resume_callback'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1517 | acpi_pmtmr_unregister_suspend_resume_callback(); | ^ 2 errors generated. vim +/acpi_pmtmr_register_suspend_resume_callback +1501 drivers/platform/x86/intel/pmc/core.c 1433 1434 static int pmc_core_probe(struct platform_device *pdev) 1435 { 1436 static bool device_initialized; 1437 struct pmc_dev *pmcdev; 1438 const struct x86_cpu_id *cpu_id; 1439 int (*core_init)(struct pmc_dev *pmcdev); 1440 const struct pmc_reg_map *map; 1441 struct pmc *primary_pmc; 1442 int ret; 1443 1444 if (device_initialized) 1445 return -ENODEV; 1446 1447 pmcdev = devm_kzalloc(&pdev->dev, sizeof(*pmcdev), GFP_KERNEL); 1448 if (!pmcdev) 1449 return -ENOMEM; 1450 1451 pmcdev->crystal_freq = pmc_core_get_crystal_freq(); 1452 1453 platform_set_drvdata(pdev, pmcdev); 1454 pmcdev->pdev = pdev; 1455 1456 cpu_id = x86_match_cpu(intel_pmc_core_ids); 1457 if (!cpu_id) 1458 return -ENODEV; 1459 1460 core_init = (int (*)(struct pmc_dev *))cpu_id->driver_data; 1461 1462 /* Primary PMC */ 1463 primary_pmc = devm_kzalloc(&pdev->dev, sizeof(*primary_pmc), GFP_KERNEL); 1464 if (!primary_pmc) 1465 return -ENOMEM; 1466 pmcdev->pmcs[PMC_IDX_MAIN] = primary_pmc; 1467 1468 /* The last element in msr_map is empty */ 1469 pmcdev->num_of_pkgc = ARRAY_SIZE(msr_map) - 1; 1470 pmcdev->pkgc_res_cnt = devm_kcalloc(&pdev->dev, 1471 pmcdev->num_of_pkgc, 1472 sizeof(*pmcdev->pkgc_res_cnt), 1473 GFP_KERNEL); 1474 if (!pmcdev->pkgc_res_cnt) 1475 return -ENOMEM; 1476 1477 /* 1478 * Coffee Lake has CPU ID of Kaby Lake and Cannon Lake PCH. So here 1479 * Sunrisepoint PCH regmap can't be used. Use Cannon Lake PCH regmap 1480 * in this case. 1481 */ 1482 if (core_init == spt_core_init && !pci_dev_present(pmc_pci_ids)) 1483 core_init = cnp_core_init; 1484 1485 mutex_init(&pmcdev->lock); 1486 ret = core_init(pmcdev); 1487 if (ret) { 1488 pmc_core_clean_structure(pdev); 1489 return ret; 1490 } 1491 1492 pmcdev->pmc_xram_read_bit = pmc_core_check_read_lock_bit(primary_pmc); 1493 pmc_core_do_dmi_quirks(primary_pmc); 1494 1495 pmc_core_dbgfs_register(pmcdev); 1496 pm_report_max_hw_sleep(FIELD_MAX(SLP_S0_RES_COUNTER_MASK) * 1497 pmc_core_adjust_slp_s0_step(primary_pmc, 1)); 1498 1499 map = primary_pmc->map; 1500 if (map->acpi_pm_tmr_ctl_offset) > 1501 acpi_pmtmr_register_suspend_resume_callback(pmc_core_acpi_pm_timer_suspend_resume, 1502 pmcdev); 1503 1504 device_initialized = true; 1505 dev_info(&pdev->dev, " initialized\n"); 1506 1507 return 0; 1508 } 1509 1510 static void pmc_core_remove(struct platform_device *pdev) 1511 { 1512 struct pmc_dev *pmcdev = platform_get_drvdata(pdev); 1513 const struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; 1514 const struct pmc_reg_map *map = pmc->map; 1515 1516 if (map->acpi_pm_tmr_ctl_offset) > 1517 acpi_pmtmr_unregister_suspend_resume_callback(); 1518 1519 pmc_core_dbgfs_unregister(pmcdev); 1520 pmc_core_clean_structure(pdev); 1521 } 1522 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki