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 5C9F5E6FE49 for ; Sun, 8 Sep 2024 19:00:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 567DA6B00A6; Sun, 8 Sep 2024 15:00:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5165D6B00DB; Sun, 8 Sep 2024 15:00:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3B6996B00DC; Sun, 8 Sep 2024 15:00:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 1B7876B00A6 for ; Sun, 8 Sep 2024 15:00:38 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id A55611205CE for ; Sun, 8 Sep 2024 19:00:37 +0000 (UTC) X-FDA: 82542487314.13.8D45CD4 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by imf12.hostedemail.com (Postfix) with ESMTP id 1049540018 for ; Sun, 8 Sep 2024 19:00:34 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=AvIDp6kR; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 198.175.65.13 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725821936; 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=8TyQaqn0MoH0wPDjbCcPs4aRfYQuA9P0P+k44tvM5Z8=; b=nrF5b1Uk3tgW22MdZkyYfPQ6XxqLJvBx04jMzezvP5YbtsxyU9UYCGdA5UMP9tfTpZCl4A YFovLZvTYN8XbUTUWptfYS3L/xiOpQ/PjZvyJN0fM6+zvGghUaxZfddrJ+zDJzGMpeIJ31 97rAhOXS2BqUXj74PhupgRREdQK75eY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725821936; a=rsa-sha256; cv=none; b=0P69ZMXIL+Ct4PDvMXw20n3gy0qMuha0loCSDoZfucCjFEgYUcUbz8kRJWBsSAvKK+iAUL 5BiOsoRKXOPGRDiM3dciVyn6+fGZrdi8iweTvSCNtEDzbYgqYUhatfVfdySv4HEZztYEsO Q7+yX1Ji2eU12HSMUtBaEZhL+9z1rdY= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=AvIDp6kR; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 198.175.65.13 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725822035; x=1757358035; h=date:from:to:cc:subject:message-id:mime-version; bh=YS38vJOyYA9p1FkTM6kNg0CiQyD3ndGOMl79DOuvFYw=; b=AvIDp6kRBcVp/xcDL7FZ+voBb7Dk1JNQ5/mKn8uY44w0cif2kiNKJJgw a19S18+212vCzUht4VSiogCZ42Bmel9UU8UM0H5cvucwnke4OB1Lutx3i 7xxSqenNj7DgWoVd94uWh3ug75ry7OJUR8JGmEDxMVHdY8XCD024c3Krh Js0OGl9uX2K9wn9tcrLPMqp8Jkf2pNIflfKZaaVzJYujvBLCHif3Bq8I2 Ygu884jkLoAVf+IYyeeL1chKKc/nMp+PLwm/P4L8liyq4eT4s+8bdm+js zuD/Vc7f+Ky6PeJAIWMDT7mJ0iDSmqXBTjDoJTuYBgz2fX7rkCOT+NI3M g==; X-CSE-ConnectionGUID: lInroguZQhaWdakgwVVwdA== X-CSE-MsgGUID: iRcZXPk1QWW0XT8+w3xqHg== X-IronPort-AV: E=McAfee;i="6700,10204,11189"; a="35652353" X-IronPort-AV: E=Sophos;i="6.10,212,1719903600"; d="scan'208";a="35652353" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2024 12:00:33 -0700 X-CSE-ConnectionGUID: iUUBhl53Ro2tjlqLnvf+ng== X-CSE-MsgGUID: Ocl1ERzZQoqMhsd4MNEmVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,212,1719903600"; d="scan'208";a="66089037" Received: from lkp-server01.sh.intel.com (HELO 9c6b1c7d3b50) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 08 Sep 2024 12:00:32 -0700 Received: from kbuild by 9c6b1c7d3b50 with local (Exim 4.96) (envelope-from ) id 1snN9B-000DrJ-2h; Sun, 08 Sep 2024 19:00:29 +0000 Date: Mon, 9 Sep 2024 02:59:38 +0800 From: kernel test robot To: Marek Maslanka Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Daniel Lezcano , Hans de Goede Subject: [linux-next:master 7987/10296] drivers/platform/x86/intel/pmc/core.c:1501:17: error: implicit declaration of function 'acpi_pmtmr_register_suspend_resume_callback' Message-ID: <202409090259.6vsS5Bni-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 1049540018 X-Stat-Signature: 9fwwjw58xex1temydxsey5et8uqmjea3 X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1725822034-939032 X-HE-Meta: U2FsdGVkX1/Kw0vqGWdhpKnL/cwhWOxLOgZHxQxuFjCRDDArHlwvLzFXTdkp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cf9TGEhf4czxWVH6TOwDAuMRd0GCnaGHKkyS/ata6aHGIclmS0kFXoJVNAiGP5E7/olrwP7BBJ89UIKT7jrX3MaxRURoMd+r1HgNJf0D2SE0EEJrtsPan96fnHOTFRoHPg3ZD3x5gOUqbPN/zALAZkxD1BS496GPKx7IKahI7rgsVYJ6C+h8ctVr+46C7JVn719+fTpQRFIuYHoCjwgsROP6zi++yvxaAKjkK67ZQQCpspdSgcg== 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: 9aaeb87ce1e966169a57f53a02ba05b30880ffb8 commit: e774696b1f95cc758fa7fdf2b700733cfc7b6fb9 [7987/10296] platform/x86:intel/pmc: Enable the ACPI PM Timer to be turned off when suspended config: x86_64-buildonly-randconfig-002-20240514 (https://download.01.org/0day-ci/archive/20240909/202409090259.6vsS5Bni-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240909/202409090259.6vsS5Bni-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/202409090259.6vsS5Bni-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/platform/x86/intel/pmc/core.c: In function 'pmc_core_probe': >> drivers/platform/x86/intel/pmc/core.c:1501:17: error: implicit declaration of function 'acpi_pmtmr_register_suspend_resume_callback' [-Werror=implicit-function-declaration] 1501 | acpi_pmtmr_register_suspend_resume_callback(pmc_core_acpi_pm_timer_suspend_resume, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/x86/intel/pmc/core.c: In function 'pmc_core_remove': >> drivers/platform/x86/intel/pmc/core.c:1517:17: error: implicit declaration of function 'acpi_pmtmr_unregister_suspend_resume_callback' [-Werror=implicit-function-declaration] 1517 | acpi_pmtmr_unregister_suspend_resume_callback(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors 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