From: kernel test robot <lkp@intel.com>
To: linux-aspeed@lists.ozlabs.org
Subject: [PATCH v1 2/2] gpio: Add G7 Aspeed gpio controller driver
Date: Thu, 22 Aug 2024 07:13:52 +0800 [thread overview]
Message-ID: <202408220503.hxIARcuf-lkp@intel.com> (raw)
In-Reply-To: <20240821070740.2378602-3-billy_tsai@aspeedtech.com>
Hi Billy,
kernel test robot noticed the following build errors:
[auto build test ERROR on brgl/gpio/for-next]
[also build test ERROR on linus/master v6.11-rc4 next-20240821]
[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/Billy-Tsai/dt-bindings-gpio-aspeed-ast2400-gpio-Support-ast2700/20240821-150951
base: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next
patch link: https://lore.kernel.org/r/20240821070740.2378602-3-billy_tsai%40aspeedtech.com
patch subject: [PATCH v1 2/2] gpio: Add G7 Aspeed gpio controller driver
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20240822/202408220503.hxIARcuf-lkp at intel.com/config)
compiler: mips-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240822/202408220503.hxIARcuf-lkp at intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408220503.hxIARcuf-lkp at intel.com/
All error/warnings (new ones prefixed by >>):
drivers/gpio/gpio-aspeed-g7.c: In function 'aspeed_gpio_g7_request':
>> drivers/gpio/gpio-aspeed-g7.c:474:48: error: passing argument 1 of 'pinctrl_gpio_request' makes pointer from integer without a cast [-Wint-conversion]
474 | return pinctrl_gpio_request(chip->base + offset);
| ~~~~~~~~~~~^~~~~~~~
| |
| unsigned int
In file included from drivers/gpio/gpio-aspeed-g7.c:16:
include/linux/pinctrl/consumer.h:30:44: note: expected 'struct gpio_chip *' but argument is of type 'unsigned int'
30 | int pinctrl_gpio_request(struct gpio_chip *gc, unsigned int offset);
| ~~~~~~~~~~~~~~~~~~^~
>> drivers/gpio/gpio-aspeed-g7.c:474:16: error: too few arguments to function 'pinctrl_gpio_request'
474 | return pinctrl_gpio_request(chip->base + offset);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/pinctrl/consumer.h:30:5: note: declared here
30 | int pinctrl_gpio_request(struct gpio_chip *gc, unsigned int offset);
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpio/gpio-aspeed-g7.c: In function 'aspeed_gpio_g7_free':
>> drivers/gpio/gpio-aspeed-g7.c:479:38: error: passing argument 1 of 'pinctrl_gpio_free' makes pointer from integer without a cast [-Wint-conversion]
479 | pinctrl_gpio_free(chip->base + offset);
| ~~~~~~~~~~~^~~~~~~~
| |
| unsigned int
include/linux/pinctrl/consumer.h:31:42: note: expected 'struct gpio_chip *' but argument is of type 'unsigned int'
31 | void pinctrl_gpio_free(struct gpio_chip *gc, unsigned int offset);
| ~~~~~~~~~~~~~~~~~~^~
>> drivers/gpio/gpio-aspeed-g7.c:479:9: error: too few arguments to function 'pinctrl_gpio_free'
479 | pinctrl_gpio_free(chip->base + offset);
| ^~~~~~~~~~~~~~~~~
include/linux/pinctrl/consumer.h:31:6: note: declared here
31 | void pinctrl_gpio_free(struct gpio_chip *gc, unsigned int offset);
| ^~~~~~~~~~~~~~~~~
drivers/gpio/gpio-aspeed-g7.c: In function 'aspeed_gpio_g7_set_config':
>> drivers/gpio/gpio-aspeed-g7.c:676:48: error: passing argument 1 of 'pinctrl_gpio_set_config' makes pointer from integer without a cast [-Wint-conversion]
676 | return pinctrl_gpio_set_config(offset, config);
| ^~~~~~
| |
| unsigned int
include/linux/pinctrl/consumer.h:36:47: note: expected 'struct gpio_chip *' but argument is of type 'unsigned int'
36 | int pinctrl_gpio_set_config(struct gpio_chip *gc, unsigned int offset,
| ~~~~~~~~~~~~~~~~~~^~
>> drivers/gpio/gpio-aspeed-g7.c:676:24: error: too few arguments to function 'pinctrl_gpio_set_config'
676 | return pinctrl_gpio_set_config(offset, config);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/pinctrl/consumer.h:36:5: note: declared here
36 | int pinctrl_gpio_set_config(struct gpio_chip *gc, unsigned int offset,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpio/gpio-aspeed-g7.c: In function 'aspeed_gpio_g7_request':
>> drivers/gpio/gpio-aspeed-g7.c:475:1: warning: control reaches end of non-void function [-Wreturn-type]
475 | }
| ^
vim +/pinctrl_gpio_request +474 drivers/gpio/gpio-aspeed-g7.c
468
469 static int aspeed_gpio_g7_request(struct gpio_chip *chip, unsigned int offset)
470 {
471 if (!have_gpio(gpiochip_get_data(chip), offset))
472 return -ENODEV;
473
> 474 return pinctrl_gpio_request(chip->base + offset);
> 475 }
476
477 static void aspeed_gpio_g7_free(struct gpio_chip *chip, unsigned int offset)
478 {
> 479 pinctrl_gpio_free(chip->base + offset);
480 }
481
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Billy Tsai <billy_tsai@aspeedtech.com>,
linus.walleij@linaro.org, brgl@bgdev.pl, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, joel@jms.id.au,
andrew@codeconstruct.com.au, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org,
BMC-SW@aspeedtech.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v1 2/2] gpio: Add G7 Aspeed gpio controller driver
Date: Thu, 22 Aug 2024 07:13:52 +0800 [thread overview]
Message-ID: <202408220503.hxIARcuf-lkp@intel.com> (raw)
In-Reply-To: <20240821070740.2378602-3-billy_tsai@aspeedtech.com>
Hi Billy,
kernel test robot noticed the following build errors:
[auto build test ERROR on brgl/gpio/for-next]
[also build test ERROR on linus/master v6.11-rc4 next-20240821]
[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/Billy-Tsai/dt-bindings-gpio-aspeed-ast2400-gpio-Support-ast2700/20240821-150951
base: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next
patch link: https://lore.kernel.org/r/20240821070740.2378602-3-billy_tsai%40aspeedtech.com
patch subject: [PATCH v1 2/2] gpio: Add G7 Aspeed gpio controller driver
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20240822/202408220503.hxIARcuf-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240822/202408220503.hxIARcuf-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408220503.hxIARcuf-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
drivers/gpio/gpio-aspeed-g7.c: In function 'aspeed_gpio_g7_request':
>> drivers/gpio/gpio-aspeed-g7.c:474:48: error: passing argument 1 of 'pinctrl_gpio_request' makes pointer from integer without a cast [-Wint-conversion]
474 | return pinctrl_gpio_request(chip->base + offset);
| ~~~~~~~~~~~^~~~~~~~
| |
| unsigned int
In file included from drivers/gpio/gpio-aspeed-g7.c:16:
include/linux/pinctrl/consumer.h:30:44: note: expected 'struct gpio_chip *' but argument is of type 'unsigned int'
30 | int pinctrl_gpio_request(struct gpio_chip *gc, unsigned int offset);
| ~~~~~~~~~~~~~~~~~~^~
>> drivers/gpio/gpio-aspeed-g7.c:474:16: error: too few arguments to function 'pinctrl_gpio_request'
474 | return pinctrl_gpio_request(chip->base + offset);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/pinctrl/consumer.h:30:5: note: declared here
30 | int pinctrl_gpio_request(struct gpio_chip *gc, unsigned int offset);
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpio/gpio-aspeed-g7.c: In function 'aspeed_gpio_g7_free':
>> drivers/gpio/gpio-aspeed-g7.c:479:38: error: passing argument 1 of 'pinctrl_gpio_free' makes pointer from integer without a cast [-Wint-conversion]
479 | pinctrl_gpio_free(chip->base + offset);
| ~~~~~~~~~~~^~~~~~~~
| |
| unsigned int
include/linux/pinctrl/consumer.h:31:42: note: expected 'struct gpio_chip *' but argument is of type 'unsigned int'
31 | void pinctrl_gpio_free(struct gpio_chip *gc, unsigned int offset);
| ~~~~~~~~~~~~~~~~~~^~
>> drivers/gpio/gpio-aspeed-g7.c:479:9: error: too few arguments to function 'pinctrl_gpio_free'
479 | pinctrl_gpio_free(chip->base + offset);
| ^~~~~~~~~~~~~~~~~
include/linux/pinctrl/consumer.h:31:6: note: declared here
31 | void pinctrl_gpio_free(struct gpio_chip *gc, unsigned int offset);
| ^~~~~~~~~~~~~~~~~
drivers/gpio/gpio-aspeed-g7.c: In function 'aspeed_gpio_g7_set_config':
>> drivers/gpio/gpio-aspeed-g7.c:676:48: error: passing argument 1 of 'pinctrl_gpio_set_config' makes pointer from integer without a cast [-Wint-conversion]
676 | return pinctrl_gpio_set_config(offset, config);
| ^~~~~~
| |
| unsigned int
include/linux/pinctrl/consumer.h:36:47: note: expected 'struct gpio_chip *' but argument is of type 'unsigned int'
36 | int pinctrl_gpio_set_config(struct gpio_chip *gc, unsigned int offset,
| ~~~~~~~~~~~~~~~~~~^~
>> drivers/gpio/gpio-aspeed-g7.c:676:24: error: too few arguments to function 'pinctrl_gpio_set_config'
676 | return pinctrl_gpio_set_config(offset, config);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/pinctrl/consumer.h:36:5: note: declared here
36 | int pinctrl_gpio_set_config(struct gpio_chip *gc, unsigned int offset,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpio/gpio-aspeed-g7.c: In function 'aspeed_gpio_g7_request':
>> drivers/gpio/gpio-aspeed-g7.c:475:1: warning: control reaches end of non-void function [-Wreturn-type]
475 | }
| ^
vim +/pinctrl_gpio_request +474 drivers/gpio/gpio-aspeed-g7.c
468
469 static int aspeed_gpio_g7_request(struct gpio_chip *chip, unsigned int offset)
470 {
471 if (!have_gpio(gpiochip_get_data(chip), offset))
472 return -ENODEV;
473
> 474 return pinctrl_gpio_request(chip->base + offset);
> 475 }
476
477 static void aspeed_gpio_g7_free(struct gpio_chip *chip, unsigned int offset)
478 {
> 479 pinctrl_gpio_free(chip->base + offset);
480 }
481
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-08-21 23:13 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-21 7:07 [PATCH v1 0/2] Add Aspeed G7 gpio support Billy Tsai
2024-08-21 7:07 ` Billy Tsai
2024-08-21 7:07 ` [PATCH v1 1/2] dt-bindings: gpio: aspeed,ast2400-gpio: Support ast2700 Billy Tsai
2024-08-21 7:07 ` Billy Tsai
2024-08-21 8:51 ` Krzysztof Kozlowski
2024-08-21 8:51 ` Krzysztof Kozlowski
2024-09-02 8:23 ` Billy Tsai
2024-09-02 8:23 ` Billy Tsai
2024-08-21 7:07 ` [PATCH v1 2/2] gpio: Add G7 Aspeed gpio controller driver Billy Tsai
2024-08-21 7:07 ` Billy Tsai
2024-08-21 12:10 ` Bartosz Golaszewski
2024-08-21 12:10 ` Bartosz Golaszewski
2024-08-26 9:59 ` Billy Tsai
2024-08-26 9:59 ` Billy Tsai
2024-08-21 20:51 ` kernel test robot
2024-08-21 20:51 ` kernel test robot
2024-08-21 23:13 ` kernel test robot [this message]
2024-08-21 23:13 ` kernel test robot
2024-08-22 1:31 ` Andrew Jeffery
2024-08-22 1:31 ` Andrew Jeffery
2024-08-27 2:45 ` Billy Tsai
2024-08-27 2:45 ` Billy Tsai
2024-08-28 1:18 ` Andrew Jeffery
2024-08-28 1:18 ` Andrew Jeffery
2024-08-28 5:35 ` Billy Tsai
2024-08-28 5:35 ` Billy Tsai
2024-08-22 9:16 ` kernel test robot
2024-08-22 9:16 ` kernel test robot
2024-08-26 8:37 ` Linus Walleij
2024-08-26 8:37 ` Linus Walleij
2024-08-26 10:56 ` [PATCH " Markus Elfring
2024-08-26 10:56 ` Markus Elfring
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=202408220503.hxIARcuf-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-aspeed@lists.ozlabs.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.