From 1bf92b1d639f09b072cda079ac60029ee9c0d087 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Mon, 25 Feb 2019 13:21:25 -0800 Subject: [PATCH] gpu: nvgpu: Delete header file No common code nor QNX code uses this header file. Therefor it is not necessary for common code. Delete this header to reduce the work required for safety certification and because carrying around dead code is generally not acceptable per MISRA guidelines. JIRA NVGPU-1737 Change-Id: I2d75131523dae6f6b1fab9bdb4bd83976bb29bae Signed-off-by: Alex Waterman Reviewed-on: https://git-master.nvidia.com/r/2027795 Reviewed-by: Deepak Nibade GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/hashtable.h | 29 ------------------- .../gpu/nvgpu/os/linux/platform_gp10b_tegra.c | 2 +- 2 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 drivers/gpu/nvgpu/include/nvgpu/hashtable.h diff --git a/drivers/gpu/nvgpu/include/nvgpu/hashtable.h b/drivers/gpu/nvgpu/include/nvgpu/hashtable.h deleted file mode 100644 index 5ce56f05d..000000000 --- a/drivers/gpu/nvgpu/include/nvgpu/hashtable.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ -#ifndef __NVGPU_SORT_H__ -#define __NVGPU_SORT_H__ - -#ifdef __KERNEL__ -#include -#endif - -#endif diff --git a/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c index 41f96935a..395370902 100644 --- a/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c @@ -19,6 +19,7 @@ #include #include #include +#include #include @@ -31,7 +32,6 @@ #include #include #include -#include #include #include