Hi Hector,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on clk/clk-next]
[also build test ERROR on arm64/for-next/core rafael-pm/linux-next linus/master
v5.15-rc5]
[cannot apply to robh/for-next next-20211012]
[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/Hector-Martin/Apple-SoC-CPU-P-st...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/ab35c97e9fa1e0ee158801ca3ad5d3d4c...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Hector-Martin/Apple-SoC-CPU-P-state-switching/20211012-010015
git checkout ab35c97e9fa1e0ee158801ca3ad5d3d4c93e6191
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
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 >>):
In file included from drivers/clk/clk-apple-cluster.c:14:
drivers/clk/clk-apple-cluster.c: In function 'apple_cluster_clk_set_rate':
> include/linux/iopoll.h:162:28: error: implicit declaration of
function 'readq'; did you mean 'readb'?
[-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/clk/clk-apple-cluster.c:55:13: note: in expansion of macro
'readq_poll_timeout'
55 | if (readq_poll_timeout(cluster->reg_base + APPLE_CLUSTER_PSTATE,
reg,
| ^~~~~~~~~~~~~~~~~~
drivers/clk/clk-apple-cluster.c:67:9: error: implicit declaration of function
'writeq_relaxed'; did you mean 'writel_relaxed'?
[-Werror=implicit-function-declaration]
67 | writeq_relaxed(reg, cluster->reg_base + APPLE_CLUSTER_PSTATE);
| ^~~~~~~~~~~~~~
| writel_relaxed
drivers/clk/clk-apple-cluster.c: In function 'apple_cluster_clk_recalc_rate':
drivers/clk/clk-apple-cluster.c:82:15: error: implicit declaration of function
'readq_relaxed'; did you mean 'readw_relaxed'?
[-Werror=implicit-function-declaration]
82 | reg = readq_relaxed(cluster->reg_base + APPLE_CLUSTER_PSTATE);
| ^~~~~~~~~~~~~
| readw_relaxed
cc1: all warnings being treated as errors
vim +162 include/linux/iopoll.h
57a29df341466b Kai-Heng Feng 2020-04-25 101
54c523127bcca9 Matt Wagantall 2014-12-15 102 /**
54c523127bcca9 Matt Wagantall 2014-12-15 103 * readx_poll_timeout - Periodically
poll an address until a condition is met or a timeout occurs
54c523127bcca9 Matt Wagantall 2014-12-15 104 * @op: accessor function (takes
@addr as its only argument)
54c523127bcca9 Matt Wagantall 2014-12-15 105 * @addr: Address to poll
54c523127bcca9 Matt Wagantall 2014-12-15 106 * @val: Variable to read the value
into
54c523127bcca9 Matt Wagantall 2014-12-15 107 * @cond: Break condition (usually
involving @val)
54c523127bcca9 Matt Wagantall 2014-12-15 108 * @sleep_us: Maximum time to sleep
between reads in us (0
54c523127bcca9 Matt Wagantall 2014-12-15 109 * tight-loops). Should
be less than ~20ms since usleep_range
458f69ef36656d Mauro Carvalho Chehab 2019-06-12 110 * is used (see
Documentation/timers/timers-howto.rst).
54c523127bcca9 Matt Wagantall 2014-12-15 111 * @timeout_us: Timeout in us, 0
means never timeout
54c523127bcca9 Matt Wagantall 2014-12-15 112 *
54c523127bcca9 Matt Wagantall 2014-12-15 113 * Returns 0 on success and
-ETIMEDOUT upon a timeout. In either
54c523127bcca9 Matt Wagantall 2014-12-15 114 * case, the last read value at
@addr is stored in @val. Must not
54c523127bcca9 Matt Wagantall 2014-12-15 115 * be called from atomic context if
sleep_us or timeout_us are used.
54c523127bcca9 Matt Wagantall 2014-12-15 116 *
54c523127bcca9 Matt Wagantall 2014-12-15 117 * When available, you'll
probably want to use one of the specialized
54c523127bcca9 Matt Wagantall 2014-12-15 118 * macros defined below rather than
this macro directly.
54c523127bcca9 Matt Wagantall 2014-12-15 119 */
54c523127bcca9 Matt Wagantall 2014-12-15 120 #define readx_poll_timeout(op, addr,
val, cond, sleep_us, timeout_us) \
eaa6b01024a74a Dejin Zheng 2020-03-23 121 read_poll_timeout(op, val, cond,
sleep_us, timeout_us, false, addr)
54c523127bcca9 Matt Wagantall 2014-12-15 122
54c523127bcca9 Matt Wagantall 2014-12-15 123 /**
54c523127bcca9 Matt Wagantall 2014-12-15 124 * readx_poll_timeout_atomic -
Periodically poll an address until a condition is met or a timeout occurs
54c523127bcca9 Matt Wagantall 2014-12-15 125 * @op: accessor function (takes
@addr as its only argument)
54c523127bcca9 Matt Wagantall 2014-12-15 126 * @addr: Address to poll
54c523127bcca9 Matt Wagantall 2014-12-15 127 * @val: Variable to read the value
into
54c523127bcca9 Matt Wagantall 2014-12-15 128 * @cond: Break condition (usually
involving @val)
54c523127bcca9 Matt Wagantall 2014-12-15 129 * @delay_us: Time to udelay between
reads in us (0 tight-loops). Should
54c523127bcca9 Matt Wagantall 2014-12-15 130 * be less than ~10us
since udelay is used (see
458f69ef36656d Mauro Carvalho Chehab 2019-06-12 131 *
Documentation/timers/timers-howto.rst).
54c523127bcca9 Matt Wagantall 2014-12-15 132 * @timeout_us: Timeout in us, 0
means never timeout
54c523127bcca9 Matt Wagantall 2014-12-15 133 *
54c523127bcca9 Matt Wagantall 2014-12-15 134 * Returns 0 on success and
-ETIMEDOUT upon a timeout. In either
54c523127bcca9 Matt Wagantall 2014-12-15 135 * case, the last read value at
@addr is stored in @val.
54c523127bcca9 Matt Wagantall 2014-12-15 136 *
54c523127bcca9 Matt Wagantall 2014-12-15 137 * When available, you'll
probably want to use one of the specialized
54c523127bcca9 Matt Wagantall 2014-12-15 138 * macros defined below rather than
this macro directly.
54c523127bcca9 Matt Wagantall 2014-12-15 139 */
54c523127bcca9 Matt Wagantall 2014-12-15 140 #define
readx_poll_timeout_atomic(op, addr, val, cond, delay_us, timeout_us) \
57a29df341466b Kai-Heng Feng 2020-04-25 141 read_poll_timeout_atomic(op, val,
cond, delay_us, timeout_us, false, addr)
54c523127bcca9 Matt Wagantall 2014-12-15 142
54c523127bcca9 Matt Wagantall 2014-12-15 143 #define readb_poll_timeout(addr,
val, cond, delay_us, timeout_us) \
54c523127bcca9 Matt Wagantall 2014-12-15 144 readx_poll_timeout(readb, addr,
val, cond, delay_us, timeout_us)
54c523127bcca9 Matt Wagantall 2014-12-15 145
54c523127bcca9 Matt Wagantall 2014-12-15 146 #define
readb_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
54c523127bcca9 Matt Wagantall 2014-12-15 147 readx_poll_timeout_atomic(readb,
addr, val, cond, delay_us, timeout_us)
54c523127bcca9 Matt Wagantall 2014-12-15 148
54c523127bcca9 Matt Wagantall 2014-12-15 149 #define readw_poll_timeout(addr,
val, cond, delay_us, timeout_us) \
54c523127bcca9 Matt Wagantall 2014-12-15 150 readx_poll_timeout(readw, addr,
val, cond, delay_us, timeout_us)
54c523127bcca9 Matt Wagantall 2014-12-15 151
54c523127bcca9 Matt Wagantall 2014-12-15 152 #define
readw_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
54c523127bcca9 Matt Wagantall 2014-12-15 153 readx_poll_timeout_atomic(readw,
addr, val, cond, delay_us, timeout_us)
54c523127bcca9 Matt Wagantall 2014-12-15 154
54c523127bcca9 Matt Wagantall 2014-12-15 155 #define readl_poll_timeout(addr,
val, cond, delay_us, timeout_us) \
54c523127bcca9 Matt Wagantall 2014-12-15 156 readx_poll_timeout(readl, addr,
val, cond, delay_us, timeout_us)
54c523127bcca9 Matt Wagantall 2014-12-15 157
54c523127bcca9 Matt Wagantall 2014-12-15 158 #define
readl_poll_timeout_atomic(addr, val, cond, delay_us, timeout_us) \
54c523127bcca9 Matt Wagantall 2014-12-15 159 readx_poll_timeout_atomic(readl,
addr, val, cond, delay_us, timeout_us)
54c523127bcca9 Matt Wagantall 2014-12-15 160
54c523127bcca9 Matt Wagantall 2014-12-15 161 #define readq_poll_timeout(addr,
val, cond, delay_us, timeout_us) \
54c523127bcca9 Matt Wagantall 2014-12-15 @162 readx_poll_timeout(readq, addr,
val, cond, delay_us, timeout_us)
54c523127bcca9 Matt Wagantall 2014-12-15 163
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org