From 3ccccf0df823cd5937ec43d4f8aa6cb468a44d5b Mon Sep 17 00:00:00 2001 From: Manish Bhardwaj Date: Thu, 6 Feb 2025 09:53:01 +0000 Subject: [PATCH] nvidia-oot: mempool driver header file cert & misra error fixes using this patch fixing below cert & misra errors:- - misra_c_2012_rule_21_2_violation: "__UAPI_NVHVIVC_MEMPOOL_IOCTL_H__", an identifier or macro name beginning with an underscore, shall not be declared. - misra_c_2012_rule_21_1_violation: Defining or undefining a reserved name "__UAPI_NVHVIVC_MEMPOOL_IOCTL_H__", which is an identifier or macro name beginning with an underscore. - cert_dcl37_c_violation: The reserved identifier "__UAPI_NVHVIVC_MEMPOOL_IOCTL_H__", which is reserved for use as identifiers with file scope in both the ordinary and tag name spaces, is defined. JIRA ESLC-8398 Change-Id: I82aca2a1c87ee4d2a145671ea0284fe739cb9b16 Signed-off-by: Manish Bhardwaj Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3297795 Reviewed-by: Suresh Venkatachalam GVS: buildbot_gerritrpt Reviewed-by: Sumeet Gupta --- include/uapi/linux/nvhvivc_mempool_ioctl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/nvhvivc_mempool_ioctl.h b/include/uapi/linux/nvhvivc_mempool_ioctl.h index a551440e..6856aad0 100644 --- a/include/uapi/linux/nvhvivc_mempool_ioctl.h +++ b/include/uapi/linux/nvhvivc_mempool_ioctl.h @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * Copyright (c) 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ -#ifndef __UAPI_NVHVIVC_MEMPOOL_IOCTL_H__ -#define __UAPI_NVHVIVC_MEMPOOL_IOCTL_H__ +#ifndef NVHVIVC_MEMPOOL_IOCTL_H +#define NVHVIVC_MEMPOOL_IOCTL_H #include @@ -19,4 +19,4 @@ #define TEGRA_MPLUSERSPACE_IOCTL_NUMBER_MAX 1 -#endif /* __UAPI_NVHVIVC_MEMPOOL_IOCTL_H__ */ +#endif /* NVHVIVC_MEMPOOL_IOCTL_H */