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=-6.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gnuweeb.org (Postfix) with ESMTPS id 037CE7E2F6 for ; Fri, 11 Mar 2022 07:32:37 +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=Jg3jwA5R; 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=1646983957; x=1678519957; h=date:from:to:cc:subject:message-id:mime-version; bh=EcjMDRYKrS/ma9bf994fx3+nJO3oahK6xznz/OaloPc=; b=Jg3jwA5RdF0VfdIPNIiz/WKZWxa+/fg1uxWuPfkVe6xlbq9Uuq5eM6dy 6MA/e/Ij56MEmKtnJs090niuXIhxSbPi07umGWTW0MzAxXwWJQjGIwR25 aDo4u1D4BT2ydEljUPqIPRvFadPssGS3avBRPeerijaA1YGacevYrnLwR RLAugxg2g/rl728FYI9uoly60JG/GX4QcVb059rBPKwhdGhpGymtaZ1uF 9/RfbR4v5Vi6wrHB91NUkrAbG08Qbt3G65jR3Tdis/eDiP69mwqnyYDdI U+2UAH7FRbWUT/08mXPcEB06ca342LBhx1MniP6Fg2rtypYhr/qvtDM2f g==; X-IronPort-AV: E=McAfee;i="6200,9189,10282"; a="280263054" X-IronPort-AV: E=Sophos;i="5.90,173,1643702400"; d="scan'208";a="280263054" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 23:32:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,173,1643702400"; d="scan'208";a="514414751" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 10 Mar 2022 23:32:35 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nSZlK-00062c-LP; Fri, 11 Mar 2022 07:32:34 +0000 Date: Fri, 11 Mar 2022 15:32:11 +0800 From: kernel test robot To: Hector Martin Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:axboe/linux-block/m1-test-nvme 364/393] drivers/cpufreq/apple-soc-cpufreq.c:53:19: error: implicit declaration of function 'readq_relaxed'; did you mean 'readl_relaxed'? Message-ID: <202203111559.rprMEGAk-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: Hi Hector, FYI, the error/warning still remains. tree: https://github.com/ammarfaizi2/linux-block axboe/linux-block/m1-test-nvme head: c0629b5191ba9a1a5372182580dc5452072ac666 commit: d2b69a6992028350d06be95501463259969d22d2 [364/393] cpufreq: apple-soc: Add new driver to control Apple SoC CPU P-states config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20220311/202203111559.rprMEGAk-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0 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/d2b69a6992028350d06be95501463259969d22d2 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block axboe/linux-block/m1-test-nvme git checkout d2b69a6992028350d06be95501463259969d22d2 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/cpufreq/apple-soc-cpufreq.c: In function 'apple_soc_cpufreq_get_rate': >> drivers/cpufreq/apple-soc-cpufreq.c:53:19: error: implicit declaration of function 'readq_relaxed'; did you mean 'readl_relaxed'? [-Werror=implicit-function-declaration] 53 | u64 reg = readq_relaxed(priv->reg_base + APPLE_CLUSTER_PSTATE); | ^~~~~~~~~~~~~ | readl_relaxed In file included from drivers/cpufreq/apple-soc-cpufreq.c:20: drivers/cpufreq/apple-soc-cpufreq.c: In function 'apple_soc_cpufreq_set_target': >> include/linux/iopoll.h:162:28: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration] 162 | readx_poll_timeout(readq, addr, val, cond, delay_us, timeout_us) | ^~~~~ include/linux/iopoll.h:46:25: note: in definition of macro 'read_poll_timeout' 46 | (val) = op(args); \ | ^~ include/linux/iopoll.h:162:9: note: in expansion of macro 'readx_poll_timeout' 162 | readx_poll_timeout(readq, addr, val, cond, delay_us, timeout_us) | ^~~~~~~~~~~~~~~~~~ drivers/cpufreq/apple-soc-cpufreq.c:71:13: note: in expansion of macro 'readq_poll_timeout' 71 | if (readq_poll_timeout(priv->reg_base + APPLE_CLUSTER_PSTATE, reg, | ^~~~~~~~~~~~~~~~~~ >> drivers/cpufreq/apple-soc-cpufreq.c:82:9: error: implicit declaration of function 'writeq_relaxed'; did you mean 'writeb_relaxed'? [-Werror=implicit-function-declaration] 82 | writeq_relaxed(reg, priv->reg_base + APPLE_CLUSTER_PSTATE); | ^~~~~~~~~~~~~~ | writeb_relaxed cc1: some warnings being treated as errors vim +53 drivers/cpufreq/apple-soc-cpufreq.c 48 49 static unsigned int apple_soc_cpufreq_get_rate(unsigned int cpu) 50 { 51 struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpu); 52 struct apple_cpu_priv *priv = policy->driver_data; > 53 u64 reg = readq_relaxed(priv->reg_base + APPLE_CLUSTER_PSTATE); 54 unsigned int pstate = FIELD_GET(APPLE_CLUSTER_PSTATE_DESIRED1, reg); 55 unsigned int i; 56 57 for (i = 0; policy->freq_table[i].frequency != CPUFREQ_TABLE_END; i++) 58 if (policy->freq_table[i].driver_data == pstate) 59 return policy->freq_table[i].frequency; 60 61 dev_err(priv->cpu_dev, "could not find frequency for pstate %d\n", pstate); 62 return 0; 63 } 64 65 static int apple_soc_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) 66 { 67 struct apple_cpu_priv *priv = policy->driver_data; 68 unsigned int pstate = policy->freq_table[index].driver_data; 69 u64 reg; 70 > 71 if (readq_poll_timeout(priv->reg_base + APPLE_CLUSTER_PSTATE, reg, 72 !(reg & APPLE_CLUSTER_PSTATE_BUSY), 2, 73 APPLE_CLUSTER_SWITCH_TIMEOUT)) { 74 return -EIO; 75 } 76 77 reg &= ~(APPLE_CLUSTER_PSTATE_DESIRED1 | APPLE_CLUSTER_PSTATE_DESIRED2); 78 reg |= FIELD_PREP(APPLE_CLUSTER_PSTATE_DESIRED1, pstate); 79 reg |= FIELD_PREP(APPLE_CLUSTER_PSTATE_DESIRED2, pstate); 80 reg |= APPLE_CLUSTER_PSTATE_SET; 81 > 82 writeq_relaxed(reg, priv->reg_base + APPLE_CLUSTER_PSTATE); 83 84 return 0; 85 } 86 --- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org