mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
pcie: endpoint: Add support to build with k6.9
Few of the APIs from msi are deprecated in the
kernel 6.9. These APIs are:
platform_msi_domain_alloc_irqs
platform_msi_domain_free_irqs
The change is with commit commit 1a4671ff7a903e87 ("platform-msi: Remove
unused interfaces")
Add support to not use these APIs via conftest.
Bug 4471899
Change-Id: I3b07236eeb69900b06c4e17b7675f6419b8321e4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3131464
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
74c60d6681
commit
a1d5f342d5
@@ -140,6 +140,8 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += gpio_chip_struct_has_of_node_present
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += gpio_device_find
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += gpio_device_get_chip
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pde_data
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += platform_msi_domain_alloc_irqs
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += platform_msi_domain_free_irqs
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pwm_chip_struct_has_base_arg
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pwm_ops_struct_has_owner
|
||||
NV_CONFTEST_FUNCTION_COMPILE_TESTS += pwm_ops_struct_has_config
|
||||
|
||||
@@ -7287,6 +7287,38 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_MII_BUS_STRUCT_HAS_WRITE_C45" "" "types"
|
||||
;;
|
||||
|
||||
platform_msi_domain_alloc_irqs)
|
||||
#
|
||||
# Determine if the platform_msi_domain_alloc_irqs() API available or not.
|
||||
#
|
||||
# API platform_msi_domain_free_irqs() is dropped from Linux 6.9
|
||||
# with commit 1a4671ff7a903e87 ("platform-msi: Remove unused interfaces")
|
||||
#
|
||||
CODE="
|
||||
#include <linux/msi.h>
|
||||
void conftest_platform_msi_domain_alloc_irqs(void) {
|
||||
platform_msi_domain_alloc_irqs();
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_PLATFORM_MSI_DOMAIN_ALLOC_IRQS_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
platform_msi_domain_free_irqs)
|
||||
#
|
||||
# Determine if the platform_msi_domain_free_irqs() API available or not.
|
||||
#
|
||||
# API platform_msi_domain_free_irqs() is dropped from Linux 6.9
|
||||
# with commit 1a4671ff7a903e87 ("platform-msi: Remove unused interfaces")
|
||||
#
|
||||
CODE="
|
||||
#include <linux/msi.h>
|
||||
void conftest_platform_msi_domain_free_irqs(void) {
|
||||
platform_msi_domain_free_irqs();
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_PLATFORM_MSI_DOMAIN_FREE_IRQS_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
pwm_chip_struct_has_base_arg)
|
||||
#
|
||||
# Determine if 'struct pwm_chip' has the 'base' field.
|
||||
|
||||
Reference in New Issue
Block a user