diff --git a/drivers/platform/tegra/nvadsp/amc.c b/drivers/platform/tegra/nvadsp/amc.c index 7743f509..bbc1a5ab 100644 --- a/drivers/platform/tegra/nvadsp/amc.c +++ b/drivers/platform/tegra/nvadsp/amc.c @@ -3,7 +3,7 @@ * * AMC and ARAM handling * - * Copyright (C) 2014-2019, NVIDIA Corporation. All rights reserved. + * Copyright (C) 2014-2020, NVIDIA Corporation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -19,7 +19,12 @@ #include #include #include +#include +#if KERNEL_VERSION(4, 15, 0) > LINUX_VERSION_CODE #include +#else +#include +#endif #include "dev.h" #include "amc.h" diff --git a/drivers/platform/tegra/nvadsp/dev-t18x.c b/drivers/platform/tegra/nvadsp/dev-t18x.c index b64e053d..c3bd9318 100644 --- a/drivers/platform/tegra/nvadsp/dev-t18x.c +++ b/drivers/platform/tegra/nvadsp/dev-t18x.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2019, NVIDIA Corporation. All rights reserved. + * Copyright (c) 2015-2020, NVIDIA Corporation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -11,7 +11,12 @@ * GNU General Public License for more details. * */ +#include +#if KERNEL_VERSION(4, 15, 0) > LINUX_VERSION_CODE #include +#else +#include +#endif #include #include #include diff --git a/drivers/platform/tegra/nvadsp/dev.c b/drivers/platform/tegra/nvadsp/dev.c index ead43e69..b59e6979 100644 --- a/drivers/platform/tegra/nvadsp/dev.c +++ b/drivers/platform/tegra/nvadsp/dev.c @@ -27,7 +27,12 @@ #include #include #include +#include +#if KERNEL_VERSION(4, 15, 0) > LINUX_VERSION_CODE #include +#else +#include +#endif #include #include #if KERNEL_VERSION(5, 4, 0) > LINUX_VERSION_CODE diff --git a/drivers/platform/tegra/nvadsp/os-t18x.c b/drivers/platform/tegra/nvadsp/os-t18x.c index 29f8dd3b..eec5e333 100644 --- a/drivers/platform/tegra/nvadsp/os-t18x.c +++ b/drivers/platform/tegra/nvadsp/os-t18x.c @@ -12,7 +12,12 @@ * */ +#include +#if KERNEL_VERSION(4, 15, 0) > LINUX_VERSION_CODE #include +#else +#include +#endif #include #include #include diff --git a/drivers/platform/tegra/nvadsp/os.c b/drivers/platform/tegra/nvadsp/os.c index 5f4c70c4..129bf6a4 100644 --- a/drivers/platform/tegra/nvadsp/os.c +++ b/drivers/platform/tegra/nvadsp/os.c @@ -29,7 +29,12 @@ #include #include #include +#include +#if KERNEL_VERSION(4, 15, 0) > LINUX_VERSION_CODE #include +#else +#include +#endif #include #include #include