mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvmap: Fix build for Linux v6.14
In Linux v6.14, the 'page_list' argument was dropped from the __alloc_pages_bulk() function. Add a test to conftest to check for this and update the NVMAP driver accordlingly to fix the build. Jira LINQPJ14-6 Change-Id: Id3513890a9d948cb42abf7449d9fb3aa95edcf96 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3297065 (cherry picked from commit a7d79ff243f922e112bc85a0830455e3e422a04c) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3499755 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Brad Griffis <bgriffis@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Tested-by: Brad Griffis <bgriffis@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
774a1ec13d
commit
34b4ec7938
@@ -89,6 +89,7 @@ endef
|
||||
#
|
||||
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += __alloc_disk_node_has_lkclass_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += __alloc_pages_bulk_has_no_page_list_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += __assign_str_has_no_src_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += aperture_remove_all_conflicting_devices
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += bin_attribute_struct_mmap_has_const_bin_attribute_arg
|
||||
|
||||
@@ -6518,6 +6518,25 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV___ALLOC_DISK_NODE_HAS_LKCLASS_ARG" "" "types"
|
||||
;;
|
||||
|
||||
__alloc_pages_bulk_has_no_page_list_arg)
|
||||
#
|
||||
# Determine if the function __alloc_pages_bulk() has an 'page_list'
|
||||
# argument.
|
||||
#
|
||||
# In Linux v6.14, commit c8b979530f27 ("mm: alloc_pages_bulk_noprof:
|
||||
# drop page_list argument") removes the 'page_list' argument from
|
||||
# __alloc_pages_bulk().
|
||||
#
|
||||
CODE="
|
||||
#include <linux/gfp.h>
|
||||
unsigned long confest_alloc_pages_bulk(gfp_t gfp, int nid, int nr_pages,
|
||||
struct page **page_array) {
|
||||
return __alloc_pages_bulk(gfp, nid, NULL, nr_pages, page_array);
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV__ALLOC_PAGES_BULK_HAS_NO_PAGE_LIST_ARG" "" "types" $1.log
|
||||
;;
|
||||
|
||||
aperture_remove_all_conflicting_devices)
|
||||
#
|
||||
# Determine if the function aperture_remove_all_conflicting_devices()
|
||||
|
||||
Reference in New Issue
Block a user