Content-Type: multipart/mixed; boundary="===============6660057051434793726==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] ACPI: scan: __acpi_device_add() can be static Date: Thu, 17 Jun 2021 08:42:02 +0800 Message-ID: <20210617004201.GA151976@f10223fe78f9> In-Reply-To: <3070024.5fSG56mABF@kreacher> List-Id: --===============6660057051434793726== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable drivers/acpi/scan.c:660:5: warning: symbol '__acpi_device_add' was not decl= ared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index be8b149244220..f30ab5a55a9a4 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -657,8 +657,8 @@ static int acpi_tie_acpi_dev(struct acpi_device *adev) return 0; } = -int __acpi_device_add(struct acpi_device *device, - void (*release)(struct device *)) +static int __acpi_device_add(struct acpi_device *device, + void (*release)(struct device *)) { struct acpi_device_bus_id *acpi_device_bus_id; int result; --===============6660057051434793726==--