mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
video: tegra: nvmap: Fix build for Linux v6.15
In Linux v6.15, the function ioremap_prot() was updated to pass a variable of type pgprot_t instead of an unsigned long. Add a conftest test to check for this and update the NVMAP driver accordlingly to fix the build for Linux v6.15. JIRA LINQPJ14-47 Change-Id: Icff9f63bf5c914997b69076435dd9e2432f343a3 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3332454 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Ketan Patil <ketanp@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -7702,6 +7702,24 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_IOMMU_MAP_HAS_GFP_ARG" "" "types"
|
||||
;;
|
||||
|
||||
ioremap_prot_has_pgprot_t_arg)
|
||||
#
|
||||
# Determine if pgprot_t is passed to ioremap_prot()
|
||||
#
|
||||
# In Linux v6.15, commit 86758b504864 ("mm/ioremap: pass pgprot_t to
|
||||
# ioremap_prot() instead of unsigned long") updated ioremap_prot() to
|
||||
# pass pgprot_t.
|
||||
#
|
||||
CODE="
|
||||
#include <linux/io.h>
|
||||
void conftest_ioremap_prot_has_pgprot_t_arg(phys_addr_t phys_addr,
|
||||
size_t size, pgprot_t prot) {
|
||||
ioremap_prot(phys_addr, size, prot);
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_IOREMAP_PROT_HAS_PGPROT_T_ARG" "" "types" $1
|
||||
;;
|
||||
|
||||
iio_dev_opaque_has_mlock)
|
||||
#
|
||||
# Determine if the 'iio_dev_opaque' structure has 'mlock' field.
|
||||
|
||||
Reference in New Issue
Block a user