diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-04-18 04:56:13 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-04-20 05:16:14 -0400 |
commit | 63319c0fb9a44894ae02d2f4462103d3aa09bd66 (patch) | |
tree | ee89ee91d54d64eb9f0f9f44d0943f14738f0967 /drivers/gpu/nvgpu/gk20a | |
parent | f3d7292521f4d6cdaa379f983f927e2c2eb47257 (diff) |
gpu: nvgpu: fix sparse warnings
Fix below sparse warnings :
drivers/gpu/nvgpu/gk20a/gk20a.c:764:5: warning: symbol
'gk20a_pm_finalize_poweron' was not declared. Should it be static?
drivers/gpu/nvgpu/gk20a/channel_gk20a.c:2504:14:
warning: symbol 'gk20a_event_id_poll' was not declared. Should it be
static?
drivers/gpu/nvgpu/gk20a/channel_gk20a.c:2538:5:
warning: symbol 'gk20a_event_id_release' was not declared. Should it be
static?
Bug 200067946
Bug 200088648
Change-Id: I5c23e7ee09c1a18fe2eeff12f80a3c2bf73120ef
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1128060
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 4 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index e6ecac14..6ef8a6cf 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -2480,7 +2480,7 @@ notif_clean_up: | |||
2480 | return ret; | 2480 | return ret; |
2481 | } | 2481 | } |
2482 | 2482 | ||
2483 | unsigned int gk20a_event_id_poll(struct file *filep, poll_table *wait) | 2483 | static unsigned int gk20a_event_id_poll(struct file *filep, poll_table *wait) |
2484 | { | 2484 | { |
2485 | unsigned int mask = 0; | 2485 | unsigned int mask = 0; |
2486 | struct gk20a_event_id_data *event_id_data = filep->private_data; | 2486 | struct gk20a_event_id_data *event_id_data = filep->private_data; |
@@ -2514,7 +2514,7 @@ unsigned int gk20a_event_id_poll(struct file *filep, poll_table *wait) | |||
2514 | return mask; | 2514 | return mask; |
2515 | } | 2515 | } |
2516 | 2516 | ||
2517 | int gk20a_event_id_release(struct inode *inode, struct file *filp) | 2517 | static int gk20a_event_id_release(struct inode *inode, struct file *filp) |
2518 | { | 2518 | { |
2519 | struct gk20a_event_id_data *event_id_data = filp->private_data; | 2519 | struct gk20a_event_id_data *event_id_data = filp->private_data; |
2520 | struct gk20a *g = event_id_data->g; | 2520 | struct gk20a *g = event_id_data->g; |
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index b330aa7a..a865b078 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -765,7 +765,7 @@ static int gk20a_detect_chip(struct gk20a *g) | |||
765 | return gpu_init_hal(g); | 765 | return gpu_init_hal(g); |
766 | } | 766 | } |
767 | 767 | ||
768 | int gk20a_pm_finalize_poweron(struct device *dev) | 768 | static int gk20a_pm_finalize_poweron(struct device *dev) |
769 | { | 769 | { |
770 | struct gk20a *g = get_gk20a(dev); | 770 | struct gk20a *g = get_gk20a(dev); |
771 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 771 | struct gk20a_platform *platform = gk20a_get_platform(dev); |