Re: [PATCH] of: move dummy of_device_get_match_data() helper

From: Rob Herring
Date: Tue Apr 18 2023 - 09:20:43 EST


On Thu, Apr 13, 2023 at 11:33 AM Arnd Bergmann <arnd@xxxxxxxxxx> wrote:
>
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> The previous patch only moved the regular declaration but missed
> the inline function that is used with CONFIG_OF=n:
>
> drivers/tty/serial/samsung_tty.c:2034:10: error: implicit declaration of function 'of_device_get_match_data' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
>
> Fixes: f5a2dc751657 ("of: Move of_device_get_match_data() declaration")

Despite multiple reports and having fixed it, I still managed to apply
the wrong version of patch. Anyways, I already fixed it.

Rob