0245-vmcs-Remove-unused-sm_cache_map_vector-definition-14.patch 914 B

1234567891011121314151617181920212223242526272829303132333435
  1. From e66d9d6665362899e85d666a5d7b6279747a7273 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Sun, 17 Apr 2016 04:44:47 -0700
  4. Subject: [PATCH 245/381] vmcs: Remove unused sm_cache_map_vector definition
  5. (#1411)
  6. The code using it also ifdef'ed with 0, anyyd gcc 6
  7. complains
  8. error: 'sm_cache_map_vector' defined but not used
  9. The code using it also ifdef'ed out
  10. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  11. ---
  12. drivers/char/broadcom/vc_sm/vmcs_sm.c | 2 ++
  13. 1 file changed, 2 insertions(+)
  14. --- a/drivers/char/broadcom/vc_sm/vmcs_sm.c
  15. +++ b/drivers/char/broadcom/vc_sm/vmcs_sm.c
  16. @@ -197,12 +197,14 @@ struct SM_STATE_T {
  17. static struct SM_STATE_T *sm_state;
  18. static int sm_inited;
  19. +#if 0
  20. static const char *const sm_cache_map_vector[] = {
  21. "(null)",
  22. "host",
  23. "videocore",
  24. "host+videocore",
  25. };
  26. +#endif
  27. /* ---- Private Function Prototypes -------------------------------------- */