mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: common: linux: Use new error macros
gk20a_err() and gk20a_warn() require a struct device pointer, which is not portable across operating systems. The new nvgpu_err() and nvgpu_warn() macros take struct gk20a pointer. Convert code to use the more portable macros. JIRA NVGPU-16 Change-Id: Ic5a48ca066712b14140909a34e639c1d2b99554b Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1457342 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman <alexw@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
71fc782914
commit
6022b4cf6b
@@ -751,7 +751,7 @@ void nvgpu_kmem_fini(struct gk20a *g, int flags)
|
||||
if (flags & NVGPU_KMEM_FINI_WARN) {
|
||||
WARN(1, "Letting %d allocs leak!!\n", count);
|
||||
} else if (flags & NVGPU_KMEM_FINI_BUG) {
|
||||
gk20a_err(g->dev, "Letting %d allocs leak!!\n", count);
|
||||
nvgpu_err(g, "Letting %d allocs leak!!\n", count);
|
||||
BUG();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user