From 91e341dbdad6b839eade7e74aacb3428914c1c35 Mon Sep 17 00:00:00 2001 From: yanghuatao Date: Tue, 23 Apr 2024 20:30:46 +0800 Subject: [PATCH] toolchain/ghs: ioexpander_dev_s "declaration is not visible outside of function" warning CC: serial/serial_io.c "/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/power/regulator.h", line 227: warning #231-D: declaration is not visible outside of function int regulator_gpio_init(FAR struct ioexpander_dev_s *iodev, Signed-off-by: yanghuatao --- include/nuttx/power/regulator.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/nuttx/power/regulator.h b/include/nuttx/power/regulator.h index 11a35f74d5..5b1313d797 100644 --- a/include/nuttx/power/regulator.h +++ b/include/nuttx/power/regulator.h @@ -221,6 +221,7 @@ void regulator_unregister(FAR struct regulator_dev_s *rdev); * ****************************************************************************/ +struct ioexpander_dev_s; int regulator_gpio_init(FAR struct ioexpander_dev_s *iodev, FAR const struct regulator_desc_s *desc);