On Tue, Sep 17, 2019 at 6:14 PM Linus Torvalds
<[email protected]> wrote:
>
> Famous last words. I now get a new warning:
>
> drivers/i2c/i2c-core-acpi.c:347:12: warning:
> ‘i2c_acpi_find_match_adapter’ defined but not used [-Wunused-function]
Commit 00500147cbd3 ("drivers: Introduce device lookup variants by
ACPI_COMPANION device") removed the use of that matching function, but
didn't remove the function.
It also removed the use of i2c_acpi_find_match_device(), but in that
case it _did_ remove the function.
And apparently nobody bothers checking warnings. Tssk tssk.
Linus