diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-04-09 20:39:11 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-07 07:41:22 -0400 |
commit | e6b3bb4e6b3d4013f83ba6d31c780947f16cf410 (patch) | |
tree | a6620cd552fc05e8d31de3e076f1f7656821ed25 /drivers/gpu/nvgpu/gm20b/gr_gm20b.h | |
parent | b0cf5804147efbf50ad80d900248e2eeefb4eb2c (diff) |
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 <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1692454
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/gr_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.h b/drivers/gpu/nvgpu/gm20b/gr_gm20b.h index aabf6d95..ff32d8ff 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.h | |||
@@ -92,7 +92,6 @@ int gr_gm20b_load_ctxsw_ucode_segments(struct gk20a *g, u64 addr_base, | |||
92 | bool gr_gm20b_is_tpc_addr(struct gk20a *g, u32 addr); | 92 | bool gr_gm20b_is_tpc_addr(struct gk20a *g, u32 addr); |
93 | u32 gr_gm20b_get_tpc_num(struct gk20a *g, u32 addr); | 93 | u32 gr_gm20b_get_tpc_num(struct gk20a *g, u32 addr); |
94 | int gr_gm20b_load_ctxsw_ucode(struct gk20a *g); | 94 | int gr_gm20b_load_ctxsw_ucode(struct gk20a *g); |
95 | int gr_gm20b_load_ctxsw_ucode(struct gk20a *g); | ||
96 | void gr_gm20b_detect_sm_arch(struct gk20a *g); | 95 | void gr_gm20b_detect_sm_arch(struct gk20a *g); |
97 | u32 gr_gm20b_pagepool_default_size(struct gk20a *g); | 96 | u32 gr_gm20b_pagepool_default_size(struct gk20a *g); |
98 | int gr_gm20b_alloc_gr_ctx(struct gk20a *g, | 97 | int gr_gm20b_alloc_gr_ctx(struct gk20a *g, |