mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
soc/tegra: bpmp: Fix build for Linux v6.9
In Linux v6.9-rc1, the typedef genpd_xlate_t was updated to make
'of_phandle_args' argument const. Add a test to the conftest script to
test if this argument is const and update the BPMP powergate driver
accordingly.
Bug 4471899
Change-Id: I85ddb3689ccf5dc769cd208575db69a2cf7b0a11
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3103819
(cherry picked from commit 9c180ac0c8)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3104378
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
6969153c7c
commit
1a5be9188a
@@ -7042,6 +7042,26 @@ compile_test() {
|
||||
"NV_ETHTOOL_OPS_GET_SET_RXFH_HAS_RXFH_PARAM_ARGS" "" "types"
|
||||
;;
|
||||
|
||||
genpd_xlate_t_has_const_of_phandle_args)
|
||||
#
|
||||
# Determine if genpd_xlate_t function pointer has a
|
||||
# 'const struct of_phandle_args' argument.
|
||||
#
|
||||
# Commit 4d0824608a63 ("pmdomain: core: constify of_phandle_args in xlate")
|
||||
# updated the typedef of genpd_xlate_t to make of_phandle_args argument const.
|
||||
#
|
||||
CODE="
|
||||
#include <linux/pm_domain.h>
|
||||
void conftest_genpd_xlate_t_has_const_of_phandle_args(struct genpd_onecell_data *gpd,
|
||||
const struct of_phandle_args *args,
|
||||
void *data)
|
||||
{
|
||||
gpd->xlate(args, data);
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_GENDPD_XLATE_T_HAS_CONST_OF_PHANDLE_ARGS" "" "types"
|
||||
;;
|
||||
|
||||
netif_set_tso_max_size)
|
||||
#
|
||||
# Determine if netif_set_tso_max_size() function is present
|
||||
|
||||
Reference in New Issue
Block a user