mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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 <araza@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2262192 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
6b771b06be
commit
f121724cce
@@ -86,13 +86,13 @@
|
|||||||
* Example 1: Whitelist a MISRA rule 14.2 violation due to a deviation
|
* Example 1: Whitelist a MISRA rule 14.2 violation due to a deviation
|
||||||
* documented in the JIRA TID-123 RFD:\n
|
* documented in the JIRA TID-123 RFD:\n
|
||||||
* NVGPU_COV_WHITELIST(deviate, NVGPU_MISRA(Rule, 14_2), "JIRA TID-123")\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
|
* Example 2: Whitelist violations for CERT C rules INT30-C and STR30-C caused
|
||||||
* by coverity bugs:\n
|
* by coverity bugs:\n
|
||||||
* NVGPU_COV_WHITELIST(false_positive, NVGPU_CERT(INT30_C), "Bug 123456")\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
|
* 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) \
|
#define NVGPU_COV_WHITELIST(type, checker, comment_str) \
|
||||||
_Pragma(NVGPU_COV_STRING(coverity compliance type checker comment_str))
|
_Pragma(NVGPU_COV_STRING(coverity compliance type checker comment_str))
|
||||||
|
|||||||
Reference in New Issue
Block a user