From e6b3bb4e6b3d4013f83ba6d31c780947f16cf410 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Mon, 9 Apr 2018 17:39:11 -0700 Subject: gpu: nvgpu: Fixups for tmake build Mostly just including necessary includes to make sure that global function declarations actually match their implementations. Also work around pointer munging warning: /build/ddpx/linux/kernel/nvgpu/drivers/gpu/nvgpu/common/pmu/pmu.c: In function 'nvgpu_pmu_process_init_msg': /build/ddpx/linux/kernel/nvgpu/drivers/gpu/nvgpu/common/pmu/pmu.c:348:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] (*(u32 *)gid_data.signature == PMU_SHA1_GID_SIGNATURE); Work around this warning by simply moving the type punning. This code is certainly dangerous - it assumes the endianness of the header data is the same as the machine this code is running on. Apparently it works, though, so this ignores the warning. JIRA NVGPU-525 Change-Id: Id704bae7805440bebfad51c8c8365e6d2b7a39eb Signed-off-by: Alex Waterman Reviewed-on: https://git-master.nvidia.com/r/1692454 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp10b/therm_gp10b.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'drivers/gpu/nvgpu/gp10b/therm_gp10b.c') diff --git a/drivers/gpu/nvgpu/gp10b/therm_gp10b.c b/drivers/gpu/nvgpu/gp10b/therm_gp10b.c index e02259d8..c69bd0bb 100644 --- a/drivers/gpu/nvgpu/gp10b/therm_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/therm_gp10b.c @@ -133,9 +133,3 @@ int gp10b_elcg_init_idle_filters(struct gk20a *g) gk20a_dbg_fn("done"); return 0; } - -void gp10b_init_therm_ops(struct gpu_ops *gops) -{ - gops->therm.init_therm_setup_hw = gp10b_init_therm_setup_hw; - gops->therm.elcg_init_idle_filters = gp10b_elcg_init_idle_filters; -} -- cgit v1.2.2