diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2014-11-04 08:14:28 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:12:01 -0400 |
commit | b3f575074b66e8af1a9943874f9782b793fa7edc (patch) | |
tree | c4aaa1defc512cf5a896edc25445f169de184ece /drivers/gpu/nvgpu/gm20b/regops_gm20b.c | |
parent | 797e4dd319bd2b9e13ce0e44a3bbbb75e4820330 (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.c | 27 |
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[] = { | |||
434 | static const u32 gm20b_qctl_whitelist_ranges_count = | 434 | static const u32 gm20b_qctl_whitelist_ranges_count = |
435 | ARRAY_SIZE(gm20b_qctl_whitelist_ranges); | 435 | ARRAY_SIZE(gm20b_qctl_whitelist_ranges); |
436 | 436 | ||
437 | const struct regop_offset_range *gm20b_get_global_whitelist_ranges(void) | 437 | static 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 | ||
442 | int gm20b_get_global_whitelist_ranges_count(void) | 442 | static 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 | ||
447 | const struct regop_offset_range *gm20b_get_context_whitelist_ranges(void) | 447 | static 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 | ||
452 | int gm20b_get_context_whitelist_ranges_count(void) | 452 | static 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 | ||
457 | const u32 *gm20b_get_runcontrol_whitelist(void) | 457 | static const u32 *gm20b_get_runcontrol_whitelist(void) |
458 | { | 458 | { |
459 | return gm20b_runcontrol_whitelist; | 459 | return gm20b_runcontrol_whitelist; |
460 | } | 460 | } |
461 | 461 | ||
462 | int gm20b_get_runcontrol_whitelist_count(void) | 462 | static 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 | ||
467 | const struct regop_offset_range *gm20b_get_runcontrol_whitelist_ranges(void) | 467 | static const |
468 | struct 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 | ||
472 | int gm20b_get_runcontrol_whitelist_ranges_count(void) | 473 | static 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 | ||
477 | const u32 *gm20b_get_qctl_whitelist(void) | 478 | static const u32 *gm20b_get_qctl_whitelist(void) |
478 | { | 479 | { |
479 | return gm20b_qctl_whitelist; | 480 | return gm20b_qctl_whitelist; |
480 | } | 481 | } |
481 | 482 | ||
482 | int gm20b_get_qctl_whitelist_count(void) | 483 | static 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 | ||
487 | const struct regop_offset_range *gm20b_get_qctl_whitelist_ranges(void) | 488 | static 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 | ||
492 | int gm20b_get_qctl_whitelist_ranges_count(void) | 493 | static 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 | ||
497 | int gm20b_apply_smpc_war(struct dbg_session_gk20a *dbg_s) | 498 | static 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; |