[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202210102335.uP0oEyPy-lkp@intel.com>
Date: Tue, 11 Oct 2022 00:12:39 +0800
From: kernel test robot <lkp@...el.com>
To: Siarhei Volkau <lis8215@...il.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
Siarhei Volkau <lis8215@...il.com>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Vinod Koul <vkoul@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Paul Cercueil <paul@...pouillou.net>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Linus Walleij <linus.walleij@...aro.org>,
Jiri Slaby <jirislaby@...nel.org>, linux-clk@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
dmaengine@...r.kernel.org, linux-serial@...r.kernel.org,
linux-mips@...r.kernel.org, linux-gpio@...r.kernel.org
Subject: Re: [PATCH 7/8] serial: 8250/ingenic: Add support for the
JZ4750/JZ4755 SoCs
Hi Siarhei,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on clk/clk-next]
[also build test ERROR on robh/for-next vkoul-dmaengine/next linus/master v6.0 next-20221010]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Siarhei-Volkau/dt-bindings-ingenic-Add-support-for-the-JZ4755-SoC/20221010-031428
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arm64-randconfig-r035-20221010
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/intel-lab-lkp/linux/commit/d0252164e0fa9fdb0493eead109a4b24bd873a03
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Siarhei-Volkau/dt-bindings-ingenic-Add-support-for-the-JZ4755-SoC/20221010-031428
git checkout d0252164e0fa9fdb0493eead109a4b24bd873a03
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/tty/serial/8250/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All error/warnings (new ones prefixed by >>):
>> drivers/tty/serial/8250/8250_ingenic.c:144:20: error: call to undeclared function 'CKSEG1ADDR'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
u32 cpccr = readl(CGU_REG_CPCCR);
^
drivers/tty/serial/8250/8250_ingenic.c:142:32: note: expanded from macro 'CGU_REG_CPCCR'
#define CGU_REG_CPCCR ((void *)CKSEG1ADDR(0x10000000))
^
>> drivers/tty/serial/8250/8250_ingenic.c:144:20: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
u32 cpccr = readl(CGU_REG_CPCCR);
^~~~~~~~~~~~~
drivers/tty/serial/8250/8250_ingenic.c:142:24: note: expanded from macro 'CGU_REG_CPCCR'
#define CGU_REG_CPCCR ((void *)CKSEG1ADDR(0x10000000))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +/CKSEG1ADDR +144 drivers/tty/serial/8250/8250_ingenic.c
138
139 static int __init jz4750_early_console_setup(struct earlycon_device *dev,
140 const char *opt)
141 {
142 #define CGU_REG_CPCCR ((void *)CKSEG1ADDR(0x10000000))
143 #define CPCCR_ECS BIT(30)
> 144 u32 cpccr = readl(CGU_REG_CPCCR);
145 int clk_div = (cpccr & CPCCR_ECS) ? 2 : 1;
146 #undef CGU_REG_CPCCR
147 #undef CPCCR_ECS
148
149 return ingenic_earlycon_setup_common(dev, opt, clk_div);
150 }
151
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (178902 bytes)
Powered by blists - more mailing lists