mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
video: tegra: nvmap: Fix build for Linux v5.17+
Building NVMAP is failing for Linux v5.17, v5.18 and v5.19 and the
following error is observed ...
drivers/video/tegra/nvmap/nvmap_alloc.c: In function
‘handle_page_alloc’:
drivers/video/tegra/nvmap/nvmap_alloc.c:521:14:
error: implicit declaration of function ‘mmget_not_zero’; did you mean
‘min_not_zero’? [-Werror=implicit-function-declaration]
521 | if (!mmget_not_zero(mm))
| ^~~~~~~~~~~~~~
| min_not_zero
The function 'mmget_not_zero' is present in these kernels and for all
kernels is defined in the header file 'include/linux/sched/mm.h'. Ensure
that this header is included by the NVMAP driver to fix the build.
Bug 5222690
Change-Id: I98dcac3bb19d37bc0f5e9bd85d49a8cfe0923061
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3454945
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Ashish Mhetre <amhetre@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
1c59063ce7
commit
d6685995db
@@ -1,7 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
// SPDX-FileCopyrightText: Copyright (c) 2011-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2011-2025, NVIDIA CORPORATION. All rights reserved.
|
|
||||||
*
|
|
||||||
* Handle allocation and freeing routines for nvmap
|
* Handle allocation and freeing routines for nvmap
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -29,6 +28,7 @@
|
|||||||
#endif /* NVMAP_UPSTREAM_KERNEL */
|
#endif /* NVMAP_UPSTREAM_KERNEL */
|
||||||
#include "nvmap_priv.h"
|
#include "nvmap_priv.h"
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
|
#include <linux/sched/mm.h>
|
||||||
|
|
||||||
bool nvmap_convert_carveout_to_iovmm;
|
bool nvmap_convert_carveout_to_iovmm;
|
||||||
bool nvmap_convert_iovmm_to_carveout;
|
bool nvmap_convert_iovmm_to_carveout;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
// SPDX-FileCopyrightText: Copyright (c) 2009-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2025, NVIDIA CORPORATION. All rights reserved.
|
|
||||||
*
|
|
||||||
* Handle allocation and freeing routines for nvmap
|
* Handle allocation and freeing routines for nvmap
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -14,6 +13,7 @@
|
|||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/list.h>
|
#include <linux/list.h>
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
|
#include <linux/sched/mm.h>
|
||||||
#include <linux/rbtree.h>
|
#include <linux/rbtree.h>
|
||||||
#include <linux/dma-buf.h>
|
#include <linux/dma-buf.h>
|
||||||
#include <linux/moduleparam.h>
|
#include <linux/moduleparam.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user