From: kernel test robot <lkp@intel.com>
To: Steven Lee <steven_lee@aspeedtech.com>,
Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <bgolaszewski@baylibre.com>,
Rob Herring <robh+dt@kernel.org>, Joel Stanley <joel@jms.id.au>,
Andrew Jeffery <andrew@aj.id.au>,
"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
"moderated list:ARM/ASPEED MACHINE SUPPORT"
<linux-arm-kernel@lists.infradead.org>,
open list <linux-kernel@vger.kernel.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
steven_lee@aspeedtech.com
Subject: Re: [PATCH v1 4/4] gpio: gpio-aspeed-sgpio: Add AST2600 sgpio support
Date: Wed, 26 May 2021 22:05:00 +0800 [thread overview]
Message-ID: <202105262138.JKAX9MTy-lkp@intel.com> (raw)
In-Reply-To: <20210526094609.14068-5-steven_lee@aspeedtech.com>
[-- Attachment #1: Type: text/plain, Size: 3307 bytes --]
Hi Steven,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on joel-aspeed/for-next]
[also build test ERROR on robh/for-next gpio/for-next v5.13-rc3 next-20210526]
[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/Steven-Lee/ASPEED-sgpio-driver-enhancement/20210526-174912
base: https://git.kernel.org/pub/scm/linux/kernel/git/joel/aspeed.git for-next
config: powerpc64-randconfig-r021-20210526 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 99155e913e9bad5f7f8a247f8bb3a3ff3da74af1)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/0day-ci/linux/commit/72b31f2c47f6ab3ce9a7115dcc0dc01331bf45c0
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Steven-Lee/ASPEED-sgpio-driver-enhancement/20210526-174912
git checkout 72b31f2c47f6ab3ce9a7115dcc0dc01331bf45c0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpio/gpio-aspeed-sgpio.c:183:57: error: use of undeclared identifier 'gpio'; did you mean 'goto'?
const struct aspeed_sgpio_bank *bank = to_bank(offset, gpio->max_ngpios);
^~~~
goto
>> drivers/gpio/gpio-aspeed-sgpio.c:183:57: error: expected expression
drivers/gpio/gpio-aspeed-sgpio.c:201:57: error: use of undeclared identifier 'gpio'; did you mean 'goto'?
const struct aspeed_sgpio_bank *bank = to_bank(offset, gpio->max_ngpios);
^~~~
goto
drivers/gpio/gpio-aspeed-sgpio.c:201:57: error: expected expression
4 errors generated.
vim +183 drivers/gpio/gpio-aspeed-sgpio.c
180
181 static int aspeed_sgpio_get(struct gpio_chip *gc, unsigned int offset)
182 {
> 183 const struct aspeed_sgpio_bank *bank = to_bank(offset, gpio->max_ngpios);
184 struct aspeed_sgpio *gpio = gpiochip_get_data(gc);
185 unsigned long flags;
186 enum aspeed_sgpio_reg reg;
187 int rc = 0;
188
189 spin_lock_irqsave(&gpio->lock, flags);
190
191 reg = aspeed_sgpio_is_input(offset, gpio->max_ngpios) ? reg_val : reg_rdata;
192 rc = !!(ioread32(bank_reg(gpio, bank, reg)) & GPIO_BIT(offset % gpio->max_ngpios));
193
194 spin_unlock_irqrestore(&gpio->lock, flags);
195
196 return rc;
197 }
198
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 44443 bytes --]
next prev parent reply other threads:[~2021-05-26 14:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-26 9:46 [PATCH v1 0/4] ASPEED sgpio driver enhancement Steven Lee
2021-05-26 9:46 ` [PATCH v1 1/4] dt-bindings: aspeed-sgpio: Convert txt bindings to yaml Steven Lee
2021-05-26 12:56 ` Rob Herring
2021-05-27 2:45 ` Steven Lee
2021-05-27 0:57 ` Andrew Jeffery
2021-05-27 1:03 ` Steven Lee
2021-05-27 1:42 ` Jeremy Kerr
2021-05-27 2:58 ` Steven Lee
2021-05-26 9:46 ` [PATCH v1 2/4] ARM: dts: aspeed-g6: Add SGPIO node Steven Lee
2021-05-27 1:27 ` Andrew Jeffery
2021-05-27 4:01 ` Steven Lee
2021-05-26 9:46 ` [PATCH v1 3/4] ARM: dts: aspeed-g5: Modify sgpio node for the enhanced sgpio driver Steven Lee
2021-05-26 9:46 ` [PATCH v1 4/4] gpio: gpio-aspeed-sgpio: Add AST2600 sgpio support Steven Lee
2021-05-26 14:04 ` kernel test robot
2021-05-26 14:05 ` kernel test robot [this message]
2021-05-27 1:26 ` Andrew Jeffery
2021-05-27 2:34 ` Steven Lee
2021-05-27 3:04 ` Andrew Jeffery
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202105262138.JKAX9MTy-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew@aj.id.au \
--cc=bgolaszewski@baylibre.com \
--cc=clang-built-linux@googlegroups.com \
--cc=devicetree@vger.kernel.org \
--cc=joel@jms.id.au \
--cc=kbuild-all@lists.01.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=steven_lee@aspeedtech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).