Content-Type: multipart/mixed; boundary="===============8637337299556605796==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] hwmon: tmp421_probe_child_from_dt() can be static Date: Fri, 10 Sep 2021 01:29:09 +0800 Message-ID: <20210909172909.GA2471@f5e5cebfff48> In-Reply-To: <22639314543a98b4c24e55b7e5a803325ad9e568.1631021349.git.krzysztof.adamski@nokia.com> List-Id: --===============8637337299556605796== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable drivers/hwmon/tmp421.c:295:6: warning: symbol 'tmp421_probe_child_from_dt' = was not declared. Should it be static? drivers/hwmon/tmp421.c:319:6: warning: symbol 'tmp421_probe_from_dt' was no= t declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- tmp421.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/tmp421.c b/drivers/hwmon/tmp421.c index a1dba1d405ee8..5f1f3ec9f51c1 100644 --- a/drivers/hwmon/tmp421.c +++ b/drivers/hwmon/tmp421.c @@ -292,7 +292,7 @@ static int tmp421_detect(struct i2c_client *client, return 0; } = -void tmp421_probe_child_from_dt(struct i2c_client *client, +static void tmp421_probe_child_from_dt(struct i2c_client *client, struct device_node *child, struct tmp421_data *data) = @@ -316,7 +316,7 @@ void tmp421_probe_child_from_dt(struct i2c_client *clie= nt, = } = -void tmp421_probe_from_dt(struct i2c_client *client, struct tmp421_data *d= ata) +static void tmp421_probe_from_dt(struct i2c_client *client, struct tmp421_= data *data) { struct device *dev =3D &client->dev; const struct device_node *np =3D dev->of_node; --===============8637337299556605796==--