ARM: 8924/1: tcm: make dtcm_end and itcm_end static
authorBen Dooks <ben-linux@fluff.org>
Fri, 18 Oct 2019 09:54:10 +0000 (10:54 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 31 Oct 2019 16:58:55 +0000 (16:58 +0000)
The dtcm_end and itcm_end are not exported or used
elsewhere, so make them static to remove the following
sparse warnign:

arch/arm/kernel/tcm.c:33:5: warning: symbol 'dtcm_end' was not declared. Should it be static?
arch/arm/kernel/tcm.c:34:5: warning: symbol 'itcm_end' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/tcm.c

index 9d9b1db73932fb32a36ae36e002999c1215a0d97..65448d5f26ecb63596a35e99f1ef51185dc378bb 100644 (file)
@@ -30,8 +30,8 @@ extern char __itcm_start, __sitcm_text, __eitcm_text;
 extern char __dtcm_start, __sdtcm_data, __edtcm_data;
 
 /* These will be increased as we run */
-u32 dtcm_end = DTCM_OFFSET;
-u32 itcm_end = ITCM_OFFSET;
+static u32 dtcm_end = DTCM_OFFSET;
+static u32 itcm_end = ITCM_OFFSET;
 
 /*
  * TCM memory resources