From f121724cce6681d965d6afd23a5e9430a7433f93 Mon Sep 17 00:00:00 2001 From: Adeel Raza Date: Fri, 13 Dec 2019 15:11:45 -0800 Subject: [PATCH] gpu: nvgpu: MISRA comment fixes MISRA doesn't allow embedding // comments inside a /* */ comment. Fix a couple of these violations in static_analysis.h. JIRA NVGPU-3873 Change-Id: Ied2b62bad7379d83ded7a4c24b49627c6e79e614 Signed-off-by: Adeel Raza Reviewed-on: https://git-master.nvidia.com/r/2262192 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/cov_whitelist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/cov_whitelist.h b/drivers/gpu/nvgpu/include/nvgpu/cov_whitelist.h index 60e89bf39..2bc3077e6 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/cov_whitelist.h +++ b/drivers/gpu/nvgpu/include/nvgpu/cov_whitelist.h @@ -86,13 +86,13 @@ * Example 1: Whitelist a MISRA rule 14.2 violation due to a deviation * documented in the JIRA TID-123 RFD:\n * NVGPU_COV_WHITELIST(deviate, NVGPU_MISRA(Rule, 14_2), "JIRA TID-123")\n - * // Next line of code with a rule 14.2 violation + * next_line_of_code_with_a_rule_14.2_violation(); * * Example 2: Whitelist violations for CERT C rules INT30-C and STR30-C caused * by coverity bugs:\n * NVGPU_COV_WHITELIST(false_positive, NVGPU_CERT(INT30_C), "Bug 123456")\n * NVGPU_COV_WHITELIST(false_positive, NVGPU_CERT(STR30_C), "Bug 123457")\n - * // Next line of code with INT30-C and STR30-C violations + * next_line_of_code_with_INT30-C_and_STR30-C_violations(); */ #define NVGPU_COV_WHITELIST(type, checker, comment_str) \ _Pragma(NVGPU_COV_STRING(coverity compliance type checker comment_str))