tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.9
head: 397027034d454e3ad94e49e88938860ee15d7de6
commit: 2d843653785d83e84dd658e7ca9643ae0a42aaa5 [100/170] serial: stm32: fix tx_empty
condition
config: powerpc-randconfig-r014-20210512 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
a0fed635fe1701470062495a6ffee1c608f3f1bc)
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
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-4.9
git checkout 2d843653785d83e84dd658e7ca9643ae0a42aaa5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc
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 >>):
> arch/powerpc/mm/hash_utils_64.c:1101:14: error: no previous
prototype for function 'get_paca_psize' [-Werror,-Wmissing-prototypes]
unsigned int get_paca_psize(unsigned long addr)
^
arch/powerpc/mm/hash_utils_64.c:1101:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
unsigned int get_paca_psize(unsigned long addr)
^
static
arch/powerpc/mm/hash_utils_64.c:1422:5: error: no previous prototype for function
'__hash_page' [-Werror,-Wmissing-prototypes]
int __hash_page(unsigned long ea, unsigned long msr, unsigned long trap,
^
arch/powerpc/mm/hash_utils_64.c:1422:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
int __hash_page(unsigned long ea, unsigned long msr, unsigned long trap,
^
static
arch/powerpc/mm/hash_utils_64.c:1479:6: error: no previous prototype for function
'hash_preload' [-Werror,-Wmissing-prototypes]
void hash_preload(struct mm_struct *mm, unsigned long ea,
^
arch/powerpc/mm/hash_utils_64.c:1479:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
void hash_preload(struct mm_struct *mm, unsigned long ea,
^
static
arch/powerpc/mm/hash_utils_64.c:1688:6: error: no previous prototype for function
'low_hash_fault' [-Werror,-Wmissing-prototypes]
void low_hash_fault(struct pt_regs *regs, unsigned long address, int rc)
^
arch/powerpc/mm/hash_utils_64.c:1688:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
void low_hash_fault(struct pt_regs *regs, unsigned long address, int rc)
^
static
arch/powerpc/mm/hash_utils_64.c:1705:6: error: no previous prototype for function
'hpte_insert_repeating' [-Werror,-Wmissing-prototypes]
long hpte_insert_repeating(unsigned long hash, unsigned long vpn,
^
arch/powerpc/mm/hash_utils_64.c:1705:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
long hpte_insert_repeating(unsigned long hash, unsigned long vpn,
^
static
5 errors generated.
--
> drivers/tty/serial/stm32-usart.c:180:34: error: use of undeclared
identifier 'USART_CR_TC'
stm32_set_bits(port,
ofs->icr, USART_CR_TC);
^
1 error generated.
vim +/USART_CR_TC +180 drivers/tty/serial/stm32-usart.c
48a6092fb41fab Maxime Coquelin 2015-06-10 160
3489187204eb75 Alexandre TORGUE 2016-09-15 161 static void stm32_tx_dma_complete(void
*arg)
3489187204eb75 Alexandre TORGUE 2016-09-15 162 {
3489187204eb75 Alexandre TORGUE 2016-09-15 163 struct uart_port *port = arg;
3489187204eb75 Alexandre TORGUE 2016-09-15 164 struct stm32_port *stm32port =
to_stm32_port(port);
3489187204eb75 Alexandre TORGUE 2016-09-15 165 struct stm32_usart_offsets *ofs =
&stm32port->info->ofs;
3489187204eb75 Alexandre TORGUE 2016-09-15 166 unsigned int isr;
3489187204eb75 Alexandre TORGUE 2016-09-15 167 int ret;
3489187204eb75 Alexandre TORGUE 2016-09-15 168
3489187204eb75 Alexandre TORGUE 2016-09-15 169 ret =
readl_relaxed_poll_timeout_atomic(port->membase + ofs->isr,
3489187204eb75 Alexandre TORGUE 2016-09-15 170 isr,
3489187204eb75 Alexandre TORGUE 2016-09-15 171 (isr & USART_SR_TC),
3489187204eb75 Alexandre TORGUE 2016-09-15 172 10, 100000);
3489187204eb75 Alexandre TORGUE 2016-09-15 173
3489187204eb75 Alexandre TORGUE 2016-09-15 174 if (ret)
3489187204eb75 Alexandre TORGUE 2016-09-15 175 dev_err(port->dev, "terminal
count not set\n");
3489187204eb75 Alexandre TORGUE 2016-09-15 176
3489187204eb75 Alexandre TORGUE 2016-09-15 177 if (ofs->icr == UNDEF_REG)
3489187204eb75 Alexandre TORGUE 2016-09-15 178 stm32_clr_bits(port, ofs->isr,
USART_SR_TC);
3489187204eb75 Alexandre TORGUE 2016-09-15 179 else
3489187204eb75 Alexandre TORGUE 2016-09-15 @180 stm32_set_bits(port, ofs->icr,
USART_CR_TC);
3489187204eb75 Alexandre TORGUE 2016-09-15 181
3489187204eb75 Alexandre TORGUE 2016-09-15 182 stm32_clr_bits(port, ofs->cr3,
USART_CR3_DMAT);
3489187204eb75 Alexandre TORGUE 2016-09-15 183 stm32port->tx_dma_busy = false;
3489187204eb75 Alexandre TORGUE 2016-09-15 184
3489187204eb75 Alexandre TORGUE 2016-09-15 185 /* Let's see if we have pending data
to send */
3489187204eb75 Alexandre TORGUE 2016-09-15 186 stm32_transmit_chars(port);
3489187204eb75 Alexandre TORGUE 2016-09-15 187 }
3489187204eb75 Alexandre TORGUE 2016-09-15 188
:::::: The code at line 180 was first introduced by commit
:::::: 3489187204eb75e5635d8836babfd0a18be613f4 serial: stm32: adding dma support
:::::: TO: Alexandre TORGUE <alexandre.torgue(a)st.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org