mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 18:42:29 +03:00
The os_sched unit was recently unified with QNX and as a result some new code was added to the POSIX build. This code works fine with the Tmake compiler, but on x86 local builds of the POSIX code it triggers a fmt-security warning (which is subsequently treated as an error). Thus the build breaks. The fix is to explicitly define a format of "%s" instead of passing in a format from a locally defined char array. Also fix the MISRA issues due to lack of curly braces. Change-Id: Ia5bfda39e486acde22f16e338ef0d390e5b50e3c Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2089081 Reviewed-by: Philip Elcan <pelcan@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: Sagar Kadamati <skadamati@nvidia.com> Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Tested-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>