From: kernel test robot <lkp@intel.com>
To: Jisheng Zhang <jszhang@kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>
Cc: oe-kbuild-all@lists.linux.dev, linux-gpio@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] gpio: fxl6408: Add optional reset gpio control
Date: Mon, 3 Nov 2025 06:25:08 +0800 [thread overview]
Message-ID: <202511030610.aGFTnmCc-lkp@intel.com> (raw)
In-Reply-To: <20251102100515.9506-2-jszhang@kernel.org>
Hi Jisheng,
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.18-rc4 next-20251031]
[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/Jisheng-Zhang/gpio-fxl6408-Add-optional-reset-gpio-control/20251102-182544
base: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next
patch link: https://lore.kernel.org/r/20251102100515.9506-2-jszhang%40kernel.org
patch subject: [PATCH 1/2] gpio: fxl6408: Add optional reset gpio control
config: nios2-randconfig-r073-20251103 (https://download.01.org/0day-ci/archive/20251103/202511030610.aGFTnmCc-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251103/202511030610.aGFTnmCc-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/202511030610.aGFTnmCc-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpio/gpio-fxl6408.c: In function 'fxl6408_probe':
>> drivers/gpio/gpio-fxl6408.c:118:15: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration]
reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
^~~~~~~~~~~~~~~~~~~~~~~
devm_regulator_get_optional
>> drivers/gpio/gpio-fxl6408.c:118:53: error: 'GPIOD_OUT_LOW' undeclared (first use in this function)
reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
^~~~~~~~~~~~~
drivers/gpio/gpio-fxl6408.c:118:53: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
vim +118 drivers/gpio/gpio-fxl6408.c
103
104 static int fxl6408_probe(struct i2c_client *client)
105 {
106 struct device *dev = &client->dev;
107 struct gpio_desc *reset_gpio;
108 int ret;
109 struct gpio_regmap_config gpio_config = {
110 .parent = dev,
111 .ngpio = FXL6408_NGPIO,
112 .reg_dat_base = GPIO_REGMAP_ADDR(FXL6408_REG_INPUT_STATUS),
113 .reg_set_base = GPIO_REGMAP_ADDR(FXL6408_REG_OUTPUT),
114 .reg_dir_out_base = GPIO_REGMAP_ADDR(FXL6408_REG_IO_DIR),
115 .ngpio_per_reg = FXL6408_NGPIO,
116 };
117
> 118 reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
119 if (IS_ERR(reset_gpio))
120 return dev_err_probe(dev, PTR_ERR(reset_gpio), "Failed to get reset gpio\n");
121
122 gpio_config.regmap = devm_regmap_init_i2c(client, ®map);
123 if (IS_ERR(gpio_config.regmap))
124 return dev_err_probe(dev, PTR_ERR(gpio_config.regmap),
125 "failed to allocate register map\n");
126
127 ret = fxl6408_identify(dev, gpio_config.regmap);
128 if (ret)
129 return ret;
130
131 /* Disable High-Z of outputs, so that our OUTPUT updates actually take effect. */
132 ret = regmap_write(gpio_config.regmap, FXL6408_REG_OUTPUT_HIGH_Z, 0);
133 if (ret)
134 return dev_err_probe(dev, ret, "failed to write 'output high Z' register\n");
135
136 return PTR_ERR_OR_ZERO(devm_gpio_regmap_register(dev, &gpio_config));
137 }
138
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-11-02 22:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-02 10:05 [PATCH 0/2] gpio: fxl6408: add optional reset and suspend/resume Jisheng Zhang
2025-11-02 10:05 ` [PATCH 1/2] gpio: fxl6408: Add optional reset gpio control Jisheng Zhang
2025-11-02 22:25 ` kernel test robot [this message]
2025-11-02 22:35 ` kernel test robot
2025-11-02 10:05 ` [PATCH 2/2] gpio: fxl6408: Add suspend/resume support Jisheng Zhang
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=202511030610.aGFTnmCc-lkp@intel.com \
--to=lkp@intel.com \
--cc=brgl@bgdev.pl \
--cc=jszhang@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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).