mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: init: add return for all init APIs
This adds return values for all init APIs. This make all the init APIs have the same signature. This is a prerequisite to making a table of init functions. JIRA NVGPU-3980 Change-Id: I5b71fd06ad248092af133ffe908e2930acb6d2b0 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2202973 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
b3e3509b4a
commit
065f98f669
@@ -199,6 +199,7 @@ static ssize_t disable_bigpage_write(struct file *file, const char __user *user_
|
||||
int buf_size;
|
||||
bool bv;
|
||||
struct gk20a *g = file->private_data;
|
||||
int err;
|
||||
|
||||
buf_size = min(count, (sizeof(buf)-1));
|
||||
if (copy_from_user(buf, user_buf, buf_size))
|
||||
@@ -206,7 +207,11 @@ static ssize_t disable_bigpage_write(struct file *file, const char __user *user_
|
||||
|
||||
if (strtobool(buf, &bv) == 0) {
|
||||
g->mm.disable_bigpage = bv;
|
||||
nvgpu_init_gpu_characteristics(g);
|
||||
err = nvgpu_init_gpu_characteristics(g);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "failed to init GPU characteristics");
|
||||
return -ENOSYS;
|
||||
}
|
||||
}
|
||||
|
||||
return count;
|
||||
|
||||
Reference in New Issue
Block a user