summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/regops_gm20b.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2014-11-04 08:14:28 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:12:01 -0400
commitb3f575074b66e8af1a9943874f9782b793fa7edc (patch)
treec4aaa1defc512cf5a896edc25445f169de184ece /drivers/gpu/nvgpu/gm20b/regops_gm20b.c
parent797e4dd319bd2b9e13ce0e44a3bbbb75e4820330 (diff)
gpu: nvgpu: fix sparse warnings
Fix below sparse warnings : warning: Using plain integer as NULL pointer warning: symbol <variable/funcion> was not declared. Should it be static? warning: Initializer entry defined twice Also, remove dead functions Bug 1573254 Change-Id: I29d71ecc01c841233cf6b26c9088ca8874773469 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/593363 Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/regops_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/regops_gm20b.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/regops_gm20b.c b/drivers/gpu/nvgpu/gm20b/regops_gm20b.c
index 71ccda37..cc1c72c2 100644
--- a/drivers/gpu/nvgpu/gm20b/regops_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/regops_gm20b.c
@@ -434,67 +434,68 @@ static const struct regop_offset_range gm20b_qctl_whitelist_ranges[] = {
434static const u32 gm20b_qctl_whitelist_ranges_count = 434static const u32 gm20b_qctl_whitelist_ranges_count =
435 ARRAY_SIZE(gm20b_qctl_whitelist_ranges); 435 ARRAY_SIZE(gm20b_qctl_whitelist_ranges);
436 436
437const struct regop_offset_range *gm20b_get_global_whitelist_ranges(void) 437static const struct regop_offset_range *gm20b_get_global_whitelist_ranges(void)
438{ 438{
439 return gm20b_global_whitelist_ranges; 439 return gm20b_global_whitelist_ranges;
440} 440}
441 441
442int gm20b_get_global_whitelist_ranges_count(void) 442static int gm20b_get_global_whitelist_ranges_count(void)
443{ 443{
444 return gm20b_global_whitelist_ranges_count; 444 return gm20b_global_whitelist_ranges_count;
445} 445}
446 446
447const struct regop_offset_range *gm20b_get_context_whitelist_ranges(void) 447static const struct regop_offset_range *gm20b_get_context_whitelist_ranges(void)
448{ 448{
449 return gm20b_context_whitelist_ranges; 449 return gm20b_context_whitelist_ranges;
450} 450}
451 451
452int gm20b_get_context_whitelist_ranges_count(void) 452static int gm20b_get_context_whitelist_ranges_count(void)
453{ 453{
454 return gm20b_context_whitelist_ranges_count; 454 return gm20b_context_whitelist_ranges_count;
455} 455}
456 456
457const u32 *gm20b_get_runcontrol_whitelist(void) 457static const u32 *gm20b_get_runcontrol_whitelist(void)
458{ 458{
459 return gm20b_runcontrol_whitelist; 459 return gm20b_runcontrol_whitelist;
460} 460}
461 461
462int gm20b_get_runcontrol_whitelist_count(void) 462static int gm20b_get_runcontrol_whitelist_count(void)
463{ 463{
464 return gm20b_runcontrol_whitelist_count; 464 return gm20b_runcontrol_whitelist_count;
465} 465}
466 466
467const struct regop_offset_range *gm20b_get_runcontrol_whitelist_ranges(void) 467static const
468struct regop_offset_range *gm20b_get_runcontrol_whitelist_ranges(void)
468{ 469{
469 return gm20b_runcontrol_whitelist_ranges; 470 return gm20b_runcontrol_whitelist_ranges;
470} 471}
471 472
472int gm20b_get_runcontrol_whitelist_ranges_count(void) 473static int gm20b_get_runcontrol_whitelist_ranges_count(void)
473{ 474{
474 return gm20b_runcontrol_whitelist_ranges_count; 475 return gm20b_runcontrol_whitelist_ranges_count;
475} 476}
476 477
477const u32 *gm20b_get_qctl_whitelist(void) 478static const u32 *gm20b_get_qctl_whitelist(void)
478{ 479{
479 return gm20b_qctl_whitelist; 480 return gm20b_qctl_whitelist;
480} 481}
481 482
482int gm20b_get_qctl_whitelist_count(void) 483static int gm20b_get_qctl_whitelist_count(void)
483{ 484{
484 return gm20b_qctl_whitelist_count; 485 return gm20b_qctl_whitelist_count;
485} 486}
486 487
487const struct regop_offset_range *gm20b_get_qctl_whitelist_ranges(void) 488static const struct regop_offset_range *gm20b_get_qctl_whitelist_ranges(void)
488{ 489{
489 return gm20b_qctl_whitelist_ranges; 490 return gm20b_qctl_whitelist_ranges;
490} 491}
491 492
492int gm20b_get_qctl_whitelist_ranges_count(void) 493static int gm20b_get_qctl_whitelist_ranges_count(void)
493{ 494{
494 return gm20b_qctl_whitelist_ranges_count; 495 return gm20b_qctl_whitelist_ranges_count;
495} 496}
496 497
497int gm20b_apply_smpc_war(struct dbg_session_gk20a *dbg_s) 498static int gm20b_apply_smpc_war(struct dbg_session_gk20a *dbg_s)
498{ 499{
499 /* Not needed on gm20b */ 500 /* Not needed on gm20b */
500 return 0; 501 return 0;