xillybus_of.c:undefined reference to `devm_platform_ioremap_resource'
by kernel test robot
Hi Herbert,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c5d9ae265b105d9a67575fb67bd4650a6fc08e25
commit: a1315dcb7b6a7d3a78df848eed5b331a4b3ec28a hwrng: ks-sa - Add dependency on IOMEM and OF
date: 1 year, 2 months ago
config: s390-randconfig-r023-20220216 (https://download.01.org/0day-ci/archive/20220216/202202162154.UCKoGB2J-lk...)
compiler: s390-linux-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a1315dcb7b6a7d3a78df848eed5b331a4b3ec28a
# 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=s390 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
s390-linux-ld: drivers/irqchip/irq-imx-intmux.o: in function `imx_intmux_probe':
irq-imx-intmux.c:(.text+0xbaa): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/phy/marvell/phy-mvebu-a3700-utmi.o: in function `mvebu_a3700_utmi_phy_probe':
phy-mvebu-a3700-utmi.c:(.text+0x29c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/clk/clk-fixed-mmio.o: in function `fixed_mmio_clk_setup':
clk-fixed-mmio.c:(.text+0x96): undefined reference to `of_iomap'
s390-linux-ld: clk-fixed-mmio.c:(.text+0x118): undefined reference to `iounmap'
s390-linux-ld: drivers/dma/fsl-edma.o: in function `fsl_edma_probe':
fsl-edma.c:(.text+0xd48): undefined reference to `devm_ioremap_resource'
s390-linux-ld: fsl-edma.c:(.text+0x1458): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/idma64.o: in function `idma64_platform_probe':
idma64.c:(.text+0x374c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/qcom/hidma.o: in function `hidma_probe':
hidma.c:(.text+0x289c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: hidma.c:(.text+0x28e4): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/ti/edma.o: in function `edma_xbar_event_map':
edma.c:(.text+0x2440): undefined reference to `of_address_to_resource'
s390-linux-ld: edma.c:(.text+0x246e): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/dma/ti/edma.o: in function `edma_probe':
edma.c:(.text+0x9cda): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/ti/omap-dma.o: in function `omap_dma_probe':
omap-dma.c:(.text+0x57c6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/ti/dma-crossbar.o: in function `ti_am335x_xbar_probe':
dma-crossbar.c:(.text+0x1264): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/dma/ti/dma-crossbar.o: in function `ti_dra7_xbar_probe':
dma-crossbar.c:(.text+0x18ae): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_console_close':
dpaa2-console.c:(.text+0xa8): undefined reference to `iounmap'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_console_probe':
dpaa2-console.c:(.text+0x250): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_generic_console_open.constprop.0':
dpaa2-console.c:(.text+0x386): undefined reference to `ioremap'
s390-linux-ld: dpaa2-console.c:(.text+0x3d8): undefined reference to `iounmap'
s390-linux-ld: dpaa2-console.c:(.text+0x412): undefined reference to `ioremap'
s390-linux-ld: dpaa2-console.c:(.text+0x554): undefined reference to `iounmap'
s390-linux-ld: drivers/char/hw_random/exynos-trng.o: in function `exynos_trng_probe':
exynos-trng.c:(.text+0x38c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/meson-rng.o: in function `meson_rng_probe':
meson-rng.c:(.text+0x142): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/mtk-rng.o: in function `mtk_rng_probe':
mtk-rng.c:(.text+0x4f8): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/npcm-rng.o: in function `npcm_rng_probe':
npcm-rng.c:(.text+0x494): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/xillybus/xillybus_of.o: in function `xilly_drv_probe':
>> xillybus_of.c:(.text+0x2c0): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mfd/sun6i-prcm.o: in function `sun6i_prcm_probe':
sun6i-prcm.c:(.text+0x130): undefined reference to `mfd_add_devices'
s390-linux-ld: drivers/net/ethernet/altera/altera_tse_main.o: in function `request_and_map':
altera_tse_main.c:(.text+0x1bd8): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/ptp/ptp_qoriq.o: in function `ptp_qoriq_probe':
ptp_qoriq.c:(.text+0x223c): undefined reference to `ioremap'
s390-linux-ld: ptp_qoriq.c:(.text+0x22c4): undefined reference to `iounmap'
s390-linux-ld: drivers/ptp/ptp_qoriq.o: in function `ptp_qoriq_free':
ptp_qoriq.c:(.text+0x2436): undefined reference to `iounmap'
s390-linux-ld: drivers/watchdog/sirfsoc_wdt.o: in function `sirfsoc_wdt_probe':
sirfsoc_wdt.c:(.text+0x4f4): undefined reference to `devm_platform_ioremap_resource'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for MFD_SUN6I_PRCM
Depends on HAS_IOMEM && (ARCH_SUNXI || COMPILE_TEST
Selected by
- CLK_SUNXI_PRCM_SUN6I && COMMON_CLK && CLK_SUNXI
- CLK_SUNXI_PRCM_SUN8I && COMMON_CLK && CLK_SUNXI
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months
Re: [RFC PATCH V1 3/5] mm/damon: Add 'damon_region' NUMA access statistics core implementation
by kernel test robot
Hi Xin,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on linus/master]
[also build test ERROR on v5.17-rc4]
[cannot apply to hnaz-mm/master rostedt-trace/for-next next-20220216]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Xin-Hao/mm-damon-Add-NUMA-access...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git c5d9ae265b105d9a67575fb67bd4650a6fc08e25
config: nios2-randconfig-r022-20220216 (https://download.01.org/0day-ci/archive/20220216/202202162059.x4hUQVt5-lk...)
compiler: nios2-linux-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/0day-ci/linux/commit/f84003da496b71b9f13c4de140de21d70...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xin-Hao/mm-damon-Add-NUMA-access-statistics-function-support/20220216-163243
git checkout f84003da496b71b9f13c4de140de21d70a73a408
# 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=nios2 SHELL=/bin/bash mm/damon/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
mm/damon/core.c: In function 'get_damon_target':
>> mm/damon/core.c:1023:50: error: implicit declaration of function 'damon_get_task_struct'; did you mean 'get_task_struct'? [-Werror=implicit-function-declaration]
1023 | struct task_struct *ts = damon_get_task_struct(t);
| ^~~~~~~~~~~~~~~~~~~~~
| get_task_struct
>> mm/damon/core.c:1023:50: warning: initialization of 'struct task_struct *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
mm/damon/core.c: At top level:
>> mm/damon/core.c:1058:6: error: redefinition of 'damon_numa_fault'
1058 | void damon_numa_fault(int page_nid, int node_id, struct vm_fault *vmf)
| ^~~~~~~~~~~~~~~~
In file included from mm/damon/core.c:10:
include/linux/damon.h:525:20: note: previous definition of 'damon_numa_fault' with type 'void(int, int, struct vm_fault *)'
525 | static inline void damon_numa_fault(int page_nid, int node_id, struct vm_fault *vmf) { }
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +1023 mm/damon/core.c
1009
1010 static struct damon_target *get_damon_target(struct task_struct *task)
1011 {
1012 int i;
1013 unsigned long id1, id2;
1014 struct damon_target *t;
1015
1016 rcu_read_lock();
1017 for (i = 0; i < READ_ONCE(dbgfs_nr_ctxs); i++) {
1018 struct damon_ctx *ctx = rcu_dereference(dbgfs_ctxs[i]);
1019
1020 if (!ctx || !ctx->kdamond)
1021 continue;
1022 damon_for_each_target(t, dbgfs_ctxs[i]) {
> 1023 struct task_struct *ts = damon_get_task_struct(t);
1024
1025 if (ts) {
1026 id1 = (unsigned long)pid_vnr((struct pid *)t->id);
1027 id2 = (unsigned long)pid_vnr(get_task_pid(task, PIDTYPE_PID));
1028 put_task_struct(ts);
1029 if (id1 == id2)
1030 return t;
1031 }
1032 }
1033 }
1034 rcu_read_unlock();
1035
1036 return NULL;
1037 }
1038
1039 static struct damon_region *get_damon_region(struct damon_target *t, unsigned long addr)
1040 {
1041 struct damon_region *r, *next;
1042
1043 if (!t || !addr)
1044 return NULL;
1045
1046 spin_lock(&t->target_lock);
1047 damon_for_each_region_safe(r, next, t) {
1048 if (r->ar.start <= addr && r->ar.end >= addr) {
1049 spin_unlock(&t->target_lock);
1050 return r;
1051 }
1052 }
1053 spin_unlock(&t->target_lock);
1054
1055 return NULL;
1056 }
1057
> 1058 void damon_numa_fault(int page_nid, int node_id, struct vm_fault *vmf)
1059 {
1060 struct damon_target *t;
1061 struct damon_region *r;
1062
1063 if (nr_online_nodes > 1) {
1064 t = get_damon_target(current);
1065 if (!t)
1066 return;
1067 r = get_damon_region(t, vmf->address);
1068 if (r) {
1069 if (page_nid == node_id)
1070 r->local++;
1071 else
1072 r->remote++;
1073 }
1074 }
1075 }
1076
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months
Re: [PATCH] platform/chrome: cros_ec: honor acpi=off
by kernel test robot
Hi Tong,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on chrome-platform/for-next]
[also build test WARNING on v5.17-rc4 next-20220216]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Tong-Zhang/platform-chrome-cros_...
base: https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220216/202202162047.eCFMqb2x-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0e628a783b935c70c80815db6c061ec84f884af5)
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/0day-ci/linux/commit/66345a4aecd6e4acba257476c6e44559f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Tong-Zhang/platform-chrome-cros_ec-honor-acpi-off/20220216-142709
git checkout 66345a4aecd6e4acba257476c6e44559fccca143
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/platform/chrome/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/platform/chrome/cros_ec_lpc.c:553:6: warning: address of function 'acpi_disable' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (acpi_disable)
~~ ^~~~~~~~~~~~
drivers/platform/chrome/cros_ec_lpc.c:553:6: note: prefix with the address-of operator to silence this warning
if (acpi_disable)
^
&
1 warning generated.
vim +553 drivers/platform/chrome/cros_ec_lpc.c
547
548 static int __init cros_ec_lpc_init(void)
549 {
550 int ret;
551 acpi_status status;
552
> 553 if (acpi_disable)
554 return -ENODEV;
555
556 status = acpi_get_devices(ACPI_DRV_NAME, cros_ec_lpc_parse_device,
557 &cros_ec_lpc_acpi_device_found, NULL);
558 if (ACPI_FAILURE(status))
559 pr_warn(DRV_NAME ": Looking for %s failed\n", ACPI_DRV_NAME);
560
561 if (!cros_ec_lpc_acpi_device_found &&
562 !dmi_check_system(cros_ec_lpc_dmi_table)) {
563 pr_err(DRV_NAME ": unsupported system.\n");
564 return -ENODEV;
565 }
566
567 cros_ec_lpc_mec_init(EC_HOST_CMD_REGION0,
568 EC_LPC_ADDR_MEMMAP + EC_MEMMAP_SIZE);
569
570 /* Register the driver */
571 ret = platform_driver_register(&cros_ec_lpc_driver);
572 if (ret) {
573 pr_err(DRV_NAME ": can't register driver: %d\n", ret);
574 cros_ec_lpc_mec_destroy();
575 return ret;
576 }
577
578 if (!cros_ec_lpc_acpi_device_found) {
579 /* Register the device, and it'll get hooked up automatically */
580 ret = platform_device_register(&cros_ec_lpc_device);
581 if (ret) {
582 pr_err(DRV_NAME ": can't register device: %d\n", ret);
583 platform_driver_unregister(&cros_ec_lpc_driver);
584 cros_ec_lpc_mec_destroy();
585 }
586 }
587
588 return ret;
589 }
590
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months
Re: [RFC PATCH V1 3/5] mm/damon: Add 'damon_region' NUMA access statistics core implementation
by kernel test robot
Hi Xin,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linus/master]
[also build test WARNING on v5.17-rc4]
[cannot apply to hnaz-mm/master rostedt-trace/for-next next-20220216]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Xin-Hao/mm-damon-Add-NUMA-access...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git c5d9ae265b105d9a67575fb67bd4650a6fc08e25
config: hexagon-randconfig-r045-20220216 (https://download.01.org/0day-ci/archive/20220216/202202162010.gxDXd2ex-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0e628a783b935c70c80815db6c061ec84f884af5)
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/0day-ci/linux/commit/f84003da496b71b9f13c4de140de21d70...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xin-Hao/mm-damon-Add-NUMA-access-statistics-function-support/20220216-163243
git checkout f84003da496b71b9f13c4de140de21d70a73a408
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash mm/damon/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
mm/damon/core.c:1023:29: error: implicit declaration of function 'damon_get_task_struct' [-Werror,-Wimplicit-function-declaration]
struct task_struct *ts = damon_get_task_struct(t);
^
mm/damon/core.c:1023:29: note: did you mean 'get_task_struct'?
include/linux/sched/task.h:104:35: note: 'get_task_struct' declared here
static inline struct task_struct *get_task_struct(struct task_struct *t)
^
>> mm/damon/core.c:1023:24: warning: incompatible integer to pointer conversion initializing 'struct task_struct *' with an expression of type 'int' [-Wint-conversion]
struct task_struct *ts = damon_get_task_struct(t);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
mm/damon/core.c:1058:6: error: redefinition of 'damon_numa_fault'
void damon_numa_fault(int page_nid, int node_id, struct vm_fault *vmf)
^
include/linux/damon.h:525:20: note: previous definition is here
static inline void damon_numa_fault(int page_nid, int node_id, struct vm_fault *vmf) { }
^
1 warning and 2 errors generated.
vim +1023 mm/damon/core.c
1009
1010 static struct damon_target *get_damon_target(struct task_struct *task)
1011 {
1012 int i;
1013 unsigned long id1, id2;
1014 struct damon_target *t;
1015
1016 rcu_read_lock();
1017 for (i = 0; i < READ_ONCE(dbgfs_nr_ctxs); i++) {
1018 struct damon_ctx *ctx = rcu_dereference(dbgfs_ctxs[i]);
1019
1020 if (!ctx || !ctx->kdamond)
1021 continue;
1022 damon_for_each_target(t, dbgfs_ctxs[i]) {
> 1023 struct task_struct *ts = damon_get_task_struct(t);
1024
1025 if (ts) {
1026 id1 = (unsigned long)pid_vnr((struct pid *)t->id);
1027 id2 = (unsigned long)pid_vnr(get_task_pid(task, PIDTYPE_PID));
1028 put_task_struct(ts);
1029 if (id1 == id2)
1030 return t;
1031 }
1032 }
1033 }
1034 rcu_read_unlock();
1035
1036 return NULL;
1037 }
1038
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months
[ammarfaizi2-block:axboe/linux-block/m1-test 364/382] drivers/cpufreq/apple-soc-cpufreq.c:53:19: error: implicit declaration of function 'readq_relaxed'; did you mean 'readl_relaxed'?
by kernel test robot
tree: https://github.com/ammarfaizi2/linux-block axboe/linux-block/m1-test
head: 5adfbb595194191bad98c47447ddbee7d3b60b8f
commit: d2b69a6992028350d06be95501463259969d22d2 [364/382] cpufreq: apple-soc: Add new driver to control Apple SoC CPU P-states
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20220216/202202161958.nj2B98CG-lk...)
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/d2b69a6992028350d06be95...
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block axboe/linux-block/m1-test
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 drivers/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
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, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months