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

12345678910111213141516171819202122232425262728293031323334
  1. From 34ae5dd6055af9a01dc15a04e58068a14816fb88 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] vmcs: Remove unused sm_cache_map_vector definition (#1411)
  5. The code using it also ifdef'ed with 0, anyyd gcc 6
  6. complains
  7. error: 'sm_cache_map_vector' defined but not used
  8. The code using it also ifdef'ed out
  9. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  10. ---
  11. drivers/char/broadcom/vc_sm/vmcs_sm.c | 2 ++
  12. 1 file changed, 2 insertions(+)
  13. --- a/drivers/char/broadcom/vc_sm/vmcs_sm.c
  14. +++ b/drivers/char/broadcom/vc_sm/vmcs_sm.c
  15. @@ -197,12 +197,14 @@ struct SM_STATE_T {
  16. static struct SM_STATE_T *sm_state;
  17. static int sm_inited;
  18. +#if 0
  19. static const char *const sm_cache_map_vector[] = {
  20. "(null)",
  21. "host",
  22. "videocore",
  23. "host+videocore",
  24. };
  25. +#endif
  26. /* ---- Private Function Prototypes -------------------------------------- */