mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
Instead of relying on kernel version to determine if the 'dev' member of the 'struct class' is const, add a compile time test to the conftest.sh script to determine this at compile time for the kernel being 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 4119327 Change-Id: I5b3c886fa4bac7560c2c26534bed9f495d57195b Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2986637 (cherry picked from commit f9d48796dc2a292bb02a90677774a5568f9f1651) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2990696 Reviewed-by: Ankur Kishore <ankkishore@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>