Message ID | 20230329-acpi-header-cleanup-v1-4-8dc5cd3c610e@kernel.org (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
Series | Remove acpi.h implicit include of of.h | expand |
On 29/03/2023 22:20, Rob Herring wrote: > With linux/acpi.h no longer implicitly including of.h, add an explicit > include of of.h to fix the following error: > > drivers/tty/serial/8250/8250_tegra.c:68:15: error: implicit declaration of function 'of_alias_get_id' [-Werror=implicit-function-declaration] > > Signed-off-by: Rob Herring <robh@kernel.org> > --- > drivers/tty/serial/8250/8250_tegra.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/tty/serial/8250/8250_tegra.c b/drivers/tty/serial/8250/8250_tegra.c > index e7cddeec9d8e..2509e7f74ccf 100644 > --- a/drivers/tty/serial/8250/8250_tegra.c > +++ b/drivers/tty/serial/8250/8250_tegra.c > @@ -11,6 +11,7 @@ > #include <linux/delay.h> > #include <linux/io.h> > #include <linux/module.h> > +#include <linux/of.h> > #include <linux/reset.h> > #include <linux/slab.h> > > Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Thanks! Jon
diff --git a/drivers/tty/serial/8250/8250_tegra.c b/drivers/tty/serial/8250/8250_tegra.c index e7cddeec9d8e..2509e7f74ccf 100644 --- a/drivers/tty/serial/8250/8250_tegra.c +++ b/drivers/tty/serial/8250/8250_tegra.c @@ -11,6 +11,7 @@ #include <linux/delay.h> #include <linux/io.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/reset.h> #include <linux/slab.h>
With linux/acpi.h no longer implicitly including of.h, add an explicit include of of.h to fix the following error: drivers/tty/serial/8250/8250_tegra.c:68:15: error: implicit declaration of function 'of_alias_get_id' [-Werror=implicit-function-declaration] Signed-off-by: Rob Herring <robh@kernel.org> --- drivers/tty/serial/8250/8250_tegra.c | 1 + 1 file changed, 1 insertion(+)