mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
In Linux v5.19, the arguments to the 'suspend' function pointer defined in the structure 'ufs_hba_variant_ops' was updated to add a 'status' argument. Add a new test to the conftest script that checks if the 'suspend' function has a 'status' argument and use the definition created by conftest to select which structure member is used. This is beneficial for working with 3rd party Linux kernels that may have back-ported upstream changes into their kernel and so the kernel version checks do not work. Bug 4221847 Change-Id: I05011a4a1aff7c54cd258147d6519b696904a2de Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2996214 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>