mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
userspace: units: replace PAGE_SIZE with NVGPU_CPU_PAGE_SIZE
Replace PAGE_SIZE with NVGPU_CPU_PAGE_SIZE, which is a nvgpu defined wrapper over OS native page size. Bug 200658101 Jira NVGPU-6018 Change-Id: If35e23d5df38a6b52b586911d1055e0b00b12ebe Signed-off-by: Antony Clince Alex <aalex@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2424792 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
223baa5883
commit
09857ecd91
@@ -439,7 +439,7 @@ int test_align_macros(struct unit_module *m,
|
||||
|
||||
test1 = PAGE_ALIGN_TEST_VALUE;
|
||||
result = PAGE_ALIGN(test1);
|
||||
if (result & (PAGE_SIZE - 1)) {
|
||||
if (result & (NVGPU_CPU_PAGE_SIZE - 1)) {
|
||||
unit_return_fail(m,
|
||||
"PAGE_ALIGN failure %x\n", result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user