mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
Address MISRA Rule 20.7 violation: Macro parameter expands into an expression without being wrapped by parentheses. Some of the exception the coverity is not able to catch are: 1. Macro parameters passed as parameter to another macro. i.e NVGPU_ACCESS_ONCE. Fixing these by additional parantheses. 2. Macro parameter used as type. i.e. type parameter in container_of. While at it, update copyright date rage for list.h and types.h. JIRA NVGPU-841 Change-Id: I4b793981d671069289720e8c041bad8125961c0c Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1929823 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
24 KiB
24 KiB