meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi-4.1/0002-vmcs-Remove-unused-sm_cache_map_vector-definition.patch
Andrei Gherzan f38938f6ca linux-raspberrypi: Fix v4.1 with GCC6
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-07-08 11:33:44 +01:00

32 lines
757 B
Diff

The code using it also ifdef'ed with 0, anyyd gcc 6
complains
error: 'sm_cache_map_vector' defined but not used
The code using it also ifdef'ed out
Upstream-status: Denied [https://github.com/raspberrypi/linux/pull/1528]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
drivers/char/broadcom/vc_sm/vmcs_sm.c | 2 ++
1 file changed, 2 insertions(+)
--- a/drivers/char/broadcom/vc_sm/vmcs_sm.c
+++ b/drivers/char/broadcom/vc_sm/vmcs_sm.c
@@ -197,12 +197,14 @@ struct SM_STATE_T {
static struct SM_STATE_T *sm_state;
static int sm_inited;
+#if 0
static const char *const sm_cache_map_vector[] = {
"(null)",
"host",
"videocore",
"host+videocore",
};
+#endif
/* ---- Private Function Prototypes -------------------------------------- */